Last change
on this file since 10041 was
10041,
checked in by tfahrni, 17 years ago
|
Tried to make some progress with the AI..
|
File size:
418 bytes
|
Rev | Line | |
---|
[10029] | 1 | |
---|
| 2 | #ifndef _AI_ENGINE_H |
---|
| 3 | #define _AI_ENGINE_H |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | #include "ai_team.h" |
---|
| 7 | |
---|
| 8 | |
---|
| 9 | class AIEngine{ |
---|
| 10 | public: |
---|
| 11 | ~AIEngine(); |
---|
[10040] | 12 | |
---|
| 13 | static AIEngine* getInstance() { if( singletonRef == NULL) singletonRef = new AIEngine(); return singletonRef; } |
---|
| 14 | |
---|
| 15 | void process(); |
---|
[10041] | 16 | AITeam* getTeam(int); |
---|
| 17 | int newTeam(); |
---|
| 18 | private: |
---|
| 19 | AIEngine(); |
---|
[10040] | 20 | |
---|
[10029] | 21 | private: |
---|
| 22 | std::vector<AITeam*> teams; |
---|
[10040] | 23 | |
---|
| 24 | static AIEngine* singletonRef; |
---|
| 25 | |
---|
[10029] | 26 | }; |
---|
| 27 | |
---|
| 28 | #endif /* _AI_ENGINE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.