FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::ICommandController Class Referenceabstract

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. More...

#include <icommandcontroller.h>

+ Inheritance diagram for FIFE::ICommandController:
+ Collaboration diagram for FIFE::ICommandController:

Public Member Functions

virtual void addCommandListener (ICommandListener *listener)=0
 Adds a listener to the back of the listener deque Listener will be notified via the corresponding events. More...
 
virtual void addCommandListenerFront (ICommandListener *listener)=0
 Adds a listener to the front of the listener deque Listener will be notified via the corresponding events. More...
 
virtual void removeCommandListener (ICommandListener *listener)=0
 Removes an added listener from the controller. More...
 
virtual void dispatchCommand (Command &command)=0
 Use this method to send command to command listeners. More...
 
virtual ~ICommandController ()
 

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 icommandcontroller.h.

Constructor & Destructor Documentation

◆ ~ICommandController()

virtual FIFE::ICommandController::~ICommandController ( )
inlinevirtual

Definition at line 71 of file icommandcontroller.h.

Member Function Documentation

◆ addCommandListener()

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.

◆ addCommandListenerFront()

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.

◆ dispatchCommand()

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.

◆ removeCommandListener()

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: