EchoesOfFate
A game for our COMP315 Project
 
Loading...
Searching...
No Matches
IntroState.h
Go to the documentation of this file.
1#pragma once
2#include "State.h"
3#include <vector>
4
5class IntroState : public State
6{
7public:
9 IntroState(sf::RenderWindow& window);
11
12 void update(sf::RenderWindow& window, StateManager& stateManager) override;
13 void render(sf::RenderWindow& window) override;
14
15private:
16 SceneClass* intro;
17 std::vector<sf::Texture> textures;
18 std::vector<std::string> filepaths;
19 std::vector<sf::Sprite> sprites;
20};
21
22
~IntroState()
Definition IntroState.cpp:64
void update(sf::RenderWindow &window, StateManager &stateManager) override
Handles animations in current state, look at chapterOne state.
Definition IntroState.cpp:74
IntroState(sf::RenderWindow &window)
Constructors/Destructors.
Definition IntroState.cpp:17
void render(sf::RenderWindow &window) override
Renders current state.
Definition IntroState.cpp:137
Definition SceneClass.h:20
Definition State.h:16
All the possible states included here to make switching easier.
Definition StateManager.h:14