|
||||||||||
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.UserAction net.sf.magicproject.action.MoveCard
public class MoveCard
To move the current target list from their place to another. New position
within the new zone, and the new controller have to be specified.
Method Summary | |
---|---|
boolean |
continueLoop(ContextEventListener context,
int loopingIndex,
Ability ability)
Continue this action, giving the next index of this loop. |
int |
getAccessibleInt(java.lang.String attribute)
Return the shared number from the given attribute. |
Targetable |
getAccessibleTargetable(java.lang.String attribute)
Return the shared targetable object from the given attribute. |
Actiontype |
getIdAction()
return the id of this action. |
int |
getStartIndex()
Return the first index of this loop. |
static boolean |
moveCard(MCard movingCard,
Player controller,
int destination,
ContextEventListener context,
int idPosition,
Ability ability,
boolean silentMode)
|
static boolean |
moveCard(MCard card,
TestOn controller,
int destination,
ContextEventListener context,
int idPosition,
Ability ability,
boolean silentMode)
Move a card in a zone with a specified new controller. |
void |
receiveMoveOrder(int[] order)
This method is called when the oponent has finished to choose the order of moves. |
void |
replayAction(ContextEventListener context,
Ability ability,
Wizard wizard)
Replay the current action as it was when it has been suspended. |
void |
rollback(ActionContextWrapper actionContext,
ContextEventListener context,
Ability ability)
No generated event. |
void |
simulate(ActionContextWrapper actionContext,
ContextEventListener context,
Ability ability)
No generated event. |
java.lang.String |
toString(Ability ability)
String representation of this action. |
Methods inherited from class net.sf.magicproject.action.UserAction |
---|
getActionName, manaNeeded, toHtmlString, toHtmlString |
Methods inherited from class net.sf.magicproject.action.MAction |
---|
equal, parseTest, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public final void replayAction(ContextEventListener context, Ability ability, Wizard wizard)
BackgroundMessaging
replayAction
in interface BackgroundMessaging
context
- 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.wizard
- the hidden wizard framepublic final Actiontype getIdAction()
getIdAction
in class UserAction
Actiontype
public static boolean moveCard(MCard card, TestOn controller, int destination, ContextEventListener context, int idPosition, Ability ability, boolean silentMode)
card
- the card to move.controller
- the new controller.destination
- the new zone.context
- the context of current ability.idPosition
- the new state of this card.ability
- the current ability.silentMode
- Is the silent mode is enabled while playing.
public static boolean moveCard(MCard movingCard, Player controller, int destination, ContextEventListener context, int idPosition, Ability ability, boolean silentMode)
movingCard
- the card to move.controller
- the new controller.destination
- the new zone.context
- the context of current ability.idPosition
- the new state of this card.ability
- the current ability.silentMode
- Is the silent mode is enabled for this move.
public boolean continueLoop(ContextEventListener context, int loopingIndex, Ability ability)
LoopAction
continueLoop
in interface LoopAction
context
- is the context attached to this action.loopingIndex
- the current indexability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.
public void receiveMoveOrder(int[] order)
order
- integer array corresponding to the order of cards owned by
opponent.public int getStartIndex()
LoopAction
getStartIndex
in interface LoopAction
public void rollback(ActionContextWrapper actionContext, ContextEventListener context, Ability ability)
FollowAction
rollback
in interface FollowAction
rollback
in interface RollBackAction
actionContext
- the context containing data saved by this action during the
'choose" proceess.context
- 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 void simulate(ActionContextWrapper actionContext, ContextEventListener context, Ability ability)
FollowAction
simulate
in interface FollowAction
actionContext
- the context containing data saved by this action during the
'choose" proceess.context
- 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 java.lang.String toString(Ability ability)
MAction
toString
in class UserAction
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 int getAccessibleInt(java.lang.String attribute)
AccessibleContext
getAccessibleInt
in interface AccessibleContext
attribute
- the requested targetable key.
public Targetable getAccessibleTargetable(java.lang.String attribute)
AccessibleContext
getAccessibleTargetable
in interface AccessibleContext
attribute
- the requested targetable key.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |