-
Notifications
You must be signed in to change notification settings - Fork 0
/
Hero.h
44 lines (37 loc) · 783 Bytes
/
Hero.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
/*
Hero class header
November 2020
*/
#ifndef Hero_CLASS
#define Hero_CLASS
#include "Map.h"
#include "TileOccupant.h"
#include <vector>
using namespace std;
class Obstacle;
class Tool;
class Hero {
public:
Hero();
Hero(const Hero &);
vector<Tool *> getUsableTools(Obstacle &);
vector<vector<string>> getToolOptions(Obstacle &);
void addInventory(Tool *);
bool consumeTool(Tool *);
int visionRange(void) const;
bool hasShip(void) const;
int whiffles(void) const;
int energy(void) const;
int addEnergy(int);
int addWhiffles(int);
void setHasBinoculars(bool);
void setHasShip(bool);
vector<vector<string>> GetInventory() const;
private:
vector<Tool *> inventory_;
bool hasBinoculars_;
bool hasShip_;
int whiffles_;
int energy_;
};
#endif