| 21 | , type(_type) |
| 22 | {} |
| 23 | UnitCommand UnitCommand::attack(Unit unit, Position target, bool shiftQueueCommand) |
| 24 | { |
| 25 | UnitCommand c{ unit, UnitCommandTypes::Attack_Move }; |
| 26 | c.assignTarget(target); |
| 27 | c.extra = shiftQueueCommand ? 1 : 0; |
| 28 | return c; |
| 29 | } |
| 30 | UnitCommand UnitCommand::attack(Unit unit, Unit target, bool shiftQueueCommand) |
| 31 | { |
| 32 | UnitCommand c{ unit, UnitCommandTypes::Attack_Unit }; |