EchoesOfFate
A game for our COMP315 Project
Loading...
Searching...
No Matches
State.h
Go to the documentation of this file.
1
#pragma once
2
#include <SFML/Graphics.hpp>
3
#include <SFML/Window.hpp>
4
#include <SFML/System.hpp>
5
#include <SFML/Audio.hpp>
6
#include "
SceneClass.h
"
7
11
13
class
StateManager
;
14
15
class
State
16
{
17
public
:
18
virtual
~State
() {}
19
21
virtual
void
update
(sf::RenderWindow& window,
StateManager
& stateManager) = 0;
22
virtual
void
render
(sf::RenderWindow& window) = 0;
23
};
SceneClass.h
State
Definition
State.h:16
State::render
virtual void render(sf::RenderWindow &window)=0
State::update
virtual void update(sf::RenderWindow &window, StateManager &stateManager)=0
Virtual destructor, maybe used in child objects.
State::~State
virtual ~State()
Definition
State.h:18
StateManager
All the possible states included here to make switching easier.
Definition
StateManager.h:14
EchosOfTime
State.h
Generated by
1.13.2