|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.modifier.ModifierModel
public abstract class ModifierModel
Method Summary | |
---|---|
void |
addModel(ModifierModel modelToAdd)
Add to the list of modifierModels of the specified card, this instance. |
abstract void |
addModifierFromModel(Ability ability,
MCard target)
Create modifier(s) on the specified target. |
void |
addStaticModifierFromModel(Ability ability)
Add all static modifiers. |
abstract ModifierModel |
clone()
|
void |
removeObject(MCard fromCard,
Test objectTest)
Remove one instance of this object from the given card. |
abstract java.lang.String |
toHtmlString(Ability ability,
ContextEventListener context)
Return the HTML code representing this action. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final void addModel(ModifierModel modelToAdd)
modelToAdd
- This new modifier will be added to the tail of modifier list.public abstract ModifierModel clone()
clone
in class java.lang.Object
public abstract void addModifierFromModel(Ability ability, MCard target)
ability
- is the ability owning causin the creation of this modifier. The
card component of this ability should correspond to the card
owning this test too.target
- is the card this new modifier would be attached to.public abstract 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
- the context needed by event activated
public void removeObject(MCard fromCard, Test objectTest)
fromCard
- objectTest
- The test applied on specific modifier to be removed.public void addStaticModifierFromModel(Ability ability)
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |