|
||||||||||
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.WaitChoosenActionChoice
public final class WaitChoosenActionChoice
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(JChoosenAction action)
Called to specify the triggered 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 WaitChoosenActionChoice |
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 |
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(JChoosenAction action)
This function should be called by the 'clickOn' caller in case of the specified action has been handled during the checking validity of this click in the clickOn(JChoosenAction) function. |
java.lang.String |
toString(Ability ability)
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 |
Method Detail |
---|
public boolean clickOn(JChoosenAction action)
WaitingAction
clickOn
in interface WaitingAction
action
- the clicked 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(JChoosenAction action)
WaitingAction
clickOn(JChoosenAction)
function.
succeedClickOn
in interface WaitingAction
action
- the action that was clicked and successfuly handled by the
clickOn(JChoosenAction)
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 WaitingAction
public void finished()
Waiting
finished
in interface Waiting
finished
in interface WaitingAbility
finished
in interface WaitingAction
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)
MAction
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 WaitChoosenActionChoice getInstance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |