ProtoBot
Loading...
Searching...
No Matches
PlacementInfo Struct Reference

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

Detailed Description

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.

Member Enumeration Documentation

◆ PlacementFlag

enum PlacementInfo::PlacementFlag

Definition at line 31 of file BuildingPlacer.h.

31{ SUCCESS, NO_POWER, NO_BLOCKS, NO_GYSERS, NO_PLACEMENTS, NO_EXPANSIONS, DEFAULT };

Member Data Documentation

◆ flag

PlacementFlag PlacementInfo::flag = PlacementFlag::DEFAULT

Definition at line 32 of file BuildingPlacer.h.

◆ position

BWAPI::Position PlacementInfo::position = BWAPI::Positions::Invalid

Definition at line 34 of file BuildingPlacer.h.

◆ topLeft

BWAPI::TilePosition PlacementInfo::topLeft = BWAPI::TilePositions::Invalid

Definition at line 35 of file BuildingPlacer.h.


The documentation for this struct was generated from the following file: