Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bwapi/bwapi
/ getCenter
Method
getCenter
bwapi/BWAPI/Source/BW/Pathing.cpp:50–53 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
48
}
49
50
Position region::getCenter() const
51
{
52
return BW::Position(static_cast<s16>(this->rgnCenterX >> 8), static_cast<s16>(this->rgnCenterY >> 8));
53
}
54
55
u16 region::getIndex() const
56
{
Callers
3
getAirDistance
Method · 0.95
RegionImpl
Method · 0.45
UpdateRegionRelations
Method · 0.45
Calls
1
Position
Class · 0.50
Tested by
no test coverage detected