FYP  1.0.0
Final Year Project -- Alexander Meuer
I_Scene Class Referenceabstract

Interface for scene objects, such as levels and menus. More...

#include <Scene.hpp>

Inheritance diagram for I_Scene:
Inheritance graph
Collaboration diagram for I_Scene:
Collaboration graph

Public Member Functions

virtual bool handleEvent (sf::Event &Event)=0
 
virtual void update (sf::Time const &elapsedTime)=0
 
virtual void draw (sf::RenderWindow &w)=0
 
virtual void cleanup ()=0
 

Detailed Description

Interface for scene objects, such as levels and menus.

Member Function Documentation

virtual void I_Scene::draw ( sf::RenderWindow &  w)
pure virtual

Should draw the scene to the renderwindow

Parameters
wThe RenderWindow that the scene should be drawn to.

Implemented in Level, MainMenu, ProfileSelect, LevelSelect, SettingsMenu, and Credits.

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

Implemented in Level, MainMenu, ProfileSelect, LevelSelect, SettingsMenu, and Credits.

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

Implemented in Level, MainMenu, ProfileSelect, LevelSelect, SettingsMenu, and Credits.


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