net.sf.magicproject.modifier
Class PlayableZoneModifier

java.lang.Object
  extended by net.sf.magicproject.modifier.Modifier
      extended by net.sf.magicproject.modifier.PlayableZoneModifier
All Implemented Interfaces:
ObjectModifier, Unregisterable

public class PlayableZoneModifier
extends Modifier

Since:
0.80
Author:
Fabrice Daugan

Field Summary
 
Fields inherited from class net.sf.magicproject.modifier.Modifier
layer, next
 
Method Summary
 boolean playableIn(int idZone, boolean found)
          Indicates if this modifier allow the specified zone
 void refresh()
          Refresh this modifier following the whileCondition.
 void removeFromManager()
          Remove from the event manager this listener.
 Modifier removeModifier(Modifier modifier)
          remove from the manager a modifier
 
Methods inherited from class net.sf.magicproject.modifier.Modifier
addModifier, getCard, getNbObjects, paintObject, removeObject, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

playableIn

public boolean playableIn(int idZone,
                          boolean found)
Indicates if this modifier allow the specified zone

Parameters:
idZone - The previous idCard.
found - indicates that this zone has been previously allowed
Returns:
the modified idCard.

removeModifier

public Modifier removeModifier(Modifier modifier)
Description copied from class: Modifier
remove from the manager a modifier

Parameters:
modifier - the modifier to remove
Returns:
the new chain

removeFromManager

public final void removeFromManager()
Description copied from interface: Unregisterable
Remove from the event manager this listener.

Specified by:
removeFromManager in interface Unregisterable
Overrides:
removeFromManager in class Modifier

refresh

public void refresh()
Description copied from class: Modifier
Refresh this modifier following the whileCondition.

Specified by:
refresh in class Modifier


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