Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10040 in orxonox.OLD for branches/ai/src/ai


Ignore:
Timestamp:
Dec 11, 2006, 8:30:22 PM (17 years ago)
Author:
tfahrni
Message:
 
Location:
branches/ai/src/ai
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/ai/src/ai/ai_engine.cc

    r10029 r10040  
    1515   co-programmer:
    1616*/
    17 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_WORLD_ENTITY
     17#define DEBUG_SPECIAL_MODULE DEBUG_MODULE_AI
    1818
    1919#include "ai_engine.h"
     20#include "debug.h"
     21
     22AIEngine* AIEngine::singletonRef = NULL;
    2023
    2124
     
    2528AIEngine::~AIEngine()
    2629{}
     30
     31
     32void AIEngine::process()
     33{
     34  PRINTF(0)("Processing AI..\n");
     35}
  • branches/ai/src/ai/ai_engine.h

    r10029 r10040  
    99class AIEngine{
    1010 public:
    11    AIEngine();
    1211   ~AIEngine();
     12
     13   static AIEngine* getInstance() { if( singletonRef == NULL) singletonRef = new AIEngine(); return singletonRef; }
     14
     15   void process();
     16  private:
     17    AIEngine();
     18
    1319 private:
    1420   std::vector<AITeam*> teams;
     21
     22   static AIEngine* singletonRef;
     23
    1524};
    1625
Note: See TracChangeset for help on using the changeset viewer.