--------------------------------------------- ISSUE COMMAND ----------------------------------------------
| 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; |
no test coverage detected