net.sf.magicproject.action.handler
Interface FollowAction

All Superinterfaces:
RollBackAction
All Known Implementing Classes:
MoveCard

public interface FollowAction
extends RollBackAction

Represent a rolbackable action that can also be simulated.

Since:
0.90
Author:
Fabrice Daugan

Method Summary
 void rollback(ActionContextWrapper actionContext, ContextEventListener context, Ability ability)
          No generated event.
 void simulate(ActionContextWrapper actionContext, ContextEventListener context, Ability ability)
          No generated event.
 

Method Detail

simulate

void simulate(ActionContextWrapper actionContext,
              ContextEventListener context,
              Ability ability)
No generated event. Simulate an action. This action is considered as completed afterthis call, and th stack resolution should continue.

Parameters:
actionContext - the context containing data saved by this action during the 'choose" proceess.
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.

rollback

void rollback(ActionContextWrapper actionContext,
              ContextEventListener context,
              Ability ability)
No generated event. Rollback an action.

Specified by:
rollback in interface RollBackAction
Parameters:
actionContext - the context containing data saved by this action during the 'choose" proceess.
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.


Copyright © 2003-2007 Magic-Project. All Rights Reserved.