|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.mud4j.effect.AbstractEffect
net.sf.mud4j.effect.AbstractItemEffect
public class AbstractItemEffect
Abstract item effect imlementation to implement all necessary functionality for an extending class to use and implement business item effect data. Extending from this class will provide the class with core item effect functionality.
Constructor Summary | |
---|---|
AbstractItemEffect(Item item)
|
Method Summary | |
---|---|
void |
apply()
Apply effect on the target. |
boolean |
isPermanent()
Determine if the effect is permanent. |
void |
setItem(Item item)
Set the effect to use the specified item. |
void |
undo()
Undo the effect from the target. |
Methods inherited from class net.sf.mud4j.effect.AbstractEffect |
---|
getName, hasExpired |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.mud4j.effect.Effect |
---|
getName, hasExpired |
Constructor Detail |
---|
public AbstractItemEffect(Item item)
Method Detail |
---|
public void setItem(Item item)
setItem
in interface ItemEffect
item
- Item that the effect will use.public void apply() throws EffectException
apply
in interface Effect
apply
in class AbstractEffect
EffectException
public void undo() throws EffectException
undo
in interface Effect
undo
in class AbstractEffect
EffectException
public boolean isPermanent()
isPermanent
in interface Effect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |