|
||||||||||
| 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.MessagingAction
net.sf.magicproject.action.InputChoice
public class InputChoice
Propose to choose within several valid actions list. If 'hop' attribute is specified and is 'true', cancel option would be available during the choice.
| Method Summary | |
|---|---|
boolean |
checkTarget(Ability ability,
int actionIndex)
Verify if this target action may cause abortion of the current ability. |
Actiontype |
getIdAction()
Return the index of this action. |
int |
getSkipHop()
Return the hop to do to skip this action. |
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. |
java.lang.String |
toHtmlString(Ability ability,
ContextEventListener context)
Return the HTML code representing this action. |
java.lang.String |
toString(Ability ability)
String representation of this action. |
| Methods inherited from class net.sf.magicproject.action.MessagingAction |
|---|
finishedMessage, init, replayAction |
| Methods inherited from class net.sf.magicproject.action.UserAction |
|---|
getActionName, manaNeeded, 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 play(ContextEventListener context,
Ability ability)
StandardAction
play in interface StandardActionplay in class MessagingActioncontext - 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 final boolean replay(ActionContextWrapper actionContext,
ContextEventListener context,
Ability ability)
InitAction
replay in interface InitActionreplay in interface Replayablereplay in class MessagingActionactionContext - 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 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()
public java.lang.String toHtmlString(Ability ability,
ContextEventListener context)
MAction
toHtmlString in class UserActionability - is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.context - is the context attached to this action.
MAction.toString(Ability),
MAction.toHtmlString(Ability, int, ContextEventListener)
public final boolean checkTarget(Ability ability,
int actionIndex)
ability - is the ability owning this action. The card component of this
ability should correspond to the card owning this test too.actionIndex - the choosen action index
public int getSkipHop()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||