Retro_Gameboy
The purpose of this project is to create a GameBoy with classic games.
Public Member Functions | Protected Member Functions
GameGenerics Class Referenceabstract

#include <GameGenerics.h>

Inheritance diagram for GameGenerics:
Inheritance graph
[legend]

Public Member Functions

 GameGenerics ()
 Default Constructor for GameGenerics. This is a abstract class and you cannot instantiate this class. More...
 
virtual int CalculateScore ()=0
 Pure virtual function inherited from GameGenerics.h Each game calculate scores differently and therefore this function need to override in each game according to the game rules. More...
 

Protected Member Functions

void GameOverScreen (RenderWindow &window)
 Display a game over screen at the end of the game alone with user's score. Currently, every game has the same game over screen. If each and every game needs a different screen, it might be a good idea to make it a pure virtual function. More...
 

Detailed Description

Definition at line 17 of file GameGenerics.h.

Constructor & Destructor Documentation

◆ GameGenerics()

GameGenerics::GameGenerics ( )

Default Constructor for GameGenerics. This is a abstract class and you cannot instantiate this class.

Definition at line 4 of file GameGenerics.cpp.

Member Function Documentation

◆ CalculateScore()

virtual int GameGenerics::CalculateScore ( )
pure virtual

Pure virtual function inherited from GameGenerics.h Each game calculate scores differently and therefore this function need to override in each game according to the game rules.

Implemented in Tetris, Snake, and Arkanoid.

Here is the caller graph for this function:

◆ GameOverScreen()

void GameGenerics::GameOverScreen ( RenderWindow &  window)
protected

Display a game over screen at the end of the game alone with user's score. Currently, every game has the same game over screen. If each and every game needs a different screen, it might be a good idea to make it a pure virtual function.

Definition at line 9 of file GameGenerics.cpp.

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

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