9 #include "s2clientprotocol/sc2api.pb.h" 58 PlayerType player_type;
61 Difficulty difficulty;
63 std::string player_name;
65 PlayerInfo(uint32_t player_id, PlayerType player_type,
66 Race race_requested, Race race_actual,
67 Difficulty difficulty, AIBuild ai_build,
68 const std::string& player_name):
70 player_type(player_type),
71 race_requested(race_requested),
72 race_actual(race_actual),
73 difficulty(difficulty),
75 player_name(player_name) {};
100 std::vector<Point2D> start_locations;
106 std::vector<PlayerInfo> player_info;
112 explicit SampleImage(
const SC2APIProtocol::ImageData& data);
116 bool GetBit(
const Point2DI& point,
bool* dst)
const;
118 bool GetBit(
const Point2DI& point,
unsigned char* dst)
const;
125 const std::string& data_;
136 bool IsPathable(
const Point2DI& point)
const;
138 void Dump(
const std::string& file_path)
const;
147 bool IsPlacable(
const Point2DI& point)
const;
149 void Dump(
const std::string& file_path)
const;
158 float TerrainHeight(
const Point2DI& point)
const;
160 void Dump(
const std::string& file_path)
const;
int width
World width of a map.
Definition: sc2_map_info.h:85
int minimap_resolution_x
Number of pixels in X of the minimap.
Definition: sc2_map_info.h:41
Definition: sc2_map_info.h:111
std::string map_name
Plain text name of a map. Note that this may be different from the filename of the map...
Definition: sc2_map_info.h:81
std::string local_map_path
Filename of map. Includes the ".SC2Map" file extension.
Definition: sc2_map_info.h:83
Common data types, including points, rectangles and colors.
2D integer point.
Definition: sc2_common.h:94
float camera_width
For feature layers only, determines the world space size of the camera.
Definition: sc2_map_info.h:35
Definition: sc2_common.h:49
Setup structure for feature layers or rendered images.
Definition: sc2_map_info.h:33
Definition: sc2_map_info.h:56
ImageData pathing_grid
Grid showing which cells are pathable by units.
Definition: sc2_map_info.h:89
SpatialSetup feature_layer
Feature layer data.
Definition: sc2_map_info.h:51
Definition: sc2_action.h:9
Point2D playable_max
The maximum coordinates of playable space. Points greater than this are not playable.
Definition: sc2_map_info.h:97
Definition: sc2_map_info.h:155
std::vector< Point2D > enemy_start_locations
Positions of possible enemy starting locations.
Definition: sc2_map_info.h:99
int height
World height of a map.
Definition: sc2_map_info.h:87
int map_resolution_y
Number of pixels in Y of the main game view.
Definition: sc2_map_info.h:39
Rendered data for a game frame.
Definition: sc2_map_info.h:27
InterfaceOptions options
Definition: sc2_map_info.h:104
ImageData placement_grid
Grid showing which cells can accept placement of structures.
Definition: sc2_map_info.h:93
Definition: sc2_map_info.h:133
Determines what type of data will be returned in observations.
Definition: sc2_map_info.h:47
int map_resolution_x
Number of pixels in X of the main game view.
Definition: sc2_map_info.h:37
Definition: sc2_map_info.h:144
bool raw
Raw data; essentially a list of units.
Definition: sc2_map_info.h:49
Point2D playable_min
The minimum coordinates of playable space. Points less than this are not playable.
Definition: sc2_map_info.h:95
Types used in setting up a game.
2D integer rectangle.
Definition: sc2_common.h:113
Initial data for a game and map.
Definition: sc2_map_info.h:79
int minimap_resolution_y
Number of pixels in Y of the minimap.
Definition: sc2_map_info.h:43
ImageData terrain_height
Height map of terrain.
Definition: sc2_map_info.h:91
SpatialSetup render
Rendered image data.
Definition: sc2_map_info.h:53
Data for a feature layer or rendered image.
Definition: sc2_map_info.h:17