* Returns the ammo contained in this vehicle. * @return Weapon ammo. */
| 76 | * @return Weapon ammo. |
| 77 | */ |
| 78 | int Vehicle::getAmmo() const |
| 79 | { |
| 80 | if (_ammo == -1) |
| 81 | { |
| 82 | return 255; |
| 83 | } |
| 84 | return _ammo; |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Changes the ammo contained in this vehicle. |
no outgoing calls
no test coverage detected