| 197 | return c; |
| 198 | } |
| 199 | UnitCommand UnitCommand::rightClick(Unit unit, Position target, bool shiftQueueCommand) |
| 200 | { |
| 201 | UnitCommand c{ unit, UnitCommandTypes::Right_Click_Position }; |
| 202 | c.assignTarget(target); |
| 203 | c.extra = shiftQueueCommand ? 1 : 0; |
| 204 | return c; |
| 205 | } |
| 206 | UnitCommand UnitCommand::rightClick(Unit unit, Unit target, bool shiftQueueCommand) |
| 207 | { |
| 208 | UnitCommand c{ unit, UnitCommandTypes::Right_Click_Unit }; |