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

Method setValue

bwapi/BWAPILIB/Source/Game.cpp:128–132  ·  view source on GitHub ↗

Sets the value in the placement reserve array

Source from the content-addressed store, hash-verified

126
127 // Sets the value in the placement reserve array
128 void setValue(int x, int y, unsigned char value)
129 {
130 if ( isValidPos(x,y) )
131 data[y][x] = value;
132 };
133 void setValue(TilePosition p, unsigned char value)
134 {
135 this->setValue(p.x,p.y,value);

Callers 7

setRangeMethod · 0.95
AssignBuildableLocationsFunction · 0.80
RemoveDisconnectedFunction · 0.80
ReserveGroundHeightFunction · 0.80
ReserveDefaultFunction · 0.80
ReservePlacementFunction · 0.80
reserveTemplateSpacingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected