TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
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,
15 };
16 
17 inline char const* gameTypeName(GameType type) {
18  switch (type) {
19  case GameType::Melee:
20  return "MELEE";
22  return "USE_MAP_SETTINGS";
23  default:
24  break;
25  }
26  throw std::runtime_error("Unknown game type");
27 };
28 
29 } // namespace cherrypi
GameType
Definition: gametype.h:12
char const * gameTypeName(GameType type)
Definition: gametype.h:17
Main namespace for bot-related code.
Definition: areainfo.cpp:17