| 301 | return TilePosition(Position(x,y)); |
| 302 | } |
| 303 | UnitType UnitCommand::getUnitType() const |
| 304 | { |
| 305 | if (type == UnitCommandTypes::Build || |
| 306 | type == UnitCommandTypes::Build_Addon || |
| 307 | type == UnitCommandTypes::Train || |
| 308 | type == UnitCommandTypes::Morph) |
| 309 | return UnitType(extra); |
| 310 | return UnitTypes::None; |
| 311 | } |
| 312 | TechType UnitCommand::getTechType() const |
| 313 | { |
| 314 | if (type == UnitCommandTypes::Research || |
no test coverage detected