|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.vee.btech.component.AbstractComponent
A base class for component implementations.
| Fields inherited from interface net.vee.btech.component.Component |
AMMUNITION_BAY, COCKPIT, ENGINE, GYRO, HEAT_SINK, JUMP_JET, LIFE_SUPPORT, SENSORS, WEAPON |
| Constructor Summary | |
AbstractComponent(java.lang.String aType,
int aMass,
int aSize)
Constructs a new AbstractComponent. |
|
| Method Summary | |
int |
getHeat()
|
int |
getMass()
|
int |
getSize()
|
java.lang.String |
getType()
|
boolean |
isDamaged()
|
boolean |
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.Component |
getComponentType |
| Constructor Detail |
public AbstractComponent(java.lang.String aType,
int aMass,
int aSize)
aType - a label for this Component.aMass - the mass (in kilograms) of this component.aSize - the component's size (in critical hit locations).| Method Detail |
public java.lang.String getType()
getType in interface Componentpublic boolean isDamaged()
isDamaged in interface Componentpublic boolean isDestroyed()
isDestroyed in interface Componentpublic int getSize()
getSize in interface Componentpublic int getMass()
getMass in interface Componentpublic int getHeat()
getHeat in interface Component
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||