Planeshift
psTriggerHandler Class Reference

Handles functions for each trigger. More...

#include <pscharcontrol.h>

Public Member Functions

void HandleAutoMove (const psControl *trigger, bool value)
 
void HandleBrightnessDown (const psControl *trigger, bool value)
 
void HandleBrightnessReset (const psControl *trigger, bool value)
 
void HandleBrightnessUp (const psControl *trigger, bool value)
 
void HandleCameraMode (const psControl *trigger, bool value)
 
void HandleCenterCamera (const psControl *trigger, bool value)
 
void HandleLook (const psControl *trigger, bool value)
 
void HandleMode (const psControl *trigger, bool value)
 
void HandleModeRun (const psControl *trigger, bool value)
 
void HandleModeSneak (const psControl *trigger, bool value)
 
void HandleMouseLook (const psControl *trigger, bool value)
 
void HandleMouseLookToggle (const psControl *trigger, bool value)
 
void HandleMouseMove (const psControl *trigger, bool value)
 
void HandleMouseZoom (const psControl *trigger, bool value)
 
void HandleMovement (const psControl *trigger, bool value)
 
void HandleMovementAction (const psControl *trigger, bool value)
 
void HandleMovementJump (const psControl *trigger, bool value)
 
void HandleShortcut (const psControl *trigger, bool value)
 
void HandleWindow (const psControl *trigger, bool value)
 
void HandleZoom (const psControl *trigger, bool value)
 
 psTriggerHandler (psCharController *controler)
 
 ~psTriggerHandler ()
 

Protected Attributes

psCharControllercharcontrol
 
psMovementManagermovement
 

Detailed Description

Handles functions for each trigger.

Each psControl object points to one of these functions. (thus, the arguments must be the same) When psControlManager registers an input event that is mapped to an active trigger, its TriggerFunction is executed. The function then takes the passed psControl* and state and does whatever is needed to start the feature.

Definition at line 190 of file pscharcontrol.h.

Constructor & Destructor Documentation

psTriggerHandler::psTriggerHandler ( psCharController controler)
psTriggerHandler::~psTriggerHandler ( )

Member Function Documentation

void psTriggerHandler::HandleAutoMove ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleBrightnessDown ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleBrightnessReset ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleBrightnessUp ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleCameraMode ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleCenterCamera ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleLook ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleMode ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleModeRun ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleModeSneak ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleMouseLook ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleMouseLookToggle ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleMouseMove ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleMouseZoom ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleMovement ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleMovementAction ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleMovementJump ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleShortcut ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleWindow ( const psControl trigger,
bool  value 
)
void psTriggerHandler::HandleZoom ( const psControl trigger,
bool  value 
)

Member Data Documentation

psCharController* psTriggerHandler::charcontrol
protected

Definition at line 219 of file pscharcontrol.h.

psMovementManager* psTriggerHandler::movement
protected

Definition at line 220 of file pscharcontrol.h.


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