net.sf.magicproject.action.handler
Interface StandardAction

All Known Implementing Classes:
AbstractTarget, AddModifierFromStaticModifier, ChoosenTarget, DetachMe, GiveMana, Hop, Input, InputChoice, IntList, MessagingAction, ModifyRegister, ModifyTargetableRegister, ObjectMap, RealTarget, RefreshModifier, RemoveMe, Repeat, SilentTarget, SingletonTarget, Sound, Target, TargetList, UnregisterThis, WaitTriggeredBufferChoice

public interface StandardAction

A standard action is an action that can be simply be played with a given context.

Since:
0.90
Author:
Fabrice Daugan

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

Method Detail

play

boolean play(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:
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.