net.sf.magicproject.action.handler
Interface Replayable

All Known Subinterfaces:
ChoosenAction, InitAction
All Known Implementing Classes:
AbstractTarget, ChoosenTarget, Hop, Input, InputChoice, MessagingAction, ModifyTargetableRegister, PayMana, RealTarget, Repeat, SilentTarget, SingletonTarget

public interface Replayable

Since:
0.86
Author:
Fabrice Daugan

Method Summary
 boolean replay(ActionContextWrapper actionContext, ContextEventListener context, Ability ability)
          Generate event associated to this action.
 

Method Detail

replay

boolean replay(ActionContextWrapper actionContext,
               ContextEventListener context,
               Ability ability)
Generate event associated to this action. Only one or several events are generated and may be collected by event listeners. Then play this action

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.
Returns:
true if the stack can be resolved just after this call.


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