MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getAmmo

Method getAmmo

src/Savegame/Vehicle.cpp:78–85  ·  view source on GitHub ↗

* Returns the ammo contained in this vehicle. * @return Weapon ammo. */

Source from the content-addressed store, hash-verified

76 * @return Weapon ammo.
77 */
78int 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.

Callers 14

getIgnoredStoresMethod · 0.45
stepMethod · 0.45
checkupMethod · 0.45
addXCOMVehicleMethod · 0.45
initMethod · 0.45
moveLeftByValueMethod · 0.45
ItemsArrivingStateMethod · 0.45
GeoscapeCraftStateMethod · 0.45
DogfightStateMethod · 0.45
moveMethod · 0.45
fireWeapon1Method · 0.45
fireWeapon2Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected