BrainTrain
 All Classes Namespaces Files Functions Variables Macros Pages
brtr::WeaponHUD Class Reference

WeaponHUD class, provides the functions to add a HUD camera to the scene. More...

#include <WeaponHUD.h>

Inheritance diagram for brtr::WeaponHUD:

Classes

class  WeaponSwitchHandler
 EventHandler for WeaponSwitching. More...
 

Public Member Functions

 WeaponHUD ()
 
 WeaponHUD (const WeaponHUD &, const CopyOp &copyop=CopyOp::SHALLOW_COPY)
 
ref_ptr< WeaponSwitchHandlergetWeaponHandler ()
 
void addPortalGun ()
 a portal gun is added to the weapon switch More...
 
 ~WeaponHUD ()
 

Private Member Functions

void createWeaponHUD ()
 creates a weapon hud with the default weapon crowbar More...
 

Private Attributes

ref_ptr< Switch > _switcher
 
ref_ptr< WeaponSwitchHandler_handler
 

Detailed Description

WeaponHUD class, provides the functions to add a HUD camera to the scene.

Use the mouse wheel to shift between weapons after picking up a second one

Author
Jonathan Spielvogel
Version
1.0
Date
2014
Precondition
create a root node and attach the scene to it, then add the HUD to root

Definition at line 23 of file WeaponHUD.h.

Constructor & Destructor Documentation

brtr::WeaponHUD::WeaponHUD ( )

Definition at line 18 of file WeaponHUD.cpp.

brtr::WeaponHUD::WeaponHUD ( const WeaponHUD copy,
const CopyOp &  copyop = CopyOp::SHALLOW_COPY 
)

Definition at line 11 of file WeaponHUD.cpp.

brtr::WeaponHUD::~WeaponHUD ( )

Definition at line 65 of file WeaponHUD.cpp.

Member Function Documentation

void brtr::WeaponHUD::addPortalGun ( )

a portal gun is added to the weapon switch

Definition at line 73 of file WeaponHUD.cpp.

void brtr::WeaponHUD::createWeaponHUD ( )
private

creates a weapon hud with the default weapon crowbar

Definition at line 22 of file WeaponHUD.cpp.

ref_ptr< WeaponHUD::WeaponSwitchHandler > brtr::WeaponHUD::getWeaponHandler ( )

Definition at line 69 of file WeaponHUD.cpp.

Member Data Documentation

ref_ptr<WeaponSwitchHandler> brtr::WeaponHUD::_handler
private

Definition at line 73 of file WeaponHUD.h.

ref_ptr<Switch> brtr::WeaponHUD::_switcher
private

Definition at line 72 of file WeaponHUD.h.


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