|
||||||||||
| 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.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 WaitingActionaction - the clicked 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(JChoosenAction action)
WaitingActionclickOn(JChoosenAction) function.
succeedClickOn in interface WaitingActionaction - the action that was clicked and successfuly handled by the
clickOn(JChoosenAction) 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 WaitingActionpublic void finished()
Waiting
finished in interface Waitingfinished in interface WaitingAbilityfinished in interface WaitingActionpublic 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)
MAction
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 WaitChoosenActionChoice getInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||