Level H Engine
Help.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include "../../State.h"
5 #include "../../StateManager.h"
6 
10 class Help : public State
11 {
12 public:
18  Help(StateManager* stateManager, SDL_Window* window);
19 
23  ~Help();
24 
29  bool input();
30 
34  void update();
35 
39  void draw();
40 
41 private:
43  std::string backgroundMusicID;
45  std::string gameHelp;
46 };
Creates a State object to be inherited.
Definition: State.h:13
void draw()
A function to draw the State to the screen.
Definition: Help.cpp:60
Creates a StateManager object.
Definition: StateManager.h:9
StateManager * stateManager
A pointer to the state manager.
Definition: State.h:64
void update()
A function to update the State.
Definition: Help.cpp:54
SDL_Window * window
The window to display to.
Definition: State.h:66
A State that contains and runs the Demo.
Definition: Help.h:10
~Help()
Destructs the State object.
Definition: Help.cpp:16
Help(StateManager *stateManager, SDL_Window *window)
Constructs the State object.
Definition: Help.cpp:9
std::string backgroundMusicID
The background music id.
Definition: Help.h:43
std::string gameHelp
The game help info.
Definition: Help.h:45
bool input()
Handles the State input.
Definition: Help.cpp:20