| 110 | return c; |
| 111 | } |
| 112 | UnitCommand UnitCommand::follow(Unit unit, Unit target, bool shiftQueueCommand) |
| 113 | { |
| 114 | UnitCommand c{ unit, UnitCommandTypes::Follow }; |
| 115 | c.target = target; |
| 116 | c.extra = shiftQueueCommand ? 1 : 0; |
| 117 | return c; |
| 118 | } |
| 119 | UnitCommand UnitCommand::gather(Unit unit, Unit target, bool shiftQueueCommand) |
| 120 | { |
| 121 | UnitCommand c{ unit, UnitCommandTypes::Gather }; |
no outgoing calls