Panda3D
Public Types | Public Member Functions | Public Attributes

Flock Class Reference

This class is used to define the flock attributes and the AI characters which are part of the flock. More...

#include "flock.h"

List of all members.

Public Types

typedef std::vector
< AICharacter * > 
AICharList

Public Member Functions

 Flock (unsigned int flock_id, double vcone_angle, double vcone_radius, unsigned int separation_wt=2, unsigned int cohesion_wt=4, unsigned int alignment_wt=1)
void add_ai_char (AICharacter *ai_char)
 This function adds AI characters to the flock.
unsigned int get_id ()

Public Attributes

AICharList _ai_char_list
unsigned int _alignment_wt
unsigned int _cohesion_wt
double _flock_vcone_angle
double _flock_vcone_radius
unsigned int _separation_wt

Detailed Description

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

Definition at line 32 of file flock.h.


Member Function Documentation

void Flock::add_ai_char ( AICharacter ai_char)

This function adds AI characters to the flock.

Definition at line 38 of file flock.cxx.


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