| 9 | DefenseUse defenseuse_aa_impl(AISCRIPT::Enum::DEFENSEUSE_AA); |
| 10 | |
| 11 | bool DefenseUse::execute(aithread &thread) const |
| 12 | { |
| 13 | // Parameters |
| 14 | BYTE bCount; |
| 15 | WORD wUnitType; |
| 16 | thread.readTuple( std::tie(bCount, wUnitType) ); |
| 17 | |
| 18 | MainController.DefenseUse(this->getOpcode() - AISCRIPT::Enum::DEFENSEUSE_GG, bCount, wUnitType); |
| 19 | |
| 20 | // Debug and return |
| 21 | thread.saveDebug(Text::Green, this->getOpcode(), "%u %s", bCount, AISCRIPT::getUnitName(wUnitType) ); |
| 22 | return true; |
| 23 | } |
nothing calls this directly
no test coverage detected