Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
SM_Credits.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_Credits : public S_State
19 {
20 public:
29 
33  ~SM_Credits();
34 
39  bool input();
40 
45  void update(float dt);
46 
50  void draw();
51 
52 private:
70  float buttonYPos;
71 };
C_Music * backgroundMusic
The background music.
Definition: SM_Credits.h:54
void update(float dt)
A function to update the State.
Definition: SM_Credits.cpp:80
Creates a Button object that inherits Entity.
Definition: UI_Button.h:11
bool input()
Handles the State input.
Definition: SM_Credits.cpp:43
C_Vec2 dimensions
The screen dimensions.
Definition: S_State.h:53
Contains State functions and data to be inherited by all other states.
Definition: S_State.h:14
float buttonYPos
The Y position of the Button.
Definition: SM_Credits.h:70
C_Vec2 coinDim
The dimensions of the coin image.
Definition: SM_Credits.h:68
Contains the Vec2 structure with functions and overloaded operators.
Definition: C_Vec2.h:7
SM_Credits(S_StateManager *stateManager, SDL_Renderer *renderer, C_Vec2 dimensions, C_Music *backgroundMusic)
Constructs the State object.
Definition: SM_Credits.cpp:3
C_Texture * credits
The credits image.
Definition: SM_Credits.h:62
S_StateManager * stateManager
A pointer to the state manager.
Definition: S_State.h:49
A State that contains and runs the Credits Menu.
Definition: SM_Credits.h:18
float * universalSpeed
A pointer for the universal speed of the menu.
Definition: SM_Credits.h:60
Handles music using SDL_Mixer.
Definition: C_Music.h:12
C_Texture * background
The Background Image.
Definition: SM_Credits.h:56
Handles the functions for all State objects.
Definition: S_StateManager.h:11
void draw()
A function to draw the State to the screen.
Definition: SM_Credits.cpp:88
C_Texture * coin
The Coin Image.
Definition: SM_Credits.h:66
~SM_Credits()
Destructs the State object.
Definition: SM_Credits.cpp:32
UI_Button * exitButton
The Exit Button.
Definition: SM_Credits.h:64
SDL_Renderer * renderer
A pointer to the renderer.
Definition: S_State.h:51
C_Texture * buttonBackground
The Button Background Image.
Definition: SM_Credits.h:58
Creates a Texture for use with a renderer.
Definition: C_Texture.h:13