

Listener must register oneself to MessagerAgent to be able to receive messages.
Definition at line 19 of file BaseListener.h.
Public Member Functions | ||||
| virtual | ~BaseListener () | |||
| virtual void | receiveSimple (const SimpleMsg *msg) | |||
| ||||
| virtual void | receiveInt (const IntMsg *msg) | |||
| ||||
| virtual void | receiveString (const StringMsg *msg) | |||
| ||||
Protected Member Functions | ||||
| void | registerWatcher (const std::string ¶m) | |||
| Register self as watcher for param. | ||||
| void | removeWatchers () | |||
|
|
Definition at line 24 of file BaseListener.h. 00024 {}
|
|
|
Definition at line 48 of file BaseListener.cpp. 00049 {
00050 throw UnknownMsgException(msg);
00051 }
|
|
|
Reimplemented in Application, VideoAgent, and GameState. Definition at line 39 of file BaseListener.cpp. 00040 {
00041 throw UnknownMsgException(msg);
00042 }
|
|
|
Reimplemented in Application, OptionAgent, ScriptAgent, SoundAgent, VideoAgent, Pedometer, and MenuOptions. Definition at line 57 of file BaseListener.cpp. 00058 {
00059 throw UnknownMsgException(msg);
00060 }
|
|
|
Register self as watcher for param. String msg param_changed(param) will be send when param has changed. Definition at line 23 of file BaseListener.cpp. 00024 {
00025 StringMsg *event = new StringMsg(this, "param_changed", param);
00026 OptionAgent::agent()->addWatcher(param, event);
00027 }
|
|
|
Definition at line 30 of file BaseListener.cpp. 00031 {
00032 OptionAgent::agent()->removeWatchers(getName());
00033 }
|
1.4.2