HeadBall  1.0
A game
SplashScreen.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <SFML/Graphics.hpp>
4 
5 #include "State.hpp"
6 #include "Game.hpp"
7 
8 namespace HeadBall {
13  class SplashScreen : public State {
14  public:
21 
26  void init ( );
27 
32  void handleInput ( );
33 
38  void update ( );
39 
44  void draw ( );
45 
46  private:
48 
49  sf::Sprite _backgroundSprite;
50  sf::Sprite _logoSprite;
51 
54  };
55 }
Class for the Splash Screen.
Definition: SplashScreen.hpp:13
sf::Sprite _logoSprite
Initial logo animation sprite.
Definition: SplashScreen.hpp:50
void update()
Update the Animation.
Definition: SplashScreen.cpp:50
SplashScreen(GameDataRef data)
Construct a new Splash Screen object.
Definition: SplashScreen.cpp:8
sf::Sprite _backgroundSprite
Initial background sprite.
Definition: SplashScreen.hpp:49
void draw()
Draw the Sprites.
Definition: SplashScreen.cpp:69
int _animationCounter
Counter for animation cycles.
Definition: SplashScreen.hpp:52
GameDataRef _data
Shared Pointer for all game data.
Definition: SplashScreen.hpp:47
int _spriteCounter
Counter for sprites.
Definition: SplashScreen.hpp:53
void handleInput()
Handle the user inputs.
Definition: SplashScreen.cpp:40
void init()
Initialize SplashScreen object.
Definition: SplashScreen.cpp:10
Abstract based class which inherits all the states of the game.
Definition: State.hpp:8
Custom namespace used throughout the project.
Definition: AboutState.cpp:6
std::shared_ptr< GameData > GameDataRef
The Shared Pointer of GameData Struct.
Definition: Game.hpp:39