|
||||||||||
| 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.WaitActivatedChoice
public final class WaitActivatedChoice
| Field Summary | |
|---|---|
static boolean |
opponentResponse
If true, player can response to opponent effects |
| Method Summary | |
|---|---|
java.util.List<Ability> |
abilitiesOf(MCard card)
Return activated abilities of the specified card. |
java.util.List<Ability> |
advancedAbilitiesOf(MCard card)
Return activated advanced abilities of the specified card. |
boolean |
clickOn(Ability ability)
Called to specify the triggered card chosen for the current action by the handed player |
boolean |
clickOn(MCard card)
Called to specify the card chosen for the current action by the handed player |
void |
finished()
Called when this action is finished (aborted or completed). |
Actiontype |
getIdAction()
Return the index of this action. |
static WaitActivatedChoice |
getInstance()
Return the unique instance of this class. |
boolean |
manualSkip()
Called by the handed player when he/she wants to skip/abort this action. |
boolean |
play(ContextEventListener context,
Ability ability)
Generate event associated to this action. |
boolean |
succeedClickOn(Ability ability)
This function should be called by the 'clickOn' caller in case of the specified ability has been handled during the checking validity of this click in the clickOn(Ability) function. |
boolean |
succeedClickOn(MCard card)
This function should be called by the 'clickOn' caller in case of the specified card has been handled during the checking validity of this click in the clickOn(MCard) function. |
java.lang.String |
toString(Ability ability)
return the string representation of this action |
| Methods inherited from class net.sf.magicproject.action.MAction |
|---|
equal, getActionName, manaNeeded, parseTest, toHtmlString, toHtmlString, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static boolean opponentResponse
| Method Detail |
|---|
public boolean play(ContextEventListener context,
Ability ability)
ability - 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.
public boolean clickOn(MCard card)
WaitingCard
clickOn in interface WaitingCardcard - the clicked card by the handed player for the current action
public boolean clickOn(Ability ability)
WaitingAbility
clickOn in interface WaitingAbilityability - the clicked card by the handed player for the current action
public boolean succeedClickOn(MCard card)
WaitingCardclickOn(MCard) function.
succeedClickOn in interface WaitingCardcard - the card that was clicked and successfuly handled by the
clickOn(MCard) function.
public boolean succeedClickOn(Ability ability)
WaitingAbilityclickOn(Ability) function.
succeedClickOn in interface WaitingAbilityability - the ability that was clicked and successfuly handled by the
clickOn(Ability) function.
WaitingAbility.clickOn(Ability)public Actiontype getIdAction()
MAction
getIdAction in class MActionActiontypepublic boolean manualSkip()
Waiting
manualSkip in interface WaitingmanualSkip in interface WaitingAbilitymanualSkip in interface WaitingCardpublic void finished()
Waiting
finished in interface Waitingfinished in interface WaitingAbilityfinished in interface WaitingCardpublic java.util.List<Ability> abilitiesOf(MCard card)
WaitingAbility
abilitiesOf in interface WaitingAbilitycard - the requesting card the abilities will be listed from.
public java.util.List<Ability> advancedAbilitiesOf(MCard card)
WaitingAbility
advancedAbilitiesOf in interface WaitingAbilitycard - the requesting card the abilities will be listed from.
public java.lang.String toString(Ability ability)
toString in class MActionability - is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.
Object.toString()public static WaitActivatedChoice getInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||