|
||||||||||
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.ModifyRegister
public abstract class ModifyRegister
This action is used to modifiy a public token or a private one of the card. This action can use the target list when is played : the address must be IdTokens#TARGET. So the target list must set before this action would be played.
Method Summary | |
---|---|
static int |
countAllCardsOf(Test test,
Ability ability,
int restrictionZone)
Checks all cards corresponding to this constraints |
abstract Actiontype |
getIdAction()
Return the index of this action. |
abstract boolean |
play(ContextEventListener context,
Ability ability)
Generate event associated to this action. |
java.lang.String |
toHtmlString(Ability ability,
ContextEventListener context)
Return the HTML code representing this action. |
abstract java.lang.String |
toString(Ability ability)
String representation of this action. |
Methods inherited from class net.sf.magicproject.action.UserAction |
---|
getActionName, manaNeeded, 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 abstract Actiontype getIdAction()
MAction
getIdAction
in class UserAction
Actiontype
public abstract boolean play(ContextEventListener context, Ability ability)
StandardAction
play
in interface StandardAction
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 static int countAllCardsOf(Test test, Ability ability, int restrictionZone)
test
- applied to count valid cardsability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.restrictionZone
- the restriction zone. If is -1
the scan would be
processed on all zones.
public abstract 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 final java.lang.String toHtmlString(Ability ability, ContextEventListener context)
MAction
toHtmlString
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.context
- is the context attached to this action.
MAction.toString(Ability)
,
MAction.toHtmlString(Ability, int, ContextEventListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |