HeadBall  1.0
A game
Public Member Functions | Private Attributes | List of all members
HeadBall::AboutState Class Reference

Class for About page. More...

#include <AboutState.hpp>

Inheritance diagram for HeadBall::AboutState:
Inheritance graph
Collaboration diagram for HeadBall::AboutState:
Collaboration graph

Public Member Functions

 AboutState (GameDataRef data)
 Construct a new About State object. More...
 
void init ()
 Initialize state related data. More...
 
void handleInput ()
 Handle user input. More...
 
void update ()
 Update state data. More...
 
void draw ()
 Draw state objects. 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
 The shared pointer for all the game data. More...
 
sf::Sprite _background
 Background sprite to draw on the screen. More...
 
sf::Sprite _backBtn
 Button to return back. More...
 
sf::Sprite _exitBtn
 Button to exit from the game. More...
 
sf::Sound _btnClickSfx
 Sound effect for button click. More...
 
sf::Text _text
 Text to display about information. More...
 

Detailed Description

Class for About page.

Constructor & Destructor Documentation

◆ AboutState()

HeadBall::AboutState::AboutState ( GameDataRef  data)

Construct a new About State object.

Parameters
dataShared pointer for game data

Member Function Documentation

◆ animate()

virtual void HeadBall::State::animate ( )
inlinevirtualinherited

Vitrual function for performing animations.

◆ draw()

void HeadBall::AboutState::draw ( )
virtual

Draw state objects.

Implements HeadBall::State.

◆ handleInput()

void HeadBall::AboutState::handleInput ( )
virtual

Handle user input.

Implements HeadBall::State.

◆ init()

void HeadBall::AboutState::init ( )
virtual

Initialize state related data.

Implements HeadBall::State.

◆ pause()

virtual void HeadBall::State::pause ( )
inlinevirtualinherited

Virtual function for pausing the state.

Reimplemented in HeadBall::GameState.

◆ resume()

virtual void HeadBall::State::resume ( )
inlinevirtualinherited

Virtual function for resuming the object.

Reimplemented in HeadBall::GameState.

◆ update()

void HeadBall::AboutState::update ( )
virtual

Update state data.

Implements HeadBall::State.

Member Data Documentation

◆ _backBtn

sf::Sprite HeadBall::AboutState::_backBtn
private

Button to return back.

◆ _background

sf::Sprite HeadBall::AboutState::_background
private

Background sprite to draw on the screen.

◆ _btnClickSfx

sf::Sound HeadBall::AboutState::_btnClickSfx
private

Sound effect for button click.

◆ _data

GameDataRef HeadBall::AboutState::_data
private

The shared pointer for all the game data.

◆ _exitBtn

sf::Sprite HeadBall::AboutState::_exitBtn
private

Button to exit from the game.

◆ _text

sf::Text HeadBall::AboutState::_text
private

Text to display about information.


The documentation for this class was generated from the following files: