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>
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.
◆ ~ICommandController()
virtual FIFE::ICommandController::~ICommandController |
( |
| ) |
|
|
inlinevirtual |
◆ 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
-
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
-
Implemented in FIFE::EventManager.
◆ dispatchCommand()
virtual void FIFE::ICommandController::dispatchCommand |
( |
Command & |
command | ) |
|
|
pure virtual |
Use this method to send command to command listeners.
- Parameters
-
command | command 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
-
listener | listener to remove |
Implemented in FIFE::EventManager.
The documentation for this class was generated from the following file: