MCPcopy Create free account
hub / github.com/bwapi/bwapi / getValue

Method getValue

bwapi/BWAPILIB/Source/Game.cpp:149–154  ·  view source on GitHub ↗

Gets the value from the placement reserve array, 0 if position is invalid

Source from the content-addressed store, hash-verified

147
148 // Gets the value from the placement reserve array, 0 if position is invalid
149 unsigned char getValue(int x, int y) const
150 {
151 if ( isValidPos(x,y) )
152 return data[y][x];
153 return 0;
154 };
155 unsigned char getValue(TilePosition p) const
156 {
157 return this->getValue(p.x,p.y);

Callers 3

hasValidSpaceMethod · 0.95
ReserveDefaultFunction · 0.80
getBuildLocationMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected