|
||||||||||
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.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 WaitingCard
card
- the clicked card by the handed player for the current action
public boolean clickOn(Ability ability)
WaitingAbility
clickOn
in interface WaitingAbility
ability
- the clicked card by the handed player for the current action
public boolean succeedClickOn(MCard card)
WaitingCard
clickOn(MCard)
function.
succeedClickOn
in interface WaitingCard
card
- the card that was clicked and successfuly handled by the
clickOn(MCard)
function.
public boolean succeedClickOn(Ability ability)
WaitingAbility
clickOn(Ability)
function.
succeedClickOn
in interface WaitingAbility
ability
- the ability that was clicked and successfuly handled by the
clickOn(Ability)
function.
WaitingAbility.clickOn(Ability)
public Actiontype getIdAction()
MAction
getIdAction
in class MAction
Actiontype
public boolean manualSkip()
Waiting
manualSkip
in interface Waiting
manualSkip
in interface WaitingAbility
manualSkip
in interface WaitingCard
public void finished()
Waiting
finished
in interface Waiting
finished
in interface WaitingAbility
finished
in interface WaitingCard
public java.util.List<Ability> abilitiesOf(MCard card)
WaitingAbility
abilitiesOf
in interface WaitingAbility
card
- the requesting card the abilities will be listed from.
public java.util.List<Ability> advancedAbilitiesOf(MCard card)
WaitingAbility
advancedAbilitiesOf
in interface WaitingAbility
card
- the requesting card the abilities will be listed from.
public java.lang.String toString(Ability ability)
toString
in class MAction
ability
- 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 |