net.sf.magicproject.modifier
Interface ObjectModifier

All Known Implementing Classes:
AbilityModifier, AdditionalCostModifier, ColorModifier, ControllerModifier, IdCardModifier, Modifier, ObjectAbilityModifier, ObjectColorModifier, ObjectIdCardModifier, ObjectPropertyModifier, ObjectRegisterModifier, PlayableZoneModifier, PropertyModifier, RegisterIndirection, RegisterModifier, StaticModifier

public interface ObjectModifier

Since:
0.86
Author:
Fabrice Daugan

Method Summary
 int getNbObjects(java.lang.String objectName, Test objectTest)
          Return occurences number of the given object with the given name.
 int paintObject(java.awt.Graphics g, int startX, int startY)
          Paint all objects of the given MCard component.
 Modifier removeObject(java.lang.String objectName, Test objectTest)
          remove from the manager a occurence of object with the specified name
 

Method Detail

removeObject

Modifier removeObject(java.lang.String objectName,
                      Test objectTest)
remove from the manager a occurence of object with the specified name

Parameters:
objectName - the object's name to remove
objectTest - The test applied on specific modifier to be removed.
Returns:
the new chain

paintObject

int paintObject(java.awt.Graphics g,
                int startX,
                int startY)
Paint all objects of the given MCard component.

Parameters:
g - the graphics used ot paint this object.
startX - the x position where this object can be paint.
startY - the y position where this object can be paint.
Returns:
the next free object position.

getNbObjects

int getNbObjects(java.lang.String objectName,
                 Test objectTest)
Return occurences number of the given object with the given name.

Parameters:
objectName - the object's name to find within this chain.
objectTest - The test applied on specific modifier to be removed.
Returns:
occurences number of the given object with the given name.


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