| 2021 | bool Vehicle::isDead() const { return health <= 0; } |
| 2022 | |
| 2023 | Vec3<float> Vehicle::getMuzzleLocation() const |
| 2024 | { |
| 2025 | return type->isGround() |
| 2026 | ? Vec3<float>(position.x, position.y, position.z + (float)type->height / 16.0f) |
| 2027 | : Vec3<float>(position.x, position.y, |
| 2028 | position.z - tileObject->getVoxelOffset().z + |
| 2029 | (float)type->height / 16.0f); |
| 2030 | } |
| 2031 | |
| 2032 | void Vehicle::update(GameState &state, unsigned int ticks) |
| 2033 | { |
no test coverage detected