|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwyvern.kernel.combat.slots.AbstractSlot
wyvern.kernel.combat.slots.AbstractWeaponSlot
This class serves as the superclass for weapon-slot-only body parts.
| Field Summary |
| Fields inherited from class wyvern.kernel.combat.slots.AbstractSlot |
layer_ |
| Constructor Summary | |
AbstractWeaponSlot()
|
|
| Method Summary | |
GameObject |
getItem()
Returns the item in this slot. |
Weapon |
getWeapon()
Returns the Weapon that this part is holding. |
boolean |
isEmpty()
Returns false if this slot is holding a weapon. |
void |
remove(GameObject item)
Removes the item in the slot. |
void |
setItem(GameObject item)
Sets the item in this slot. |
void |
setWeapon(Weapon weapon)
Puts a Weapon in this slot. |
java.lang.String |
toString()
Returns String representation. |
| Methods inherited from class wyvern.kernel.combat.slots.AbstractSlot |
getLayer, setLayer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface wyvern.kernel.combat.slots.ItemSlot |
getLayer, setLayer |
| Constructor Detail |
public AbstractWeaponSlot()
| Method Detail |
public boolean isEmpty()
isEmpty in interface ItemSlotpublic Weapon getWeapon()
getWeapon in interface WeaponSlotpublic void setWeapon(Weapon weapon)
setWeapon in interface WeaponSlotweapon - the Weapon to place in the slotpublic GameObject getItem()
getItem in interface ItemSlotpublic void setItem(GameObject item)
public void remove(GameObject item)
remove in interface ItemSlotitem - the item to remove.
java.lang.IllegalArgumentException - if the passed item doesn't
match the item in the slot.public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||