#include <ControlMapper.h>
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 | |
Controler * | pControler |
Pointer to the current controler, or NULL. |
Definition at line 75 of file ControlMapper.h.
ControlHandler::ControlHandler | ( | ) | [inline] |
Definition at line 77 of file ControlMapper.h.
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] |
Controler* ControlHandler::pControler [protected] |
Pointer to the current controler, or NULL.
Definition at line 88 of file ControlMapper.h.
Referenced by HumanMatrixGetter::handleFrame().