| 285 | return target; |
| 286 | } |
| 287 | Position UnitCommand::getTargetPosition() const |
| 288 | { |
| 289 | if (type == UnitCommandTypes::Build || |
| 290 | type == UnitCommandTypes::Land || |
| 291 | type == UnitCommandTypes::Place_COP) |
| 292 | return Position(TilePosition(x,y)); |
| 293 | return Position(x,y); |
| 294 | } |
| 295 | TilePosition UnitCommand::getTargetTilePosition() const |
| 296 | { |
| 297 | if (type == UnitCommandTypes::Build || |
no test coverage detected