|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.eoi.freya.game.XMLObject | +--com.eoi.freya.game.OwnedObject | +--com.eoi.freya.game.BaseUnit
BaseUnits are the simplest instance of a Unit. Extending OwnedObject gives them a name and owner. They can be alive or dead and have an Inventoey.
Fields inherited from class com.eoi.freya.game.XMLObject |
info |
Constructor Summary | |
BaseUnit(org.jdom.Element unitInfo)
Units must have an Element to start with |
Method Summary | |
Inventory |
getInventory()
|
boolean |
isDead()
|
void |
setDead(boolean isDead)
|
Methods inherited from class com.eoi.freya.game.OwnedObject |
getOwner, setOwner |
Methods inherited from class com.eoi.freya.game.XMLObject |
addElement, getElement, getInfo, getIntSetting, getIterator, getName, getSetting, isSetting, setBooleanSetting, setInfo, setIntSetting, setName, setSetting |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.eoi.freya.game.Unit |
getName |
Constructor Detail |
public BaseUnit(org.jdom.Element unitInfo)
Method Detail |
public Inventory getInventory()
getInventory
in interface Unit
public boolean isDead()
isDead
in interface Unit
public void setDead(boolean isDead)
setDead
in interface Unit
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |