AIWorld Class Reference

#include <aiWorld.h>

Collaboration diagram for AIWorld:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector< Flock * > FlockPool

Public Member Functions

void remove_ai_char_from_flock (string name)
 ~AIWorld ()
void add_ai_char (AICharacter *ai_ch)
void remove_ai_char (string name)
void add_flock (Flock *flock)
void flock_off (unsigned int flock_id)
void flock_on (unsigned int flock_id)
void remove_flock (unsigned int flock_id)
Flock get_flock (unsigned int flock_id)
void print_list ()
void update ()

Public Attributes

FlockPool _flock_pool
PUBLISHED __pad0__: AIWorld(NodePath render)

Detailed Description

Class : AIWorld Description : A class that implements the virtual AI world which keeps track of the AI characters active at any given time. It contains a linked list of AI characters, obstactle data and unique name for each character. It also updates each characters state. The AI characters can also be added to the world as flocks.

Definition at line 68 of file aiWorld.h.


Member Typedef Documentation

typedef std::vector<Flock*> AIWorld::FlockPool

Definition at line 73 of file aiWorld.h.


Constructor & Destructor Documentation

AIWorld::~AIWorld (  ) 

Definition at line 23 of file aiWorld.cxx.


Member Function Documentation

void AIWorld::add_ai_char ( AICharacter ai_ch  ) 

Definition at line 26 of file aiWorld.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void AIWorld::add_flock ( Flock flock  ) 

Function : add_flock Description : This function adds all the AI characters in the Flock object to the AICharPool. This function allows adding the AI characetrs as part of a flock.

Definition at line 84 of file aiWorld.cxx.

Here is the call graph for this function:

void AIWorld::flock_off ( unsigned int  flock_id  ) 

Function : flock_off Description : This function turns off the flock behavior temporarily. Similar to pausing the behavior.

Definition at line 130 of file aiWorld.cxx.

void AIWorld::flock_on ( unsigned int  flock_id  ) 

Function : flock_on Description : This function turns on the flock behavior.

Definition at line 149 of file aiWorld.cxx.

Flock AIWorld::get_flock ( unsigned int  flock_id  ) 

Definition at line 93 of file aiWorld.cxx.

void AIWorld::print_list (  ) 

Definition at line 54 of file aiWorld.cxx.

Here is the call graph for this function:

void AIWorld::remove_ai_char ( string  name  ) 

Definition at line 31 of file aiWorld.cxx.

Here is the call graph for this function:

void AIWorld::remove_ai_char_from_flock ( string  name  ) 

Definition at line 36 of file aiWorld.cxx.

Here is the caller graph for this function:

void AIWorld::remove_flock ( unsigned int  flock_id  ) 

Function : remove_flock Description : This function removes the flock behavior completely.

Definition at line 108 of file aiWorld.cxx.

void AIWorld::update (  ) 

Function : update Description : The AIWorld update function calls the update function of all the AI characters which have been added to the AIWorld.

Definition at line 65 of file aiWorld.cxx.

Here is the call graph for this function:


Member Data Documentation

PUBLISHED AIWorld::__pad0__

Definition at line 78 of file aiWorld.h.

Definition at line 74 of file aiWorld.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator

Generated on Tue Nov 3 22:34:36 2009 for PandAI by  doxygen 1.6.1