-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCreature.h
79 lines (41 loc) · 934 Bytes
/
Creature.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
74
75
76
77
78
79
#pragma once
#include <string>
#include "Position.h"
using namespace std;
enum class Type {none, player, monster};
class Creature
{
public:
Creature() : Creature("Creature", Position(0, 0), Type::none) {};
Creature(string _name, Position _position, Type _type);
string getName();
Position getPosition();
char getCode();
Type getType();
void setName(string _name);
void setPosition(Position _position);
void setCode(char _code);
void setType(Type _type);
void setAgility(int a);
int getAgility();
virtual void setSequence(int seq);
virtual int getSequence(void);
virtual void initialize();
int getHP();
void setShield(int s);
int getShield();
int conflict;
void setSecAgility(int a);
int getSecAgility();
bool dead = false;
protected:
Type type;
Position position;
string name;
char code;
int creatureAgility;
int sequence;
int HP;
int shield = 0;
int secAgility;
};