Overseer
|
#include "MapImpl.h"
Public Member Functions | |
MapImpl (sc2::Agent *bot) | |
constructor which adds the bot for temp control of map. More... | |
MapImpl () | |
Defualt constructor without member init. | |
void | initialize () |
Initialize overseer, should be done after the map been loaded. | |
Graph | getGraph () const |
get the graph representation of the map. | |
Public Member Functions inherited from Overseer::Map | |
Map () | |
Simple default constructor does no initzalation. | |
Map (sc2::Agent *bot) | |
constructor. More... | |
size_t | getHeight () const |
size_t | getWidth () const |
Gets the map width. More... | |
std::vector< std::shared_ptr< Region > > | getRegions () |
Gets all the regions found. More... | |
Region * | getRegion (size_t id) |
Get a specific region. More... | |
const Region * | getNearestRegion (sc2::Point2D pos) |
Gets closest region to a specific point. More... | |
void | addTile (sc2::Point2D &pos, std::shared_ptr< Tile > tile) |
Apends a tile to container. More... | |
bool | valid (sc2::Point2D pos) const |
Check if a position is on map. More... | |
TilePosition | getClosestTilePosition (sc2::Point2D pos) const |
Get the closest tile position. More... | |
void | addRegion (Region region) |
Apends a region to the container. More... | |
std::shared_ptr< Tile > | getTile (sc2::Point2D pos) |
Gets a tile based on the position. More... | |
size_t | size () const |
Gets the size of the tile position container. More... | |
TilePositionContainer | getTilePositions () const |
Get all tile positions. More... | |
std::vector< TilePosition > | getXelNagas () |
Get all tilePosition for Xel'nagas watch towers. More... | |
std::vector< TilePosition > | getMinerals () |
Get all tilePosition for Minerals. More... | |
std::vector< TilePosition > | getGeysers () |
Get all tilePosition for Geysers. More... | |
std::vector< TilePosition > | getDestructibles () |
Get tilePositions for Destructible objects. More... | |
void | setBot (sc2::Agent *bot) |
set the bot into overseer More... | |
std::vector< std::shared_ptr< TilePosition > > | getFrontierPositions () const |
Get tiles that is between two regions. More... | |
RawFrontier | getRawFrontier () const |
region pair and frontier map. More... | |
sc2::Agent * | getBot () const |
Gets the set agent. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Overseer::Map | |
std::pair< size_t, size_t > | findNeighboringRegions (std::shared_ptr< TilePosition > tilePosition) |
Protected Attributes inherited from Overseer::Map | |
sc2::Agent * | m_bot |
UnitPositionContainer | m_unitPositions |
TilePositionContainer | m_tilePositions |
std::vector< std::shared_ptr< TilePosition > > | m_buildableTiles |
RegionMap | m_regions |
std::vector< std::shared_ptr< TilePosition > > | m_frontierPositions |
RawFrontier | m_rawFrontier |
sc2::Point2D | m_maxPlayable |
sc2::Point2D | m_minPlayable |
sc2::Point2D | m_centerPlayable |
size_t | m_width |
size_t | m_height |
Static Protected Attributes inherited from Overseer::Map | |
static std::unique_ptr< Map > | m_gInstance |
\ brief hejsan svejsan
Overseer::MapImpl::MapImpl | ( | sc2::Agent * | bot | ) |
constructor which adds the bot for temp control of map.
bot | Is the starcraft II bot currently run. |