|
||||||||||
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
public abstract class UserAction
Actiontype
Method Summary | |
---|---|
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. |
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. |
abstract java.lang.String |
toString(Ability ability)
String representation of this action. |
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 MAction
Actiontype
public int[] manaNeeded(Ability ability, ContextEventListener context)
MAction
manaNeeded
in class MAction
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)
MAction
toHtmlString
in class MAction
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)
public java.lang.String toHtmlString(Ability ability, int times, ContextEventListener context)
MAction
toHtmlString
in class MAction
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.
MAction.toString(Ability)
,
MAction.toHtmlString(Ability, ContextEventListener)
public abstract java.lang.String toString(Ability ability)
MAction
toString
in class MAction
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 getActionName()
MAction
getActionName
in class MAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |