7 #include "../Core/C_Timer.h"
8 #include "../Core/C_Texture.h"
9 #include "../Core/C_Audio.h"
10 #include "../Core/C_Music.h"
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