JK2eA
 All Classes Functions Variables
Public Member Functions | Public Attributes | Protected Attributes | Friends
CController Class Reference

#include <Controller.h>

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

List of all members.

Public Member Functions

 CController (const std::string &name)
virtual ~CController ()
virtual void Update (float dt)=0
virtual void SetTimeScale (const float fTimeScale)
virtual void SetORT (CONTRL_ORT ort)
virtual void Reset (const bool activate=false)
CONTRL_STATE GetState ()
void SetState (CONTRL_STATE state)
void SetPassive (bool state)

Public Attributes

CObservable m_observable
 observable objekt, ktery vola notify v destruktoru a dava tak najevo vsem ze pamet, kterou pouziva je neplatna

Protected Attributes

float m_fLocalTime
 soucasny lokalni cas controlleru
float m_fTimeScale
 nasobic dt casu v metode update (default = 1)
CONTRL_ORT m_eORT
 out of range types
CONTRL_STATE m_eState
 stav controlleru
std::string m_sName
 nazev
bool m_bPassive
 hint pro CControllerManager, zda se ma volat update v manageru

Friends

class CControllerManager

Detailed Description

Base class pro vsechny controllery.

Dalsi vlastnosti controlleru.
2 metody:

Connect -> Pripojeni parametru
Assign -> Pripojeni animation dat


Constructor & Destructor Documentation

CController::CController ( const std::string &  name)

Konstructor

Parameters:
namenazev controlleru

Destruktor


Member Function Documentation

CONTRL_STATE CController::GetState ( ) [inline]

Zjisteni aktualniho stavu controlleru

Returns:
aktualni stav
virtual void CController::Reset ( const bool  activate = false) [inline, virtual]

Nastaveni local time na 0.0.

Parameters:
activatepokud je true nastavi se stav na CLS_ACTIVE

Reimplemented in CControllerSkeletalAnimation.

virtual void CController::SetORT ( CONTRL_ORT  ort) [inline, virtual]

Nastaveni out of range typu

Parameters:
ortORT

Reimplemented in CControllerSkeletalAnimation.

void CController::SetPassive ( bool  state) [inline]

Nastaveni passive modu

Parameters:
stavezda ma byt passive
void CController::SetState ( CONTRL_STATE  state) [inline]

Nastaveni stavu controlleru

Parameters:
statestav, ktery ma by nastave
virtual void CController::SetTimeScale ( const float  fTimeScale) [inline, virtual]

Nastaveni nasobice casu

Parameters:
fTimeScalenova hodnota nasobice

Reimplemented in CControllerSkeletalAnimation.

virtual void CController::Update ( float  dt) [pure virtual]

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