net.vee.btech.component
Class AmmunitionBay

java.lang.Object
  |
  +--net.vee.btech.component.AmmunitionBay
All Implemented Interfaces:
Component

public class AmmunitionBay
extends java.lang.Object
implements Component

A bay containing ammunition for an ammunition-based weapon.


Fields inherited from interface net.vee.btech.component.Component
AMMUNITION_BAY, COCKPIT, ENGINE, GYRO, HEAT_SINK, JUMP_JET, LIFE_SUPPORT, SENSORS, WEAPON
 
Constructor Summary
AmmunitionBay(int aCapacity)
          Constructs a new AmmunitionBay.
 
Method Summary
 int getComponentType()
           
 int getHeat()
           
 int getMass()
           
 int getSize()
           
 java.lang.String getType()
          Returns the bay's type.
 Weapon getWeapon()
           
 boolean isDamaged()
           
 boolean isDestroyed()
           
 void setWeapon(Weapon aWeapon)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmmunitionBay

public AmmunitionBay(int aCapacity)
Constructs a new AmmunitionBay.
Method Detail

getType

public java.lang.String getType()
Returns the bay's type.
Specified by:
getType in interface Component

getComponentType

public int getComponentType()
Specified by:
getComponentType in interface Component

isDamaged

public boolean isDamaged()
Specified by:
isDamaged in interface Component

isDestroyed

public boolean isDestroyed()
Specified by:
isDestroyed in interface Component

getSize

public int getSize()
Specified by:
getSize in interface Component

getMass

public int getMass()
Specified by:
getMass in interface Component

getHeat

public int getHeat()
Specified by:
getHeat in interface Component

getWeapon

public Weapon getWeapon()

setWeapon

public void setWeapon(Weapon aWeapon)