TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Main Page
Namespaces
Classes
src
gameutils
gametype.h
1
/*
2
* Copyright (c) 2017-present, Facebook, Inc.
3
*
4
* This source code is licensed under the MIT license found in the
5
* LICENSE file in the root directory of this source tree.
6
*/
7
8
#pragma once
9
10
namespace
cherrypi
{
11
12
enum class
GameType
{
13
Melee
,
14
UseMapSettings
,
15
};
16
17
inline
char
const
*
gameTypeName
(
GameType
type) {
18
switch
(type) {
19
case
GameType::Melee
:
20
return
"MELEE"
;
21
case
GameType::UseMapSettings
:
22
return
"USE_MAP_SETTINGS"
;
23
default
:
24
break
;
25
}
26
throw
std::runtime_error(
"Unknown game type"
);
27
};
28
29
}
// namespace cherrypi
cherrypi::GameType
GameType
Definition:
gametype.h:12
cherrypi::GameType::Melee
cherrypi::gameTypeName
char const * gameTypeName(GameType type)
Definition:
gametype.h:17
cherrypi::GameType::UseMapSettings
cherrypi
Main namespace for bot-related code.
Definition:
areainfo.cpp:17
Generated on Wed Apr 17 2019 18:31:56 for TorchCraftAI by
1.8.11