|
ProtoBot
|
When an attempt to find a location to place a building fails, the PlacementInfo struct is able to provide the details on what exactly is preventing us from building.
\nProtoBot not being able to build can happen because of many reasons:
- Tiles is not powered.
- No BWEB geenerated places for supply left to build.
- No avalible gysers are avalible for a refinery.
- No BWEB blocks for buildings are all used.
- No avalible expansion locations are avalible.
More...
#include <BuildingPlacer.h>
Public Types | |
| enum | PlacementFlag { SUCCESS , NO_POWER , NO_BLOCKS , NO_GYSERS , NO_PLACEMENTS , NO_EXPANSIONS , DEFAULT } |
Public Attributes | |
| PlacementFlag | flag = PlacementFlag::DEFAULT |
| BWAPI::Position | position = BWAPI::Positions::Invalid |
| BWAPI::TilePosition | topLeft = BWAPI::TilePositions::Invalid |
When an attempt to find a location to place a building fails, the PlacementInfo struct is able to provide the details on what exactly is preventing us from building.
\nProtoBot not being able to build can happen because of many reasons:
- Tiles is not powered.
- No BWEB geenerated places for supply left to build.
- No avalible gysers are avalible for a refinery.
- No BWEB blocks for buildings are all used.
- No avalible expansion locations are avalible.
Definition at line 29 of file BuildingPlacer.h.
| enum PlacementInfo::PlacementFlag |
Definition at line 31 of file BuildingPlacer.h.
| PlacementFlag PlacementInfo::flag = PlacementFlag::DEFAULT |
Definition at line 32 of file BuildingPlacer.h.
| BWAPI::Position PlacementInfo::position = BWAPI::Positions::Invalid |
Definition at line 34 of file BuildingPlacer.h.
| BWAPI::TilePosition PlacementInfo::topLeft = BWAPI::TilePositions::Invalid |
Definition at line 35 of file BuildingPlacer.h.