-
Notifications
You must be signed in to change notification settings - Fork 1
/
Game.h
73 lines (42 loc) · 1.34 KB
/
Game.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#ifndef GAMEPROJECT_GAME_H
#define GAMEPROJECT_GAME_H
#include <vector>
#include "KEYBOARD_SYMBOLS.h"
#include "Map/Grid/Grid.h"
#include "MarketPlace/Market.h"
#include "Squads/HeroSquad.h"
#include "Squads/MonsterSquad.h"
#include "Fight/Fight.h"
#include "Creatures/Heroes/Warrior.h"
#include "Creatures/Heroes/Paladin.h"
#include "Creatures/Heroes/Sorcerer.h"
#include "Creatures/Monsters/Dragon.h"
#include "Creatures/Monsters/ExoSkeleton.h"
#include "Creatures/Monsters/Spirit.h"
#include "Spells/FireSpell.h"
#include "Spells/IceSpell.h"
#include "Spells/LightingSpell.h"
#define MAP_SIZE 8
#define MAX_TEAMMATES 3
class Game {
private:
//Game has one map, market and the player's team of heroes
Grid* map = nullptr;
Market* marketPlace = nullptr;
HeroSquad* squad = nullptr;
void createHeroes();
MonsterSquad* createEnemies();
Market* createMarket();
//methods returning bool value are used in case that player quits at any point of the game
bool playerMove(Square* currentPos, unsigned int& x1, unsigned int& y1);
bool enterMarket();
bool enterCommon();
void victory(int monstersDefeated);
void defeat();
static std::string getUnusedName(std::vector<std::string>& usedNames, std::string* names);
public:
Game();
~Game();
void play();
};
#endif //GAMEPROJECT_GAME_H