|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.action.MAction net.sf.magicproject.action.UserAction net.sf.magicproject.action.MessagingAction
public abstract class MessagingAction
Method Summary | |
---|---|
static void |
finishedMessage(int optionAnswer,
int indexAnswer,
ContextEventListener context,
Ability ability,
ActionContextWrapper actionContext)
The returned value is piped to the 'modifyregister' action. |
boolean |
init(ActionContextWrapper actionContext,
ContextEventListener context,
Ability ability)
No generated event. |
abstract 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 |
replayAction(ContextEventListener context,
Ability ability,
Wizard wizard)
Replay the current action as it was when it has been suspended. |
Methods inherited from class net.sf.magicproject.action.UserAction |
---|
getActionName, getIdAction, manaNeeded, toHtmlString, toHtmlString, toString |
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 void replayAction(ContextEventListener context, Ability ability, Wizard wizard)
replayAction
in interface BackgroundMessaging
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.wizard
- the hidden wizard framepublic static final void finishedMessage(int optionAnswer, int indexAnswer, ContextEventListener context, Ability ability, ActionContextWrapper actionContext)
optionAnswer
- the option value. yes/no/cancel,...indexAnswer
- the optionnal value.context
- the context of playing ability.ability
- the playing ability.actionContext
- the context of this action.public final boolean init(ActionContextWrapper actionContext, ContextEventListener context, Ability ability)
InitAction
init
in interface InitAction
actionContext
- 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 InitAction
replay
in interface Replayable
actionContext
- 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 abstract boolean play(ContextEventListener context, Ability ability)
StandardAction
play
in interface StandardAction
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |