SUPER Space invader : Turbo edition DX - VS GOD 1.0.0
A simple space invader ripoff
Game Class Reference

Main game class. More...

#include <game.h>

Public Member Functions

 Game ()
 constructor for the game class More...
 
void managedGames ()
 start games managed by our class More...
 
void initGame ()
 Set or reset all the setting for a new game. More...
 
WinValue enterGameLoop ()
 enter the main gameplay game loop. Will block until the game ends More...
 
bool reloadConfig ()
 reload the configuration file (not dynamically used currently, but it was planned to be) More...
 
bool arePlayersDead ()
 tells if all players are dead More...
 

Detailed Description

Main game class.

Definition at line 34 of file game.h.

Constructor & Destructor Documentation

◆ Game()

Game::Game ( )

constructor for the game class

Definition at line 20 of file gameBasics.cpp.

Member Function Documentation

◆ arePlayersDead()

bool Game::arePlayersDead ( )

tells if all players are dead

Returns
true if all player are dead, false otherwise

Definition at line 175 of file gameBasics.cpp.

Here is the caller graph for this function:

◆ enterGameLoop()

WinValue Game::enterGameLoop ( )

enter the main gameplay game loop. Will block until the game ends

Returns
the value of the winners can be the players, the invaders or god

Definition at line 115 of file gameBasics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initGame()

void Game::initGame ( )

Set or reset all the setting for a new game.

Definition at line 83 of file gameBasics.cpp.

Here is the caller graph for this function:

◆ managedGames()

void Game::managedGames ( )

start games managed by our class

Definition at line 63 of file gameBasics.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reloadConfig()

bool Game::reloadConfig ( )

reload the configuration file (not dynamically used currently, but it was planned to be)

Returns
false if an error occurred, true otherwise

Definition at line 311 of file configManagement.cpp.

Here is the call graph for this function:

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