|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.magicproject.action.MAction
net.sf.magicproject.action.UserAction
net.sf.magicproject.action.Hop
public class Hop
Change the normal jump(1) in the current actions chain, to another one . This jump can be positive or negative. Zero mean infinite loop.
| Method Summary | |
|---|---|
Actiontype |
getIdAction()
Return the index of this action. |
boolean |
init(ActionContextWrapper actionContext,
ContextEventListener context,
Ability ability)
No generated event. |
boolean |
play(ContextEventListener context,
Ability ability)
Generate event associated to this action. |
boolean |
replay(ActionContextWrapper actionContext,
ContextEventListener context,
Ability ability)
Generate event associated to this action. |
void |
rollback(ActionContextWrapper actionContext,
ContextEventListener context,
Ability ability)
No generated event. |
java.lang.String |
toString(Ability ability)
String representation of this action. |
| Methods inherited from class net.sf.magicproject.action.UserAction |
|---|
getActionName, manaNeeded, toHtmlString, toHtmlString |
| Methods inherited from class net.sf.magicproject.action.MAction |
|---|
equal, parseTest, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public final Actiontype getIdAction()
MAction
getIdAction in class UserActionActiontype
public boolean init(ActionContextWrapper actionContext,
ContextEventListener context,
Ability ability)
InitAction
init in interface InitActionactionContext - the context containing data saved by this action during the
'choose" proceess.context - is the context attached to this action.ability - is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.
public boolean replay(ActionContextWrapper actionContext,
ContextEventListener context,
Ability ability)
InitAction
replay in interface InitActionreplay in interface ReplayableactionContext - the context containing data saved by this action during the
'choose" proceess.context - is the context attached to this action.ability - is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.
public void rollback(ActionContextWrapper actionContext,
ContextEventListener context,
Ability ability)
RollBackAction
rollback in interface RollBackActionactionContext - the context containing data saved by this action during the
'choose" proceess.context - is the context attached to this action.ability - is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.
public boolean play(ContextEventListener context,
Ability ability)
StandardAction
play in interface StandardActioncontext - is the context attached to this action.ability - is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.
public java.lang.String toString(Ability ability)
MAction
toString in class UserActionability - is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.
Object.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||