#include <ControllerPath.h>


Public Member Functions | |
| CControllerPath (const std::string &name, CCurvePath *path_graph, vec *par_position, vec *par_direction=NULL) | |
| CControllerPath (const std::string &name) | |
| virtual | ~CControllerPath () |
| void | Assign (CCurvePath *graph) |
| void | Connect (vec *par_position, vec *par_direction=NULL) |
| virtual void | Update (float dt) |
| float & | GetSpeed () |
| CNTRL_CLASS_NAME (CControllerLinearPath) | |
Slouzi k pohybu objektu po definovanych cestach.
Parameter = pozice objektu, smer objektu (nepovinne)
Animation data = potomci CCurvePath
| CControllerPath::CControllerPath | ( | const std::string & | name, |
| CCurvePath * | path_graph, | ||
| vec * | par_position, | ||
| vec * | par_direction = NULL |
||
| ) |
Konstruktor
| name | nazev controlleru |
| path_graph | animation data controlleru |
| par_position | parametr pozice |
| par_direction | parametr smeru (nepovinne) |
| CControllerPath::CControllerPath | ( | const std::string & | name | ) |
Konstruktor
| name | nazev controlleru |
| CControllerPath::~CControllerPath | ( | ) | [virtual] |
Destruktor
| void CControllerPath::Assign | ( | CCurvePath * | graph | ) |
Pripojeni animacnich dat
| graph | path na, ktery se ma pouzit jako animacni data |
| void CControllerPath::Connect | ( | vec * | par_position, |
| vec * | par_direction = NULL |
||
| ) |
Napojeni na parametr
| par_position | parametr pozice |
| par_direction | parametr smeru |
| float & CControllerPath::GetSpeed | ( | ) |
Ziskani ukazatele na rychlost (moznost napojit na jiny controller)
| void CControllerPath::Update | ( | float | dt | ) | [virtual] |
Aktualizace controlleru, k m_curr_s se pricte m_speed*dt coz zajisti pokroceni po ceste dale.
Zavola se metoda pripojene cesty GetValue s parametrem m_curr_s. Pokud je konec cesty provede
se akce na zaklade nastaveneho ORT.
| dt |
Implements CController.
1.8.0