Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
HUD Class Reference
Collaboration diagram for HUD:
[legend]

Public Member Functions

 HUD (Player *player)
 
Playerplayer ()
 
const Spheresphere () const
 
CrossHaircrossHair ()
 
AimHelperHudgetaimHelper ()
 
glm::vec3 centerOfView () const
 
glm::vec3 position () const
 
glm::quat orientation () const
 
void addHudget (Hudget *hudget)
 
void removeHudget (Hudget *hudget)
 
void addObjectDelegate (HUDObjectDelegate *objectDelegate)
 
void removeObjectDelegate (HUDObjectDelegate *objectDelegate)
 
HUDObjectDelegateobjectDelegate (WorldObject *worldObject)
 
void setCrossHairOffset (const glm::vec2 &mousePosition)
 
void setTarget (WorldObject *target)
 
WorldObjecttarget ()
 
void onClick (ClickType clickType)
 
void update (float deltaSec)
 
void draw ()
 
glm::vec3 applyTo (const glm::vec3 &vertex) const
 
float fovy () const
 
float fovx () const
 
void showMissionInfo (const std::string &title, const std::string &caption)
 
void showMissionMessage (const std::string &message)
 
void showMessage (const std::string &message)
 

Protected Member Functions

void updateScanner (float deltaSec)
 
void updateFov ()
 

Protected Attributes

Playerm_player
 
Viewerm_viewer
 
Sphere m_sphere
 
Handle< WorldObjectm_target
 
Property< bool > m_drawHud
 
float m_fovy
 
float m_fovx
 
CrossHairm_crossHair
 
AimHelperHudgetm_aimHelper
 
std::unique_ptr< WorldTreeScannerm_scanner
 
std::unique_ptr< HUDElementsm_elements
 
std::map< WorldObject
*, HUDObjectDelegate * > 
m_objectDelegates
 

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