net.sf.magicproject.action
Class AddModifierFromStaticModifier
java.lang.Object
net.sf.magicproject.action.MAction
net.sf.magicproject.action.AddModifierFromStaticModifier
- All Implemented Interfaces:
- StandardAction
public class AddModifierFromStaticModifier
- extends MAction
- implements StandardAction
- Author:
- Fabrice Daugan
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AddModifierFromStaticModifier
public AddModifierFromStaticModifier(ModifierModel... modifiers)
- Creates a new instance of AddModifierFromStaticModifier
- Parameters:
modifiers
-
getIdAction
public final Actiontype getIdAction()
- Return the index of this action. As default, this is a zero id
- Specified by:
getIdAction
in class MAction
- Returns:
- the index of this action.
- See Also:
Actiontype
play
public boolean play(ContextEventListener context,
Ability ability)
- Description copied from interface:
StandardAction
- Generate event associated to this action. Only one or several events are
generated and may be collected by event listeners. Then play this action
- Specified by:
play
in interface StandardAction
- Parameters:
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.
- Returns:
- true if the stack can be resolved just after this call.
toString
public java.lang.String toString(Ability ability)
- return the string representation of this action
- Specified by:
toString
in class MAction
- Parameters:
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.
- Returns:
- the string representation of this action
- See Also:
Object.toString()
Copyright © 2003-2007 Magic-Project. All Rights Reserved.