Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
SM_Help.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SDL.h>
4 #include <iostream>
5 #include "../S_State.h"
6 #include "../S_StateManager.h"
7 #include "../../Core/C_Texture.h"
8 #include "../../Core/C_Audio.h"
9 #include "../../Core/C_Music.h"
10 #include "../../Core/C_Text.h"
11 #include "../../UI/UI_Button.h"
12 #include "SM_MainMenu.h"
13 
18 class SM_Help : public S_State
19 {
20 public:
29 
33  ~SM_Help();
34 
39  bool input();
40 
45  void update(float dt);
46 
50  void draw();
51 
52 private:
69  //The Y position of the Button
70  float buttonYPos;
71 };
void update(float dt)
A function to update the State.
Definition: SM_Help.cpp:101
Creates a Button object that inherits Entity.
Definition: UI_Button.h:11
float buttonYPos
Definition: SM_Help.h:70
~SM_Help()
Destructs the State object.
Definition: SM_Help.cpp:45
C_Vec2 coinDim
The dimensions of the coin image.
Definition: SM_Help.h:68
C_Vec2 dimensions
The screen dimensions.
Definition: S_State.h:53
C_Texture * coin
The Coin Image.
Definition: SM_Help.h:66
Contains State functions and data to be inherited by all other states.
Definition: S_State.h:14
C_Music * backgroundMusic
The background music.
Definition: SM_Help.h:54
A State that contains and runs the Help Menu.
Definition: SM_Help.h:18
Contains the Vec2 structure with functions and overloaded operators.
Definition: C_Vec2.h:7
void draw()
A function to draw the State to the screen.
Definition: SM_Help.cpp:110
UI_Button * exitButton
The Exit Button.
Definition: SM_Help.h:64
C_Texture * buttonBackground
The Button Background Image.
Definition: SM_Help.h:58
S_StateManager * stateManager
A pointer to the state manager.
Definition: S_State.h:49
SM_Help(S_StateManager *stateManager, SDL_Renderer *renderer, C_Vec2 dimensions, C_Music *backgroundMusic)
Constructs the State object.
Definition: SM_Help.cpp:3
bool input()
Handles the State input.
Definition: SM_Help.cpp:56
Handles music using SDL_Mixer.
Definition: C_Music.h:12
Handles the functions for all State objects.
Definition: S_StateManager.h:11
float * universalSpeed
A pointer for the universal speed of the menu.
Definition: SM_Help.h:56
SDL_Renderer * renderer
A pointer to the renderer.
Definition: S_State.h:51
C_Texture * help
The help image.
Definition: SM_Help.h:60
Creates a Texture for use with a renderer.
Definition: C_Texture.h:13
UI_Button * resumeButton
The Resume Button.
Definition: SM_Help.h:62