| 6 | IMPLEMENT(Wait_Train); |
| 7 | |
| 8 | bool Wait_Train::execute(aithread &thread) const |
| 9 | { |
| 10 | // Parameters |
| 11 | BYTE bCount; |
| 12 | WORD wUnitType; |
| 13 | thread.readTuple( std::tie(bCount, wUnitType) ); |
| 14 | |
| 15 | // Debug |
| 16 | thread.saveDebug(Text::Green, this->getOpcode(), "%u %s", bCount, AISCRIPT::getUnitName(wUnitType) ); |
| 17 | |
| 18 | // Perform actions |
| 19 | if ( GetStandardUnitCount(wUnitType) < bCount ) |
| 20 | return thread.retry(); |
| 21 | return thread.noretry(); |
| 22 | } |
nothing calls this directly
no test coverage detected