|
||||||||||
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.RemoveObject
public class RemoveObject
Remove an object from the component of target list. The specified test is used to filter the target list components involved by this action.
Method Summary | |
---|---|
boolean |
checkObject(Ability ability,
Targetable target,
int nbObjects)
|
boolean |
continueLoop(ContextEventListener context,
int loopingIndex,
Ability ability)
Continue this action, giving the next index of this loop. |
Actiontype |
getIdAction()
Return the index of this action. |
int |
getStartIndex()
Return the first index of this loop. |
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(Ability ability)
String representation of this action. |
Methods inherited from class net.sf.magicproject.action.UserAction |
---|
getActionName, manaNeeded |
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 Actiontype getIdAction()
MAction
getIdAction
in class UserAction
Actiontype
public 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 java.lang.String toHtmlString(Ability ability, int times, 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.times
- the times to repeat this action.context
- is the context attached to this action.
MAction.toString(Ability)
,
MAction.toHtmlString(Ability, ContextEventListener)
public 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)
public boolean continueLoop(ContextEventListener context, int loopingIndex, Ability ability)
LoopAction
continueLoop
in interface LoopAction
context
- is the context attached to this action.loopingIndex
- the current indexability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.
public boolean checkObject(Ability ability, Targetable target, int nbObjects)
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.target
- the component where objects will be removed fromnbObjects
- amount of required object
public int getStartIndex()
LoopAction
getStartIndex
in interface LoopAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |