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
13class StateManager;
14
15class State
16{
17public:
18 virtual ~State() {}
19
21 virtual void update(sf::RenderWindow& window, StateManager& stateManager) = 0;
22 virtual void render(sf::RenderWindow& window) = 0;
23};
Definition State.h:16
virtual void render(sf::RenderWindow &window)=0
virtual void update(sf::RenderWindow &window, StateManager &stateManager)=0
Virtual destructor, maybe used in child objects.
virtual ~State()
Definition State.h:18
All the possible states included here to make switching easier.
Definition StateManager.h:14