rl.common.game.elements
Class VehicleFiringSummary

java.lang.Object
  extended by rl.common.game.elements.GameElementFiringSummary
      extended by rl.common.game.elements.VehicleFiringSummary
All Implemented Interfaces:
java.io.Serializable, VehicleFiringListener

public class VehicleFiringSummary
extends GameElementFiringSummary
implements VehicleFiringListener

See Also:
Serialized Form

Nested Class Summary
 class VehicleFiringSummary.WeaponAmmunitionExpended
           
 
Field Summary
(package private) static long serialVersionUID
           
 
Constructor Summary
VehicleFiringSummary(Vehicle vehicle, int turn)
           
 
Method Summary
 void ammunitionConsumed(Vehicle vehicle, int mountIndex, int ammoConsumed)
          The vehicle has consumed ammunition for the mount referenced by the mount index.
 java.util.Vector<VehicleFiringSummary.WeaponAmmunitionExpended> getAmmuntionExpenditure()
           
 void vehicleFiring(Vehicle vehicle, int weaponIndex)
          The vehicle is firing a weapon
 
Methods inherited from class rl.common.game.elements.GameElementFiringSummary
getElementIdentifier, getTurn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

VehicleFiringSummary

public VehicleFiringSummary(Vehicle vehicle,
                            int turn)
Method Detail

vehicleFiring

public void vehicleFiring(Vehicle vehicle,
                          int weaponIndex)
Description copied from interface: VehicleFiringListener
The vehicle is firing a weapon

Specified by:
vehicleFiring in interface VehicleFiringListener

ammunitionConsumed

public void ammunitionConsumed(Vehicle vehicle,
                               int mountIndex,
                               int ammoConsumed)
Description copied from interface: VehicleFiringListener
The vehicle has consumed ammunition for the mount referenced by the mount index. The amount of ammo consumed is contained in the ammoConsumed param

Specified by:
ammunitionConsumed in interface VehicleFiringListener

getAmmuntionExpenditure

public java.util.Vector<VehicleFiringSummary.WeaponAmmunitionExpended> getAmmuntionExpenditure()