Sky Zone Omega - PC Version
 All Classes Namespaces Files Functions Variables Macros
S_Splash.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_Timer.h"
8 #include "../Core/C_Texture.h"
9 #include "../Core/C_Audio.h"
10 #include "../Core/C_Music.h"
11 #include "Menus//SM_MainMenu.h"
12 
17 class S_Splash : public S_State
18 {
19 public:
28 
32  ~S_Splash();
33 
38  bool input();
39 
44  void update(float dt);
45 
49  void draw();
50 
51 private:
60 };
void draw()
A function to draw the State to the screen.
Definition: S_Splash.cpp:52
float * universalSpeed
A pointer for the universal speed of the menu.
Definition: S_Splash.h:55
C_Music * backgroundMusic
The background music.
Definition: S_Splash.h:53
void update(float dt)
A function to update the State.
Definition: S_Splash.cpp:37
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
Contains the Vec2 structure with functions and overloaded operators.
Definition: C_Vec2.h:7
S_StateManager * stateManager
A pointer to the state manager.
Definition: S_State.h:49
~S_Splash()
Destructs the State object.
Definition: S_Splash.cpp:13
S_Splash(S_StateManager *stateManager, SDL_Renderer *renderer, C_Vec2 dimensions, C_Music *backgroundMusic)
Constructs the State object.
Definition: S_Splash.cpp:3
Handles music using SDL_Mixer.
Definition: C_Music.h:12
Handles the functions for all State objects.
Definition: S_StateManager.h:11
A State that contains and runs the splash screen.
Definition: S_Splash.h:17
Handles timer functions.
Definition: C_Timer.h:7
SDL_Renderer * renderer
A pointer to the renderer.
Definition: S_State.h:51
bool input()
Handles the State input.
Definition: S_Splash.cpp:20
C_Timer * splashTimer
The timer keeping the splash screen open.
Definition: S_Splash.h:59
Creates a Texture for use with a renderer.
Definition: C_Texture.h:13
C_Texture * splash
The splash image.
Definition: S_Splash.h:57