-
Notifications
You must be signed in to change notification settings - Fork 0
/
gameproperties.h
49 lines (39 loc) · 1.31 KB
/
gameproperties.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#ifndef GAMEPROPERTIES_H
#define GAMEPROPERTIES_H
#include <QString>
#include <QDebug>
#include "staffGamesConstants.h"
class GameProperties
{
public:
GameProperties(){}
virtual ~GameProperties(){}
virtual int gameId()const = 0;
virtual QString gameTitle()const = 0;
virtual int price()const = 0;
};
class GameProperties_NoteFindingAll : public GameProperties{
public:
GameProperties_NoteFindingAll(){}
~GameProperties_NoteFindingAll(){}
int gameId()const{ return gameIDs::noteFinderAll;}
QString gameTitle()const{ return QString("Finding all notes");}
int price()const{ return gamePrices::noteFinderAll;}
};
class GameProperties_LineFinding : public GameProperties{
public:
GameProperties_LineFinding(){}
~GameProperties_LineFinding(){}
int gameId()const{ return gameIDs::noteFinderLines;}
QString gameTitle()const{ return QString("Finding all staff lines");}
int price()const{ return gamePrices::noteFinderLines;}
};
class GameProperties_SpaceFinding : public GameProperties{
public:
GameProperties_SpaceFinding(){}
~GameProperties_SpaceFinding() {}
int gameId()const{ return gameIDs::noteFinderSpaces;}
QString gameTitle()const{ return QString("Finding all staff spaces");}
int price()const{ return gamePrices::noteFinderSpaces;}
};
#endif // GAMEPROPERTIES_H