Retro_Gameboy
The purpose of this project is to create a GameBoy with classic games.
|
#include <GameGenerics.h>
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... | |
Definition at line 17 of file GameGenerics.h.
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.
|
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.
|
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.