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.
|
Constructor Summary |
AmmunitionBay(int aCapacity)
Constructs a new AmmunitionBay. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AmmunitionBay
public AmmunitionBay(int aCapacity)
- Constructs a new AmmunitionBay.
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)