Panda3D
Public Types | Public Member Functions | Public Attributes | List of all members
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"

Public Types

typedef std::vector< PT(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. More...
 
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 26 of file flock.h.

Member Function Documentation

◆ add_ai_char()

void Flock::add_ai_char ( AICharacter ai_char)

This function adds AI characters to the flock.

Definition at line 32 of file flock.cxx.


The documentation for this class was generated from the following files: