| 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: |
|---|
| [10135] | 11 | ~AIEngine(){} |
|---|
| [10040] | 12 | |
|---|
| 13 | static AIEngine* getInstance() { if( singletonRef == NULL) singletonRef = new AIEngine(); return singletonRef; } |
|---|
| 14 | |
|---|
| [10135] | 15 | void tick(float dt); |
|---|
| [10349] | 16 | void addAI(int teamNumber, int swarmNumber, WorldEntity* npc, float maxSpeed, float attackDistance); |
|---|
| [10226] | 17 | void removeAI(int teamNumber, int swarmNumber, WorldEntity* npc); |
|---|
| 18 | |
|---|
| [10029] | 19 | private: |
|---|
| [10137] | 20 | AIEngine(){} |
|---|
| [10135] | 21 | static AIEngine* singletonRef; |
|---|
| [10137] | 22 | std::map<int,AITeam*> teams; |
|---|
| [10029] | 23 | }; |
|---|
| 24 | |
|---|
| 25 | #endif /* _AI_ENGINE_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.