#include <behavior.hpp>
Diagram dziedziczenia dla Behavior

Metody publiczne | |
| virtual AnimalParam | action (Animal_ &anim, list< Animal_ > &family, list< Animal_ > &opponent, Obstacles &obs) |
| Behavior () | |
| void | setConfig (SceneConfig &cfg) |
Atrybuty chronione | |
| SceneConfig | _cfg |
| string | _description |
| string | _name |
| Behavior::Behavior | ( | ) |
Konstruktor, nic nie wykonuje
| AnimalParam Behavior::action | ( | Animal_ & | anim, | |
| list< Animal_ > & | family, | |||
| list< Animal_ > & | opponent, | |||
| Obstacles & | obs | |||
| ) | [virtual] |
Wykonuje akcje w zaleznosci od przyjetych strategii.
| zwierzak,ktorego | dotyczy zachowanie | |
| lista | przyjaciol (zwykle osobnikow tego samego gatunku) | |
| lista | wrogow (zwykle osobnikow przecinego gatunku) | |
| lista | przeszkod | |
| konfiguracja | sceny |
Reimplementowana w B_AvoidObstacles, B_BasicFlee, B_Cohesion, B_Encirclement, B_EncirclementLux, B_FlightMulti, B_Separation, B_Tommy, B_TommyLux i B_Wander.
| void Behavior::setConfig | ( | SceneConfig & | cfg | ) |
Pobiera konfiguracje, parametry symulacji
SceneConfig Behavior::_cfg [protected] |
string Behavior::_description [protected] |
string Behavior::_name [protected] |
1.5.2