| 117 | return c; |
| 118 | } |
| 119 | UnitCommand UnitCommand::gather(Unit unit, Unit target, bool shiftQueueCommand) |
| 120 | { |
| 121 | UnitCommand c{ unit, UnitCommandTypes::Gather }; |
| 122 | c.target = target; |
| 123 | c.extra = shiftQueueCommand ? 1 : 0; |
| 124 | return c; |
| 125 | } |
| 126 | UnitCommand UnitCommand::returnCargo(Unit unit, bool shiftQueueCommand) |
| 127 | { |
| 128 | UnitCommand c{ unit, UnitCommandTypes::Return_Cargo }; |