is the overseer map that holds the most "important" functionality for a outside user.
More...
#include "Map.h"
|
std::pair< size_t, size_t > | findNeighboringRegions (std::shared_ptr< TilePosition > tilePosition) |
|
|
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 std::unique_ptr< Map > | m_gInstance |
|
is the overseer map that holds the most "important" functionality for a outside user.
◆ Map()
Overseer::Map::Map |
( |
sc2::Agent * |
bot | ) |
|
◆ addRegion()
void Overseer::Map::addRegion |
( |
Region |
region | ) |
|
Apends a region to the container.
- Parameters
-
◆ addTile()
void Overseer::Map::addTile |
( |
sc2::Point2D & |
pos, |
|
|
std::shared_ptr< Tile > |
tile |
|
) |
| |
Apends a tile to container.
- Parameters
-
pos | The tile position. |
tile | The tile to add. |
◆ getBot()
sc2::Agent* Overseer::Map::getBot |
( |
| ) |
const |
|
inline |
Gets the set agent.
- Returns
- pointer for agent.
◆ getClosestTilePosition()
TilePosition Overseer::Map::getClosestTilePosition |
( |
sc2::Point2D |
pos | ) |
const |
Get the closest tile position.
- Parameters
-
pos | of the tile position to find. |
- Returns
- the found tile position.
◆ getDestructibles()
std::vector< TilePosition > Overseer::Map::getDestructibles |
( |
| ) |
|
Get tilePositions for Destructible objects.
- Returns
- vector containing TilePositions to Destructible objects.
◆ getFrontierPositions()
std::vector< std::shared_ptr< TilePosition > > Overseer::Map::getFrontierPositions |
( |
| ) |
const |
Get tiles that is between two regions.
- Returns
- vector with tile position pointers.
◆ getGeysers()
std::vector< TilePosition > Overseer::Map::getGeysers |
( |
| ) |
|
Get all tilePosition for Geysers.
- Returns
- vector containing TilePositions to Geysers.
◆ getHeight()
size_t Overseer::Map::getHeight |
( |
| ) |
const |
Gets the map height.
- Returns
- the height.
◆ getMinerals()
std::vector< TilePosition > Overseer::Map::getMinerals |
( |
| ) |
|
Get all tilePosition for Minerals.
- Returns
- vector containing TilePositions to Minerals.
◆ getNearestRegion()
const Region * Overseer::Map::getNearestRegion |
( |
sc2::Point2D |
pos | ) |
|
Gets closest region to a specific point.
- Parameters
-
pos | is the position point to find cloests the region to. |
- Returns
- Pointer to the found region.
◆ getRawFrontier()
RawFrontier Overseer::Map::getRawFrontier |
( |
| ) |
const |
region pair and frontier map.
- Returns
- vector of rawfrontier.
◆ getRegion()
Region * Overseer::Map::getRegion |
( |
size_t |
id | ) |
|
Get a specific region.
- Parameters
-
id | The id of the specific region. |
- Returns
- The region with id as region id.
◆ getRegions()
std::vector< std::shared_ptr< Region > > Overseer::Map::getRegions |
( |
| ) |
|
Gets all the regions found.
- Returns
- vector of region pointers.
◆ getTile()
std::shared_ptr< Tile > Overseer::Map::getTile |
( |
sc2::Point2D |
pos | ) |
|
Gets a tile based on the position.
- Parameters
-
pos | The position of the tile. |
- Returns
- the tile that the position belongs to.
◆ getTilePositions()
TilePositionContainer Overseer::Map::getTilePositions |
( |
| ) |
const |
Get all tile positions.
- Returns
- the tile position container.
◆ getWidth()
size_t Overseer::Map::getWidth |
( |
| ) |
const |
Gets the map width.
- Returns
- the width.
◆ getXelNagas()
std::vector< TilePosition > Overseer::Map::getXelNagas |
( |
| ) |
|
Get all tilePosition for Xel'nagas watch towers.
- Returns
- vector containing TilePositions to Xal'nagas watch towers.
◆ setBot()
void Overseer::Map::setBot |
( |
sc2::Agent * |
bot | ) |
|
set the bot into overseer
- Parameters
-
bot | The bot witch overseer will use. |
◆ size()
size_t Overseer::Map::size |
( |
| ) |
const |
Gets the size of the tile position container.
- Returns
- the size of container.
◆ valid()
bool Overseer::Map::valid |
( |
sc2::Point2D |
pos | ) |
const |
Check if a position is on map.
- Returns
- True if position is within the map, false otherwise.
The documentation for this class was generated from the following files: