| 35 | return c; |
| 36 | } |
| 37 | UnitCommand UnitCommand::build(Unit unit, TilePosition target, UnitType type) |
| 38 | { |
| 39 | UnitCommand c{ unit, UnitCommandTypes::Build }; |
| 40 | c.assignTarget(target); |
| 41 | c.extra = type; |
| 42 | return c; |
| 43 | } |
| 44 | UnitCommand UnitCommand::buildAddon(Unit unit, UnitType type) |
| 45 | { |
| 46 | UnitCommand c{ unit, UnitCommandTypes::Build_Addon }; |