ControlHandler Class Reference

Abstract class for handling controls and getting control data. More...

#include <ControlMapper.h>

Inheritance diagram for ControlHandler:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 ControlHandler ()
virtual void onAddedToControler (Controler *pControler)
 Callback invoked when this event handler is associated with a Controler.
virtual void onRemovedFromControler (const Controler *pControler)
virtual void handleFrame (double elapsed)=0
 Handle on-frame (Coninuous) update for inputs.

Protected Attributes

ControlerpControler
 Pointer to the current controler, or NULL.


Detailed Description

Abstract class for handling controls and getting control data.

Definition at line 75 of file ControlMapper.h.


Constructor & Destructor Documentation

ControlHandler::ControlHandler (  )  [inline]

Definition at line 77 of file ControlMapper.h.


Member Function Documentation

virtual void ControlHandler::handleFrame ( double  elapsed  )  [pure virtual]

Handle on-frame (Coninuous) update for inputs.

For units, this method is the interface between controls (= mapped inputs) and the unit piloting/driving. Be careful to test the nullity of the pointer to the Controler (pControler).

Implemented in HumanMatrixGetter.

virtual void ControlHandler::onAddedToControler ( Controler pControler  )  [inline, virtual]

Callback invoked when this event handler is associated with a Controler.

Reimplemented from ControlEventHandler.

Definition at line 79 of file ControlMapper.h.

virtual void ControlHandler::onRemovedFromControler ( const Controler pControler  )  [inline, virtual]

Reimplemented from ControlEventHandler.

Definition at line 80 of file ControlMapper.h.


Member Data Documentation

Pointer to the current controler, or NULL.

Definition at line 88 of file ControlMapper.h.

Referenced by HumanMatrixGetter::handleFrame().


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

Generated on Sun Jan 17 11:39:27 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9