|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Armor - cloaks, boots, body armor, etc.
Field Summary |
Fields inherited from interface wyvern.lib.PropertyList |
PROPERTY_PACKAGE |
Method Summary | |
java.lang.String |
canWear(Commandable agent)
Called to see if the specified agent can wear this armor. |
void |
forceRemoval()
Removes the armor from its wearer, removing the armor from any defense-list on the wearer as well. |
int |
getAC(DamageType dtype)
Returns the AC versus a specified DamageType. |
java.lang.Class[] |
getRequiredSlots()
Returns a list of the slots that this armor requires in order to be worn. |
boolean |
isWorn()
Returns true if this armor is currently being worn. |
void |
setWorn(boolean worn,
Commandable agent)
Notifies the armor it's being worn. |
Methods inherited from interface wyvern.lib.MethodHookable |
addMethodHook, removeMethodHook, runMethodHook |
Methods inherited from interface wyvern.lib.Broadcaster |
broadcast, broadcast, broadcast, broadcast, broadcast |
Methods inherited from interface wyvern.lib.properties.Damageable |
adjustHP, getHP, getMaxHP, kill |
Method Detail |
public void setWorn(boolean worn, Commandable agent)
worn
- true if worn, false if notagent
- the person wearing/unwearing itpublic boolean isWorn()
public java.lang.Class[] getRequiredSlots()
public int getAC(DamageType dtype)
dtype
- the DamageType to defend against
public void forceRemoval()
public java.lang.String canWear(Commandable agent)
agent
- the player or monster trying to wear the armor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |