| 84 | return c; |
| 85 | } |
| 86 | UnitCommand UnitCommand::move(Unit unit, Position target, bool shiftQueueCommand) |
| 87 | { |
| 88 | UnitCommand c{ unit, UnitCommandTypes::Move }; |
| 89 | c.assignTarget(target); |
| 90 | c.extra = shiftQueueCommand ? 1 : 0; |
| 91 | return c; |
| 92 | } |
| 93 | UnitCommand UnitCommand::patrol(Unit unit, Position target, bool shiftQueueCommand) |
| 94 | { |
| 95 | UnitCommand c{ unit, UnitCommandTypes::Patrol }; |