FIFE  2008.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
FIFE::ICommandController Class Reference

#include <ec_icommandcontroller.h>

Inheritance diagram for FIFE::ICommandController:
Inheritance graph
Collaboration diagram for FIFE::ICommandController:
Collaboration graph

List of all members.

Public Member Functions

virtual void addCommandListener (ICommandListener *listener)=0
virtual void addCommandListenerFront (ICommandListener *listener)=0
virtual void removeCommandListener (ICommandListener *listener)=0
virtual void dispatchCommand (Command &command)=0

Detailed Description

Controller provides a way to receive events from the system Using this interface, clients can subscribe themselves to receive events Also command sending is possible

Definition at line 45 of file ec_icommandcontroller.h.


Member Function Documentation

virtual void FIFE::ICommandController::addCommandListener ( ICommandListener listener)
pure virtual

Adds a listener to the back of the listener deque Listener will be notified via the corresponding events

Parameters:
listenerlistener to add

Implemented in FIFE::EventManager.

virtual void FIFE::ICommandController::addCommandListenerFront ( ICommandListener listener)
pure virtual

Adds a listener to the front of the listener deque Listener will be notified via the corresponding events

Parameters:
listenerlistener to add

Implemented in FIFE::EventManager.

virtual void FIFE::ICommandController::dispatchCommand ( Command command)
pure virtual

Use this method to send command to command listeners

Parameters:
commandcommand to dispatch

Implemented in FIFE::EventManager.

virtual void FIFE::ICommandController::removeCommandListener ( ICommandListener listener)
pure virtual

Removes an added listener from the controller. Listener will not be notified anymore via the corresponding events

Parameters:
listenerlistener to remove

Implemented in FIFE::EventManager.


The documentation for this class was generated from the following file: