| 1446 | } |
| 1447 | |
| 1448 | BattleUnitType BattleUnit::getType() const |
| 1449 | { |
| 1450 | if (isLarge()) |
| 1451 | { |
| 1452 | if (canFly()) |
| 1453 | { |
| 1454 | return BattleUnitType::LargeFlyer; |
| 1455 | } |
| 1456 | else |
| 1457 | { |
| 1458 | return BattleUnitType::LargeWalker; |
| 1459 | } |
| 1460 | } |
| 1461 | else |
| 1462 | { |
| 1463 | if (canFly()) |
| 1464 | { |
| 1465 | return BattleUnitType::SmallFlyer; |
| 1466 | } |
| 1467 | else |
| 1468 | { |
| 1469 | return BattleUnitType::SmallWalker; |
| 1470 | } |
| 1471 | } |
| 1472 | } |
| 1473 | |
| 1474 | bool BattleUnit::isAIControlled(GameState &state) const |
| 1475 | { |
no outgoing calls
no test coverage detected