FYP  1.0.0
Final Year Project -- Alexander Meuer
gui::NumberTracker Class Reference

Outputs a number from a shared pointer as text. More...

#include <HUD.hpp>

Inheritance diagram for gui::NumberTracker:
Inheritance graph
Collaboration diagram for gui::NumberTracker:
Collaboration graph

Public Member Functions

 NumberTracker (std::shared_ptr< int > const &numberToTrack, sf::Vector2f const &position, sf::Font const &font, unsigned int characterSize=30u, sf::Vector2f const &scale={1.f, 1.f})
 
void update (float deltaSeconds) override
 
- Public Member Functions inherited from gui::HudItem
bool isFlaggedForRemoval () const
 

Protected Member Functions

void draw (sf::RenderTarget &target, sf::RenderStates states) const override
 
- Protected Member Functions inherited from gui::HudItem
void flagForRemoval ()
 

Private Attributes

std::shared_ptr< int > const & mNumber
 
sf::Text mText
 

Detailed Description

Outputs a number from a shared pointer as text.


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