EventHandler for WeaponSwitching.
More...
|
| WeaponSwitchHandler (Switch *switchNode) |
| initializes a switch handler to switch through weapons More...
|
|
virtual bool | handle (const osgGA::GUIEventAdapter &ea, osgGA::GUIActionAdapter &aa) |
| When a mouse event is triggered, this function is called to switch between weapons. More...
|
|
EventHandler for WeaponSwitching.
can only be obtained trough WeaponHUD::getWeaponHandler()
- Author
- Jonathan Spielvogel
- Version
- 1.0
- Date
- 2014
- Copyright
- GNU Public License.
Definition at line 32 of file WeaponHUD.h.
brtr::WeaponHUD::WeaponSwitchHandler::WeaponSwitchHandler |
( |
Switch * |
switchNode | ) |
|
brtr::WeaponHUD::WeaponSwitchHandler::~WeaponSwitchHandler |
( |
| ) |
|
|
inlineprotected |
bool brtr::WeaponHUD::WeaponSwitchHandler::handle |
( |
const osgGA::GUIEventAdapter & |
ea, |
|
|
osgGA::GUIActionAdapter & |
aa |
|
) |
| |
|
virtual |
When a mouse event is triggered, this function is called to switch between weapons.
- Parameters
-
ea | GuiEventAdapter |
aa | GuiActionAdapter |
- Returns
- true, if the event was handled, otherwise false
Definition at line 106 of file WeaponHUD.cpp.
int brtr::WeaponHUD::WeaponSwitchHandler::_curWeapon |
|
private |
unsigned int brtr::WeaponHUD::WeaponSwitchHandler::_frameNumber |
|
private |
ref_ptr<Switch> brtr::WeaponHUD::WeaponSwitchHandler::_switch |
|
private |
The documentation for this class was generated from the following files: