-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.h
67 lines (59 loc) · 1.62 KB
/
Player.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
#ifndef PLAYER_H
#define PLAYER_H
#include <iostream>
using namespace std;
class Player
{
private:
string player_name;
int frustration_level;
int dogecoins;
int internet_provider_level;
int num_vpn; // max of 2
bool has_backup_computer; // max of 1
int num_antivirus_stick;
const int parts_size = 6;
int numParts[6];
int has_virius;
int computer_maintenance;
public:
// constructor
Player(string n);
Player();
// getters
string getName();
int getFrustration();
int getDogecoins();
int getInternetLevel();
int getVPN();
bool getBackupComputer();
int getNumAntivirus();
int getCPU();
int getGPU();
int getPowerSupplyUnits();
int getComputerCases();
int getInternetCards();
int getKeyboardMouse();
int hasVirius();
int getComputerMaintenance();
// setters
void setName(string n);
void setFrustration(int f);
void setDogecoins(int d);
void setInternetLevel(int l);
void setVPN(int v);
void setBackupComputer(bool c);
void setNumAntivirus(int a);
void setCPU(int cpu);
void setGPU(int gpu);
void setPowerSupplyUnits(int psu);
void setComputerCases(int cc);
void setInternetCards(int ic);
void setKeyboardMouse(int km);
void setVirius(int v);
void setComputerMaintenance(int cm);
// other methods
bool canMakeComputer();
void repairComputer();
};
#endif