![]() |
HeadBall
1.0
A game
|
Class for the Splash Screen. More...
#include <SplashScreen.hpp>
Public Member Functions | |
SplashScreen (GameDataRef data) | |
Construct a new Splash Screen object. More... | |
void | init () |
Initialize SplashScreen object. More... | |
void | handleInput () |
Handle the user inputs. More... | |
void | update () |
Update the Animation. More... | |
void | draw () |
Draw the Sprites. More... | |
virtual void | pause () |
Virtual function for pausing the state. More... | |
virtual void | resume () |
Virtual function for resuming the object. More... | |
virtual void | animate () |
Vitrual function for performing animations. More... | |
Private Attributes | |
GameDataRef | _data |
Shared Pointer for all game data. More... | |
sf::Sprite | _backgroundSprite |
Initial background sprite. More... | |
sf::Sprite | _logoSprite |
Initial logo animation sprite. More... | |
int | _animationCounter |
Counter for animation cycles. More... | |
int | _spriteCounter |
Counter for sprites. More... | |
Class for the Splash Screen.
HeadBall::SplashScreen::SplashScreen | ( | GameDataRef | data | ) |
Construct a new Splash Screen object.
data | Shared pointer of game data |
|
inlinevirtualinherited |
Vitrual function for performing animations.
|
virtual |
Draw the Sprites.
Implements HeadBall::State.
|
virtual |
Handle the user inputs.
Implements HeadBall::State.
|
virtual |
Initialize SplashScreen object.
Implements HeadBall::State.
|
inlinevirtualinherited |
Virtual function for pausing the state.
Reimplemented in HeadBall::GameState.
|
inlinevirtualinherited |
Virtual function for resuming the object.
Reimplemented in HeadBall::GameState.
|
virtual |
Update the Animation.
Implements HeadBall::State.
|
private |
Counter for animation cycles.
|
private |
Initial background sprite.
|
private |
Shared Pointer for all game data.
|
private |
Initial logo animation sprite.
|
private |
Counter for sprites.