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

The BWEB does not store the data about the specification of a block. The class BlockData allows the BuildingPlacer to preprocess Blocks generated by the BWEB to be able to distinguish the amount of possible placements we have. More...

#include <BuildingPlacer.h>

Public Types

enum  BlockSize { LARGE , MEDIUM , SUPPLY , UNDEFINED }
enum  PowerState { FULLY_POWERED , HALF_POWERED , NOT_POWERED }

Public Attributes

BlockSize Blocksize = BlockSize::UNDEFINED
PowerState Power_State = PowerState::NOT_POWERED
int Large_Placements = 0
int Medium_Placements = 0
int Power_Placements = 0
int Used_Power_Placements = 0
const BWEM::Area * Block_AreaLocation
std::set< BWAPI::TilePosition > PowerTiles

Detailed Description

The BWEB does not store the data about the specification of a block. The class BlockData allows the BuildingPlacer to preprocess Blocks generated by the BWEB to be able to distinguish the amount of possible placements we have.

Definition at line 41 of file BuildingPlacer.h.

Member Enumeration Documentation

◆ BlockSize

enum BlockData::BlockSize

Definition at line 43 of file BuildingPlacer.h.

43{LARGE, MEDIUM, SUPPLY, UNDEFINED};

◆ PowerState

enum BlockData::PowerState

Definition at line 47 of file BuildingPlacer.h.

47{FULLY_POWERED, HALF_POWERED, NOT_POWERED};

Member Data Documentation

◆ Block_AreaLocation

const BWEM::Area* BlockData::Block_AreaLocation

Definition at line 57 of file BuildingPlacer.h.

◆ Blocksize

BlockSize BlockData::Blocksize = BlockSize::UNDEFINED

Definition at line 44 of file BuildingPlacer.h.

◆ Large_Placements

int BlockData::Large_Placements = 0

Definition at line 50 of file BuildingPlacer.h.

◆ Medium_Placements

int BlockData::Medium_Placements = 0

Definition at line 51 of file BuildingPlacer.h.

◆ Power_Placements

int BlockData::Power_Placements = 0

Definition at line 52 of file BuildingPlacer.h.

◆ Power_State

PowerState BlockData::Power_State = PowerState::NOT_POWERED

Definition at line 48 of file BuildingPlacer.h.

◆ PowerTiles

std::set<BWAPI::TilePosition> BlockData::PowerTiles

Definition at line 59 of file BuildingPlacer.h.

◆ Used_Power_Placements

int BlockData::Used_Power_Placements = 0

Definition at line 54 of file BuildingPlacer.h.


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