Flock Class Reference

#include <flock.h>

List of all members.

Public Types

typedef std::vector
< AICharacter * > 
AICharList
 This vector will hold all the ai characters which belong to this flock.

Public Member Functions

 ~Flock ()
void add_ai_char (AICharacter *ai_char)
 Function to add the ai characters to _ai_char_list.
unsigned int get_id ()
 Function to access the private member flock_id.

Public Attributes

double _flock_vcone_angle
 Variables which will hold the parameters of the ai character's visibilty cone.
double _flock_vcone_radius
unsigned int _separation_wt
 create variable flock behavior.
unsigned int _cohesion_wt
unsigned int _alignment_wt
AICharList _ai_char_list
PUBLISHED __pad0__: Flock(unsigned int flock_id
PUBLISHED double vcone_angle
PUBLISHED double double vcone_radius
PUBLISHED double double
unsigned int 
separation_wt = 2
PUBLISHED double double
unsigned int unsigned int 
cohesion_wt = 4
PUBLISHED double double
unsigned int unsigned int
unsigned int 
alignment_wt = 1)

Detailed Description

Class : Flock Description : This class is used to define the flock attributes and the AI characters which are part of the flock.

Definition at line 31 of file flock.h.


Member Typedef Documentation

typedef std::vector<AICharacter*> Flock::AICharList

This vector will hold all the ai characters which belong to this flock.

Definition at line 47 of file flock.h.


Constructor & Destructor Documentation

Flock::~Flock (  ) 

Definition at line 27 of file flock.cxx.


Member Function Documentation

void Flock::add_ai_char ( AICharacter ai_char  ) 

Function to add the ai characters to _ai_char_list.

Definition at line 30 of file flock.cxx.

unsigned int Flock::get_id (  ) 

Function to access the private member flock_id.

Definition at line 36 of file flock.cxx.


Member Data Documentation

PUBLISHED Flock::__pad0__

Definition at line 51 of file flock.h.

Definition at line 48 of file flock.h.

unsigned int Flock::_alignment_wt

Definition at line 44 of file flock.h.

unsigned int Flock::_cohesion_wt

Definition at line 43 of file flock.h.

Variables which will hold the parameters of the ai character's visibilty cone.

Definition at line 37 of file flock.h.

Definition at line 38 of file flock.h.

unsigned int Flock::_separation_wt

create variable flock behavior.

Variables to specify weights of separation, cohesion and alignment behaviors and thus

Definition at line 42 of file flock.h.

PUBLISHED double double unsigned int unsigned int unsigned int Flock::alignment_wt = 1)

Definition at line 52 of file flock.h.

PUBLISHED double double unsigned int unsigned int Flock::cohesion_wt = 4

Definition at line 52 of file flock.h.

PUBLISHED double double unsigned int Flock::separation_wt = 2

Definition at line 51 of file flock.h.

PUBLISHED double Flock::vcone_angle

Definition at line 51 of file flock.h.

PUBLISHED double double Flock::vcone_radius

Definition at line 51 of file flock.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:40 2009 for PandAI by  doxygen 1.6.1