org.vizzini.game.event
Class ConcedeManager

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

public class ConcedeManager
extends AbstractManager

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

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

Constructor Summary
ConcedeManager()
           
 
Method Summary
 void addConcedeListener(IConcedeListener listener)
          Add the given listener.
protected  void fireChange(IListener listener0, IEvent event0)
          Fire the given event to the given listener.
 void fireConcedeChange(ConcedeEvent event)
          Fire the given state event to all registered listeners.
 void fireConcedeChange(IAgent agent)
          Fire a game event.
 void removeConcedeListener(IConcedeListener 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

ConcedeManager

public ConcedeManager()
Method Detail

addConcedeListener

public void addConcedeListener(IConcedeListener listener)
Add the given listener.

Since:
v0.1

fireConcedeChange

public void fireConcedeChange(IAgent agent)
Fire a game event.

Since:
v0.1

fireConcedeChange

public void fireConcedeChange(ConcedeEvent event)
Fire the given state event to all registered listeners.

Since:
v0.1

removeConcedeListener

public void removeConcedeListener(IConcedeListener 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