net.sf.magicproject.modifier
Class RegisterModifierModel

java.lang.Object
  extended by net.sf.magicproject.modifier.ModifierModel
      extended by net.sf.magicproject.modifier.RegisterModifierModel

public class RegisterModifierModel
extends ModifierModel

Since:
0.85 Recalculate attribute is supported
Author:
Fabrice Daugan

Method Summary
 void addModifierFromModel(Ability ability, MCard target)
          Create modifier(s) on the specified target.
 RegisterModifierModel clone()
           
 java.lang.String toHtmlString(Ability ability, ContextEventListener context)
          Return the HTML code representing this action.
 java.lang.String toHtmlString(Ability ability, ContextEventListener context, RegisterModifierModel other)
          Return the HTML code representing this action.
 
Methods inherited from class net.sf.magicproject.modifier.ModifierModel
addModel, addStaticModifierFromModel, removeObject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addModifierFromModel

public void addModifierFromModel(Ability ability,
                                 MCard target)
Description copied from class: ModifierModel
Create modifier(s) on the specified target.

Specified by:
addModifierFromModel in class ModifierModel
Parameters:
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.

clone

public RegisterModifierModel clone()
Specified by:
clone in class ModifierModel

toHtmlString

public java.lang.String toHtmlString(Ability ability,
                                     ContextEventListener context)
Description copied from class: ModifierModel
Return the HTML code representing this action. If this action is named, it's name will be returned. If not, if existing, the picture associated to this action is returned. Otherwise, built-in action's text will be returned.

Specified by:
toHtmlString in class ModifierModel
Parameters:
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
Returns:
the HTML code representing this action. If this action is named, it's name will be returned. If not, if existing, the picture associated to this action is returned. Otherwise, built-in action's text will be returned.

toHtmlString

public java.lang.String toHtmlString(Ability ability,
                                     ContextEventListener context,
                                     RegisterModifierModel other)
Return the HTML code representing this action. If this action is named, it's name will be returned. If not, if existing, the picture associated to this action is returned. Otherwise, built-in action's text will be returned.

Parameters:
ability - is the ability owning this test. The card component of this ability should correspond to the card owning this test too.
context -
other - the immediatly followed register modifier instance.
Returns:
the HTML code representing this action. If this action is named, it's name will be returned. If not, if existing, the picture associated to this action is returned. Otherwise, built-in action's text will be returned.
Since:
0.86


Copyright © 2003-2007 Magic-Project. All Rights Reserved.