| 171 | return c; |
| 172 | } |
| 173 | UnitCommand UnitCommand::load(Unit unit, Unit target, bool shiftQueueCommand) |
| 174 | { |
| 175 | UnitCommand c{ unit, UnitCommandTypes::Load }; |
| 176 | c.target = target; |
| 177 | c.extra = shiftQueueCommand ? 1 : 0; |
| 178 | return c; |
| 179 | } |
| 180 | UnitCommand UnitCommand::unload(Unit unit, Unit target) |
| 181 | { |
| 182 | UnitCommand c{ unit, UnitCommandTypes::Unload }; |