-
Notifications
You must be signed in to change notification settings - Fork 0
/
enemy.cc
44 lines (27 loc) · 1005 Bytes
/
enemy.cc
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
#include "enemy.h"
using namespace std;
enemy::enemy(const string &race, const string &type, const int &hp,
const int &atk, const int &def, const int &row, const int &col):
race{race}, type {type}, hp{hp}, atk{atk}, def{def}, row{row}, col{col} {}
enemy::~enemy()
{
//dtor
}
void enemy::updatepos(const int &row, const int &col) {
this->row = row;
this->col = col;
}
std::string enemy::getRace() const {return race;}
std::string enemy::getType() const {return type;}
int enemy::get_hp() const {return hp;}
int enemy::get_atk() const {return atk;}
int enemy::get_def() const {return def;}
int enemy::get_row() const {return row;}
int enemy::get_col() const {return col;}
int enemy::get_gold() const { return 0;}
void enemy::change_hp (const int &value) {}
void enemy::change_atk(const int &value) {}
void enemy::change_def(const int &value) {}
void enemy::change_gold(const int &value) {}
void enemy::steal_gold() {}
void enemy::move (const string &direction) {}