Flock¶
-
class
Flock
¶ This class is used to define the flock attributes and the AI characters which are part of the flock.
Inheritance diagram
-
explicit
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)¶ Function to add the ai characters to _ai_char_list.
This function adds AI characters to the flock.
-
unsigned int
get_id
(void)¶ Function to access the private member flock_id.
-
explicit