|
||||||||||
| 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.WaitTriggeredBufferChoice
public final class WaitTriggeredBufferChoice
| Method Summary | |
|---|---|
boolean |
clickOn(TriggeredCard triggeredCard)
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 WaitTriggeredBufferChoice |
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(TriggeredCard triggeredCard)
This function should be called by the 'clickOn' caller in case of the specified triggered has been handled during the checking validity of this click in the clickOn(TriggeredCard) 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 void finished()
Waiting
finished in interface Waitingfinished in interface WaitingTriggeredCard
public boolean play(ContextEventListener context,
Ability ability)
StandardAction
play in interface StandardActioncontext - 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 boolean clickOn(TriggeredCard triggeredCard)
WaitingTriggeredCard
clickOn in interface WaitingTriggeredCardtriggeredCard - the clicked card by the handed player for the current action
public boolean succeedClickOn(TriggeredCard triggeredCard)
WaitingTriggeredCardclickOn(TriggeredCard) function.
succeedClickOn in interface WaitingTriggeredCardtriggeredCard - the triggered card that was clicked and successfuly handled by the
clickOn(TriggeredCard) function.
public boolean manualSkip()
Waiting
manualSkip in interface WaitingmanualSkip in interface WaitingTriggeredCardpublic Actiontype getIdAction()
MAction
getIdAction in class MActionActiontypepublic 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 WaitTriggeredBufferChoice getInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||