Retro_Gameboy
The purpose of this project is to create a GameBoy with classic games.
include
GameGenerics.h
Go to the documentation of this file.
1
#ifndef GAMEGENERICS_H
2
#define GAMEGENERICS_H
3
4
#include <SFML/Graphics.hpp>
5
#include <time.h>
6
#include <iostream>
7
8
using namespace
sf;
9
10
namespace
choices
11
{
12
13
enum
GAME
{
UNKNOWN
,
TETRIS
,
ARKANOID
,
SNAKE
};
14
15
}
16
17
class
GameGenerics
18
{
19
20
private
:
21
22
protected
:
23
28
void
GameOverScreen( RenderWindow& window );
29
30
public
:
31
34
GameGenerics
();
35
38
virtual
int
CalculateScore
() = 0;
39
40
41
};
42
43
#endif
GameGenerics
Definition:
GameGenerics.h:18
GameGenerics::CalculateScore
virtual int CalculateScore()=0
Pure virtual function inherited from GameGenerics.h Each game calculate scores differently and theref...
choices
Definition:
GameGenerics.h:11
choices::GAME
GAME
Definition:
GameGenerics.h:13
choices::SNAKE
@ SNAKE
Definition:
GameGenerics.h:13
choices::TETRIS
@ TETRIS
Definition:
GameGenerics.h:13
choices::ARKANOID
@ ARKANOID
Definition:
GameGenerics.h:13
choices::UNKNOWN
@ UNKNOWN
Definition:
GameGenerics.h:13
Generated by
1.9.0