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

Method clear

bwapi/Shared/UnitShared.cpp:9–21  ·  view source on GitHub ↗

--------------------------------------------- CLEAR ------------------------------------------------------

Source from the content-addressed store, hash-verified

7{
8 //--------------------------------------------- CLEAR ------------------------------------------------------
9 void UnitImpl::clear()
10 {
11 initialType = UnitTypes::None;
12 initialResources = 0;
13 initialHitPoints = 0;
14 initialPosition = Positions::None;
15 lastCommandFrame = 0;
16 lastCommand = UnitCommand();
17 this->clientInfo.clear();
18 this->interfaceEvents.clear();
19
20 connectedUnits.clear();
21 }
22 //------------------------------------- INITIAL INFORMATION FUNCTIONS --------------------------------------
23 void UnitImpl::saveInitialState()
24 {

Callers 2

~TestModuleMethod · 0.45
updateMethod · 0.45

Calls 1

UnitCommandClass · 0.50

Tested by 2

~TestModuleMethod · 0.36
updateMethod · 0.36