|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The superinterface of ArmorSlot and WeaponSlot.
Method Summary | |
GameObject |
getItem()
Returns the item (Armor or Weapon) in this slot. |
int |
getLayer()
Gets the slot-layer for this slot. |
boolean |
isEmpty()
Returns false if this slot has armor in it. |
void |
remove(GameObject item)
Removes the item in the slot. |
void |
setLayer(int layer)
Sets the slot-layer. |
Method Detail |
public boolean isEmpty()
public GameObject getItem()
public void remove(GameObject item)
item
- the item to remove.
java.lang.IllegalArgumentException
- if the passed item doesn't
match the item in the slot.public void setLayer(int layer)
A slot's layer defaults to zero (0), with negative being under this slot, and a positive layer covering it.
public int getLayer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |