|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.action.MAction
public abstract class MAction
This class is representing an atom action. Each action can generate more than an event.
Method Summary | |
---|---|
boolean |
equal(MAction constraintAction)
Return true if this action matches with the given action. |
java.lang.String |
getActionName()
Return the name of this action |
abstract Actiontype |
getIdAction()
Return the index of this action. |
int[] |
manaNeeded(Ability ability,
ContextEventListener context)
Return the amount of mana needed (constant part only) to play this ability As default, we return an empty number for all manas. |
Test |
parseTest(Test test)
Return the given test where values depending on values of this action have been replaced. |
java.lang.String |
toHtmlString(Ability ability,
ContextEventListener context)
Return the HTML code representing this action. |
java.lang.String |
toHtmlString(Ability ability,
int times,
ContextEventListener context)
Return the HTML code representing this action. |
java.lang.String |
toString()
|
abstract java.lang.String |
toString(Ability ability)
String representation of this action. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public abstract Actiontype getIdAction()
Actiontype
public int[] manaNeeded(Ability ability, ContextEventListener context)
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.context
- the context of playing ability.
public java.lang.String toHtmlString(Ability ability, ContextEventListener context)
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.
toString(Ability)
,
toHtmlString(Ability, int, ContextEventListener)
public java.lang.String toHtmlString(Ability ability, int times, ContextEventListener context)
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.times
- the times to repeat this action.context
- is the context attached to this action.
toString(Ability)
,
toHtmlString(Ability, ContextEventListener)
public abstract java.lang.String toString(Ability ability)
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 java.lang.String toString()
toString
in class java.lang.Object
public Test parseTest(Test test)
test
- the test containing eventually some values depending on parameters
of this action.
public boolean equal(MAction constraintAction)
constraintAction
- the constraint action.
public java.lang.String getActionName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |