-
Notifications
You must be signed in to change notification settings - Fork 111
/
Copy pathCommon.h
43 lines (38 loc) · 1.12 KB
/
Common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once
#include "BotAssert.h"
#include <iostream>
#include <vector>
#include <cassert>
#include <set>
#include <fstream>
#include <streambuf>
#include <string>
#include <array>
#include "json/json.hpp"
using json = nlohmann::json;
#ifdef SC2API
#include "sc2api/sc2_api.h"
typedef sc2::Point2D CCPosition;
typedef sc2::Point2DI CCTilePosition;
typedef sc2::Color CCColor;
typedef sc2::UpgradeID CCUpgrade;
typedef sc2::Tag CCUnitID;
typedef sc2::Race CCRace;
typedef float CCHealth;
typedef float CCPositionType;
#else
#include "BWAPI.h"
typedef BWAPI::Position CCPosition;
typedef BWAPI::TilePosition CCTilePosition;
typedef BWAPI::Color CCColor;
typedef BWAPI::Race CCRace;
typedef BWAPI::UpgradeType CCUpgrade;
typedef int CCUnitID;
typedef int CCHealth;
typedef int CCPositionType;
#endif
typedef size_t CCPlayer;
namespace Players
{
enum {Self = 0u, Enemy = 1u, Neutral = 2u, Size = 3u, None = 4u};
}