org.vizzini.game.event
Class ActionReceivedManager

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

public class ActionReceivedManager
extends AbstractManager

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

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

Constructor Summary
ActionReceivedManager()
           
 
Method Summary
 void addActionReceivedListener(IActionReceivedListener listener)
          Add the given listener.
 void fireActionReceivedChange(ActionReceivedEvent event)
          Fire the given action received event to all registered listeners.
 void fireActionReceivedChange(IAction action)
          Fire an action received event with the given parameter.
protected  void fireChange(IListener listener0, IEvent event0)
          Fire the given event to the given listener.
 void removeActionReceivedListener(IActionReceivedListener 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

ActionReceivedManager

public ActionReceivedManager()
Method Detail

addActionReceivedListener

public void addActionReceivedListener(IActionReceivedListener listener)
Add the given listener.

Since:
v0.1

fireActionReceivedChange

public void fireActionReceivedChange(IAction action)
Fire an action received event with the given parameter.

Parameters:
action - Action which caused this state change.
Since:
v0.1

fireActionReceivedChange

public void fireActionReceivedChange(ActionReceivedEvent event)
Fire the given action received event to all registered listeners.

Since:
v0.1

removeActionReceivedListener

public void removeActionReceivedListener(IActionReceivedListener 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