Panda3D
Loading...
Searching...
No Matches
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.
 
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 Typedef Documentation

◆ AICharList

typedef std::vector<PT(AICharacter)> Flock::AICharList

Definition at line 43 of file flock.h.

Constructor & Destructor Documentation

◆ Flock()

Flock::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 )
explicit

Definition at line 16 of file flock.cxx.

◆ ~Flock()

Flock::~Flock ( )

Definition at line 26 of file flock.cxx.

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.

◆ get_id()

unsigned int Flock::get_id ( )

Definition at line 38 of file flock.cxx.

Member Data Documentation

◆ _ai_char_list

AICharList Flock::_ai_char_list

Definition at line 44 of file flock.h.

◆ _alignment_wt

unsigned int Flock::_alignment_wt

Definition at line 40 of file flock.h.

◆ _cohesion_wt

unsigned int Flock::_cohesion_wt

Definition at line 39 of file flock.h.

◆ _flock_vcone_angle

double Flock::_flock_vcone_angle

Definition at line 33 of file flock.h.

◆ _flock_vcone_radius

double Flock::_flock_vcone_radius

Definition at line 34 of file flock.h.

◆ _separation_wt

unsigned int Flock::_separation_wt

Definition at line 38 of file flock.h.


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