-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpc.h
43 lines (35 loc) · 826 Bytes
/
pc.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
#ifndef _PC_H_
#define _PC_H_
#include <iostream>
#include <string>
#include <vector>
class Enemy;
class AbstractPotion;
class PC {
protected:
int HP, Atk, Def, Gold;
std::string Name;
std::vector<AbstractPotion*> ap;
bool Compass, BS;
void setHP(int HP);
void setAtk(int Atk);
void setDef(int Def);
void setName(std::string Name);
public:
PC(int HP, int Atk, int Def, int Gold, std::string Name, bool compass, bool BS);
int getHP();
int getAtk();
int getDef();
int getGold();
std::string getName();
bool getCompass();
bool getBS();
void setGold(int Gold);
void setCompass(bool compass);
void setBS(bool BS);
void TakePotion(AbstractPotion* p);
void ReSet();
virtual int Combat(Enemy* enemy) = 0;
virtual ~PC();
};
#endif