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

Method saveInitialState

bwapi/Shared/UnitShared.cpp:23–29  ·  view source on GitHub ↗

------------------------------------- INITIAL INFORMATION FUNCTIONS --------------------------------------

Source from the content-addressed store, hash-verified

21 }
22 //------------------------------------- INITIAL INFORMATION FUNCTIONS --------------------------------------
23 void UnitImpl::saveInitialState()
24 {
25 initialType = getType();
26 initialPosition = getPosition();
27 initialResources = getResources();
28 initialHitPoints = getHitPoints();
29 }
30 //--------------------------------------------- GET ID -----------------------------------------------------
31 int UnitImpl::getID() const
32 {

Callers 2

onMatchStartMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected