-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.h
60 lines (54 loc) · 1.09 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
/*
* game.h
*
* Created on: Dec 5, 2015
* Author: Kyle
*/
#ifndef GAME_H_
#define GAME_H_
#include <iostream>
#include <string>
#include <vector>
#include <conio.h>
#include "character.h"
#include "Map.h"
//a class that holds the data for game and its various methods
class Game
{
private:
int level;
int horizontalPadding;
Map map;
string message;
Player al;
bool playing;
bool quit;
vector<vector<string>> mapData;
vector<vector<int>> allow;
bool keyFound;
void playLevel();
void initializeAllowableArea();
void printMap(int playerX, int playerY);
void update();
void gameOver();
void setHorizontalPadding();
void loadNextLevel();
public:
Game();
void start();
void GameOverScrn();
void Clean(Enemy** bosses, Enemy** type1, Enemy** type2);
void ResizeScrn();
void StartScrn();
void Level1IntroScrn();
void Level2IntroScrn();
void Level3IntroScrn();
void BeatGameScrn();
void ClearScrn();
void LevelUpScrn();
void QuitScrn();
bool Combat(Player *p, Enemy *e);
bool NFCombat(Player *p, Enemy *e);
bool FinalBossCombat(Player *p, Seminole *e);
};
#endif /* GAME_H_ */