| 91 | return c; |
| 92 | } |
| 93 | UnitCommand UnitCommand::patrol(Unit unit, Position target, bool shiftQueueCommand) |
| 94 | { |
| 95 | UnitCommand c{ unit, UnitCommandTypes::Patrol }; |
| 96 | c.assignTarget(target); |
| 97 | c.extra = shiftQueueCommand ? 1 : 0; |
| 98 | return c; |
| 99 | } |
| 100 | UnitCommand UnitCommand::holdPosition(Unit unit, bool shiftQueueCommand) |
| 101 | { |
| 102 | UnitCommand c{ unit, UnitCommandTypes::Hold_Position }; |