-
Notifications
You must be signed in to change notification settings - Fork 0
/
Game.h
66 lines (58 loc) · 1.64 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
#ifndef GAME_H
#define GAME_H
#include <iostream>
#include <fstream>
#include <time.h>
#include "Hacker.h"
#include "Player.h"
#include "Map.h"
using namespace std;
class Game
{
private:
const int num_hackers = 20;
Hacker hackers[20];
int carmen_progress;
int current_server_room;
int num_hackers_defeated;
int room_hackers_defeated;
Player player = Player("PLAYER");
Map map = Map();
public:
// constructor
Game();
// getters
int getCarmenProgress();
int getServerRoom();
int getNumHackersDefeated();
Hacker getHacker(int i);
int getRoomHackersDefeated();
// Player getPlayer();
// Map getMap();
// setters
void setCarmenProgress(int cp);
void setServerRoom(int r);
void setNumHackersDefeated(int d);
void setRoomHackersDefeated(int rh);
// void setPlayer(Player p);
// void setMap(Map m);
// other methods
void start();
void displayStats();
void turn();
bool readHackers();
void printHackers();
int fightHacker(Hacker hack);
void talkToNPC(bool c);
void bestbuy();
void browseStackOverflow();
void moveServerRoom();
bool checkCoordinates(int row, int col, int row_holder[], int col_holder[], int arr_size, int index);
bool canMoveRoom();
void gameEnd(int w);
int split(string ori_string, char separator, string array[], int size);
int removeRandomComputerPart();
int addRandomComputerPart();
void misfortune();
};
#endif