org.vizzini.game.event
Class ScoreManager

java.lang.Object
  extended by org.vizzini.util.event.AbstractManager
      extended by org.vizzini.game.event.ScoreManager

public class ScoreManager
extends AbstractManager

Provides a manager of score listeners and convenience methods for creating score events.

Since:
v0.1
Version:
v0.2
Author:
Jeffrey M. Thompson

Constructor Summary
ScoreManager()
           
 
Method Summary
 void addScoreListener(IScoreListener listener)
          Add the given listener.
protected  void fireChange(IListener listener0, IEvent event0)
          Fire the given event to the given listener.
 void fireScoreChange(IAgent source)
          Fire a score event.
 void fireScoreChange(ScoreEvent event)
          Fire the given score event to all registered listeners.
 void removeScoreListener(IScoreListener listener)
          Remove the given listener.
 
Methods inherited from class org.vizzini.util.event.AbstractManager
addListener, fireChange, isFiringChanges, removeListener, setFiringChanges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoreManager

public ScoreManager()
Method Detail

addScoreListener

public void addScoreListener(IScoreListener listener)
Add the given listener.

Since:
v0.1

fireScoreChange

public void fireScoreChange(IAgent source)
Fire a score event.

Since:
v0.1

fireScoreChange

public void fireScoreChange(ScoreEvent event)
Fire the given score event to all registered listeners.

Since:
v0.1

removeScoreListener

public void removeScoreListener(IScoreListener listener)
Remove the given listener.

Since:
v0.1

fireChange

protected void fireChange(IListener listener0,
                          IEvent event0)
Fire the given event to the given listener.

Specified by:
fireChange in class AbstractManager
Since:
v0.2


Copyright 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02