-
Notifications
You must be signed in to change notification settings - Fork 0
/
Monster.h
74 lines (40 loc) · 981 Bytes
/
Monster.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
#pragma once
#include <iostream>
#include <string>
#include "Creature.h"
#include "Position.h"
#include "MonsterData.h"
using namespace std;
class Monster : public Creature
{
public:
Monster() : Monster("monster", Position(0, 0), 0) {};
Monster(string _name, Position _position, int _mode);
void loadData(vector<MonsterData> _data);
int getMode();
MonsterData& getMonsterData();
void setMode(int _mode);
vector<MonsterActCard>& getCards();
vector<MonsterActCard>& getDiscardCards();
void setSequence(int seq);
int getSequence(void);
void setAttack(int att);
int getAttack();
void setHeal(int h);
int select;
void initialize();
void reuse();
bool open;
void attacked(int a);
void setRange(int a);
int getRange();
static bool compare(MonsterActCard& lhs, MonsterActCard& rhs);
private:
int mode;
MonsterData data;
vector<MonsterActCard> cards;
vector<MonsterActCard> discardCards;
int range;
int attack;
int largestHP;
};