-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.h
More file actions
37 lines (31 loc) · 758 Bytes
/
Player.h
File metadata and controls
37 lines (31 loc) · 758 Bytes
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
#ifndef PLAYER_H_INCLUDED
#define PLAYER_H_INCLUDED
#include <string>
enum Type {
GOD = 0,
MAFIA,
CITIZEN,
HEALER,
DETECTIVE,
DACOIT
};
class Player {
protected:
const int id;
const Type type;
const std::string name;
bool is_awake;
bool is_alive;
public:
Player(int ID, std::string nm, Type tp);
//Setters
void SetAwake(bool state) {is_awake = state;}
void SetAlive(bool state) {is_alive = state;}
//Getters
int GetId() const {return id;}
Type GetType() const {return type;}
std::string GetName() const {return name;}
bool GetAwake() const {return is_awake;}
bool GetAlive() const {return is_alive;}
};
#endif // PLAYER_H_INCLUDED