|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.modifier.ModifierModel net.sf.magicproject.modifier.AbilityModifierModel net.sf.magicproject.modifier.ObjectAbilityModifierModel
public class ObjectAbilityModifierModel
Method Summary | |
---|---|
void |
addModifierFromModel(Ability ability,
MCard target)
Create modifier(s) on the specified target. |
ObjectAbilityModifierModel |
clone()
Creates and returns a copy of this object. |
int |
getNbObject(MCard card,
Test objectTest)
Return occurences number of the given object with the given name. |
java.lang.String |
getObjectName()
Return the object name |
void |
removeObject(MCard fromCard,
Test objectTest)
Remove one instance of this object from the given card. |
Methods inherited from class net.sf.magicproject.modifier.AbilityModifierModel |
---|
toHtmlString |
Methods inherited from class net.sf.magicproject.modifier.ModifierModel |
---|
addModel, addStaticModifierFromModel |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void addModifierFromModel(Ability ability, MCard target)
ModifierModel
addModifierFromModel
in interface ObjectModifierModel
addModifierFromModel
in class AbilityModifierModel
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 ObjectAbilityModifierModel clone()
ObjectModifierModel
clone
in interface ObjectModifierModel
clone
in class AbilityModifierModel
Cloneable
public java.lang.String getObjectName()
ObjectModifierModel
getObjectName
in interface ObjectModifierModel
public void removeObject(MCard fromCard, Test objectTest)
ModifierModel
removeObject
in interface ObjectModifierModel
removeObject
in class ModifierModel
objectTest
- The test applied on specific modifier to be removed.public int getNbObject(MCard card, Test objectTest)
ObjectModifierModel
getNbObject
in interface ObjectModifierModel
card
- the card on which objects will be counted.objectTest
- The test applied on specific modifier to be removed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |