HeadBall  1.0
A game
Classes | Typedefs
HeadBall Namespace Reference

Custom namespace used throughout the project. More...

Classes

class  AboutState
 Class for About page. More...
 
class  AssetManager
 Class for managing assets. More...
 
class  Ball
 Class for shape and movement of ball. More...
 
class  Game
 Class where game loop is processed. More...
 
struct  GameData
 Struct where the necessaey game data used by all the states is stored. More...
 
class  GameOver
 Class for game over or full-time state. More...
 
class  GameState
 Derived class of State class with visibility mode public that includes main gameplay. More...
 
class  GoalPost
 The Goalpost to be displayed in GameState. More...
 
class  GoalState
 Derived class of State class with visibility mode public that checks whether the player has scored goal or not and updates the state. More...
 
class  Ground
 Class for defining the ground in the game world. More...
 
class  HalfTime
 Class for Half Time State. More...
 
class  InputManager
 Handle the input given by the user. More...
 
class  InstructionsState
 Derived class of State class with visibility mode public that provides a state to instuct the players about basic controls of game. More...
 
class  MenuScreen
 Derived class of State class with visibility mode public that includes the functionality of menuscreen. More...
 
class  PausedState
 Class for the screen to be displayed when game is paused. More...
 
class  Player
 Class for shape and movement of player. More...
 
struct  ScoreTimeData
 Struct where the game time and player score is stored. More...
 
class  SplashScreen
 Class for the Splash Screen. More...
 
class  State
 Abstract based class which inherits all the states of the game. More...
 
class  StateMachine
 The class that manages the states in the project. More...
 
class  TimeManager
 The class that manages the game time. More...
 
class  UpHill
 The Uphill part of the game field, below the goal post and above the ground. More...
 
class  Wall
 Class for invisible wall around the field and above the goalpost. More...
 

Typedefs

typedef std::shared_ptr< GameDataGameDataRef
 The Shared Pointer of GameData Struct. More...
 
typedef std::shared_ptr< ScoreTimeDataScoreTimeRef
 The Shared Pointer of ScoreTimeData struct. More...
 
typedef std::shared_ptr< b2World > WorldRef
 The Shared Pointer that points to the Box2D world. More...
 
typedef std::unique_ptr< StateStateRef
 The Unique Pointer for storing the States. More...
 

Detailed Description

Custom namespace used throughout the project.

The namespace Headball is used throughout the project to refer to the project-related classes and their members.

Typedef Documentation

◆ GameDataRef

typedef std::shared_ptr<GameData> HeadBall::GameDataRef

The Shared Pointer of GameData Struct.

◆ ScoreTimeRef

typedef std::shared_ptr<ScoreTimeData> HeadBall::ScoreTimeRef

The Shared Pointer of ScoreTimeData struct.

◆ StateRef

typedef std::unique_ptr<State> HeadBall::StateRef

The Unique Pointer for storing the States.

All the states are inherited from the abstract class State that makes it possible to use a same pointer for all the states

◆ WorldRef

typedef std::shared_ptr<b2World> HeadBall::WorldRef

The Shared Pointer that points to the Box2D world.