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

Method setLastImmediateCommand

bwapi/BWAPI/Source/BWAPI/UnitImpl.cpp:37–48  ·  view source on GitHub ↗

--------------------------------------------- ISSUE COMMAND ----------------------------------------------

Source from the content-addressed store, hash-verified

35 }
36 //--------------------------------------------- ISSUE COMMAND ----------------------------------------------
37 void UnitImpl::setLastImmediateCommand(const UnitCommand &command)
38 {
39 // Set last immediate command and immediate command frame
40 if ( command.type != UnitCommandTypes::Cloak &&
41 command.type != UnitCommandTypes::Decloak &&
42 command.type != UnitCommandTypes::Unload &&
43 !command.isQueued() )
44 {
45 static_cast<UnitImpl*>(command.unit)->lastImmediateCommand = command;
46 static_cast<UnitImpl*>(command.unit)->lastImmediateCommandFrame = BroodwarImpl.getFrameCount();
47 }
48 }
49 bool UnitImpl::prepareIssueCommand(UnitCommand &command)
50 {
51 command.unit = this;

Callers 2

prepareIssueCommandMethod · 0.80
addMethod · 0.80

Calls 2

isQueuedMethod · 0.80
getFrameCountMethod · 0.45

Tested by

no test coverage detected