net.vee.btech.component
Class AbstractAmmunitionWeapon

java.lang.Object
  |
  +--net.vee.btech.component.AbstractComponent
        |
        +--net.vee.btech.component.AbstractWeapon
              |
              +--net.vee.btech.component.AbstractAmmunitionWeapon
All Implemented Interfaces:
AmmunitionWeapon, Component, Weapon
Direct Known Subclasses:
Artillery, Autocannon, MachineGun, MissileLauncher

public abstract class AbstractAmmunitionWeapon
extends AbstractWeapon
implements AmmunitionWeapon

A component designed to deal damage to an object.


Field Summary
protected  AmmunitionBay mAmmunitionBay
           
protected  int mRoundsPerTon
           
 
Fields inherited from class net.vee.btech.component.AbstractWeapon
mDamage, mHeat, mLongRange, mMediumRange, mMinimumRange, mShortRange
 
Fields inherited from interface net.vee.btech.component.Weapon
ARTILLERY, AUTOCANNON, LASER, MACHINE_GUN, MISSILE, PARTICLE_CANNON
 
Fields inherited from interface net.vee.btech.component.Component
AMMUNITION_BAY, COCKPIT, ENGINE, GYRO, HEAT_SINK, JUMP_JET, LIFE_SUPPORT, SENSORS, WEAPON
 
Constructor Summary
AbstractAmmunitionWeapon(java.lang.String aType, int aMass, int aSize, int aHeat, int aDamage, int aShortRange, int aMediumRange, int aLongRange, int aMinimumRange, int aRoundsPerTon)
          Constructs a new AbstractAmmunitionWeapon.
 
Method Summary
 AmmunitionBay getAmmunitionBay()
           
 int getRoundsPerTon()
           
 void setAmmunitionBay(AmmunitionBay aAmmoBay)
           
 
Methods inherited from class net.vee.btech.component.AbstractWeapon
getComponentType, getDamage, getHeat, getLongRange, getMediumRange, getMinimumRange, getShortRange
 
Methods inherited from class net.vee.btech.component.AbstractComponent
getMass, getSize, getType, isDamaged, isDestroyed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.vee.btech.component.Weapon
getDamage, getLongRange, getMediumRange, getMinimumRange, getShortRange, getWeaponType
 
Methods inherited from interface net.vee.btech.component.Component
getComponentType, getHeat, getMass, getSize, getType, isDamaged, isDestroyed
 

Field Detail

mRoundsPerTon

protected int mRoundsPerTon

mAmmunitionBay

protected AmmunitionBay mAmmunitionBay
Constructor Detail

AbstractAmmunitionWeapon

public AbstractAmmunitionWeapon(java.lang.String aType,
                                int aMass,
                                int aSize,
                                int aHeat,
                                int aDamage,
                                int aShortRange,
                                int aMediumRange,
                                int aLongRange,
                                int aMinimumRange,
                                int aRoundsPerTon)
Constructs a new AbstractAmmunitionWeapon.
Method Detail

getRoundsPerTon

public int getRoundsPerTon()
Specified by:
getRoundsPerTon in interface AmmunitionWeapon

getAmmunitionBay

public AmmunitionBay getAmmunitionBay()
Specified by:
getAmmunitionBay in interface AmmunitionWeapon

setAmmunitionBay

public void setAmmunitionBay(AmmunitionBay aAmmoBay)
Specified by:
setAmmunitionBay in interface AmmunitionWeapon