JK2eA
 All Classes Functions Variables
Public Member Functions
CControllerPath Class Reference

#include <ControllerPath.h>

Inheritance diagram for CControllerPath:
Inheritance graph
[legend]
Collaboration diagram for CControllerPath:
Collaboration graph
[legend]

List of all members.

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)

Detailed Description

Slouzi k pohybu objektu po definovanych cestach.

Parameter = pozice objektu, smer objektu (nepovinne)
Animation data = potomci CCurvePath


Constructor & Destructor Documentation

CControllerPath::CControllerPath ( const std::string &  name,
CCurvePath path_graph,
vec *  par_position,
vec *  par_direction = NULL 
)

Konstruktor

Parameters:
namenazev controlleru
path_graphanimation data controlleru
par_positionparametr pozice
par_directionparametr smeru (nepovinne)
CControllerPath::CControllerPath ( const std::string &  name)

Konstruktor

Parameters:
namenazev controlleru

Destruktor


Member Function Documentation

Pripojeni animacnich dat

Parameters:
graphpath na, ktery se ma pouzit jako animacni data
void CControllerPath::Connect ( vec *  par_position,
vec *  par_direction = NULL 
)

Napojeni na parametr

Parameters:
par_positionparametr pozice
par_directionparametr smeru

Ziskani ukazatele na rychlost (moznost napojit na jiny controller)

Returns:
ukazatel na m_speed
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.

Parameters:
dt

Implements CController.


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