AIengine Class Reference

#include <ai_engine.h>

Collaboration diagram for AIengine:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void Refresh ()

Static Public Member Functions

static AIengineGetInstance ()

Private Member Functions

 AIengine ()

Static Private Attributes

static AIenginesingleton = NULL

Detailed Description

Definition at line 24 of file ai_engine.h.


Constructor & Destructor Documentation

AIengine::AIengine (  )  [private]

Definition at line 31 of file ai_engine.cpp.

00032 {
00033   std::cout << "o Artificial Intelligence engine initialization" << std::endl;
00034 }

Here is the caller graph for this function:


Member Function Documentation

AIengine * AIengine::GetInstance (  )  [static]

Definition at line 36 of file ai_engine.cpp.

00037 {
00038   if (singleton == NULL)
00039     singleton = new AIengine();
00040 
00041   return singleton;
00042 }

Here is the call graph for this function:

Here is the caller graph for this function:

void AIengine::Refresh (  ) 

Definition at line 44 of file ai_engine.cpp.

00045 {
00046   if (ActiveCharacter().GetTeam().GetPlayerName() == "AI-stupid" 
00047       && ActiveCharacter().GetTeam().IsLocalAI()) {
00048     AIStupidEngine::GetInstance()->Refresh();
00049   }
00050   
00051 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

AIengine * AIengine::singleton = NULL [static, private]

Definition at line 27 of file ai_engine.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 1 13:32:22 2007 for Wormux by  doxygen 1.4.7