FYP  1.0.0
Final Year Project -- Alexander Meuer
Credits Class Reference
Inheritance diagram for Credits:
Inheritance graph
Collaboration diagram for Credits:
Collaboration graph

Public Member Functions

 Credits (tinyxml2::XMLElement *root)
 
bool handleEvent (sf::Event &evnt) override
 
void update (sf::Time const &elapsedTime) override
 
void draw (sf::RenderWindow &w) override
 
void cleanup () override
 

Private Attributes

gui::Button mBackButton
 
sf::Music mBgMusic
 
sf::RenderTexture mRenderTex
 
sf::Sprite mCredits
 
sf::Sprite mBackdrop
 
sf::View mView
 
const float mBaseScrollSpeed
 
const float mSpeedMultiplier
 
bool mSpeedUp
 
bool mAutoscroll
 

Member Function Documentation

void Credits::draw ( sf::RenderWindow &  w)
overridevirtual

Should draw the scene to the renderwindow

Parameters
wThe RenderWindow that the scene should be drawn to.

Implements I_Scene.

bool Credits::handleEvent ( sf::Event &  Event)
overridevirtual
Parameters
EventThe event to be handled.
Returns
True if the event has been processed, false if the event is not processed or required.

Implements I_Scene.

void Credits::update ( sf::Time const &  elapsedTime)
overridevirtual
Parameters
elapsedTimeThe amount of time that has past since the last time update was called.

Implements I_Scene.


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