32 surface getMinimap(
int w,
int h,
const gamemap &map_,
const team *vm =
nullptr,
const std::map<map_location,unsigned int> *reach_map =
nullptr,
bool ignore_terrain_disabled =
false);
40 const team* vw =
nullptr,
42 const std::map<map_location, unsigned int>* reach_map =
nullptr,
43 bool ignore_terrain_disabled =
false);
Encapsulates the map of the game.
This class stores all the data for a single 'side' (in game nomenclature).
Container associating units to locations.
Functions to load and save images from/to disk.
void render_minimap(unsigned dst_w, unsigned dst_h, const gamemap &map, const team *vw, const unit_map *units, const std::map< map_location, unsigned int > *reach_map, bool ignore_terrain_disabled)
Renders the minimap to the screen.
surface getMinimap(int w, int h, const gamemap &map, const team *vw, const std::map< map_location, unsigned int > *reach_map, bool ignore_terrain_disabled)
function to create the minimap for a given map the surface returned must be freed by the user
Encapsulates the map of the game.