FYP  1.0.0
Final Year Project -- Alexander Meuer
ProfileSelect Class Reference

Scene for selecting which player profile to use. More...

#include <ProfileSelectScene.hpp>

Inheritance diagram for ProfileSelect:
Inheritance graph
Collaboration diagram for ProfileSelect:
Collaboration graph

Public Member Functions

 ProfileSelect (tinyxml2::XMLElement *xml)
 Constructs a ProfileSelect scene from xml.
 
bool handleEvent (sf::Event &Event) override
 
void update (sf::Time const &elapsedTime) override
 
void draw (sf::RenderWindow &w) override
 
void cleanup () override
 

Private Attributes

sf::Sprite mBackground
 
gui::Button mProfileOneBtn
 
gui::Button mProfileTwoBtn
 
gui::Button mProfileThreeBtn
 

Detailed Description

Scene for selecting which player profile to use.

Member Function Documentation

void ProfileSelect::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 ProfileSelect::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 ProfileSelect::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: