| 1 |
#ifndef HEADER_APPLICATION_H |
| 2 |
#define HEADER_APPLICATION_H |
| 3 |
|
| 4 |
class AgentPack; |
| 5 |
|
| 6 |
#include "NoCopy.h" |
| 7 |
#include "BaseListener.h" |
| 8 |
#include "Name.h" |
| 9 |
|
| 10 |
/** |
| 11 |
* Main application |
| 12 |
*/ |
| 13 |
class Application : public NoCopy, public BaseListener { |
| 14 |
private: |
| 15 |
AgentPack *m_agents; |
| 16 |
bool m_quit; |
| 17 |
|
| 18 |
private: |
| 19 |
void prepareLogLevel(); |
| 20 |
void prepareOptions(int argc, char *argv[]); |
| 21 |
void customizeGame(); |
| 22 |
void addSoundAgent(); |
| 23 |
public: |
| 24 |
Application(); |
| 25 |
virtual ~Application(); |
| 26 |
virtual const char *getName() const { return Name::APP_NAME; } |
| 27 |
|
| 28 |
void init(int argc, char *argv[]); |
| 29 |
void run(); |
| 30 |
void shutdown(); |
| 31 |
|
| 32 |
virtual void receiveSimple(const SimpleMsg *msg); |
| 33 |
virtual void receiveString(const StringMsg *msg); |
| 34 |
}; |
| 35 |
|
| 36 |
#endif |