Definition at line 15 of file BaseAgent.h.
Public Member Functions | ||||
BaseAgent () | ||||
virtual | ~BaseAgent () | |||
bool | isInitialized () | |||
void | init () | |||
void | update () | |||
| ||||
void | shutdown () | |||
Protected Member Functions | ||||
virtual void | own_init () | |||
virtual void | own_update () | |||
virtual void | own_shutdown () |
|
Definition at line 15 of file BaseAgent.cpp. 00016 {
00017 m_initialized = false;
00018 }
|
|
Definition at line 24 of file BaseAgent.h. 00024 {}
|
|
Definition at line 21 of file BaseAgent.cpp. 00022 { 00023 LOG_DEBUG(ExInfo("init").addInfo("name", getName())); 00024 //NOTE: agent can call oneself in init() 00025 m_initialized = true; 00026 own_init(); 00027 }
|
|
Definition at line 25 of file BaseAgent.h. 00025 { return m_initialized; }
|
|
Reimplemented in GameAgent, InputAgent, OptionAgent, ScriptAgent, SDLSoundAgent, SoundAgent, TimerAgent, VideoAgent, and SubTitleAgent. Definition at line 19 of file BaseAgent.h. 00019 {}
|
|
Reimplemented in GameAgent, InputAgent, OptionAgent, ScriptAgent, SDLSoundAgent, VideoAgent, and SubTitleAgent. Definition at line 21 of file BaseAgent.h. 00021 {}
|
|
Reimplemented in GameAgent, InputAgent, TimerAgent, VideoAgent, and SubTitleAgent. Definition at line 20 of file BaseAgent.h. 00020 {}
|
|
Definition at line 44 of file BaseAgent.cpp. 00045 { 00046 LOG_DEBUG(ExInfo("shutdown").addInfo("name", getName())); 00047 own_shutdown(); 00048 m_initialized = false; 00049 }
|
|
Definition at line 33 of file BaseAgent.cpp. 00034 { 00035 if (!m_initialized) { 00036 throw LogicException(ExInfo("agent is not ready") 00037 .addInfo("name", getName())); 00038 } 00039 00040 own_update(); 00041 }
|