-
Notifications
You must be signed in to change notification settings - Fork 0
/
Hero.h
44 lines (40 loc) · 952 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
#ifndef HERO_H
#define HERO_H
#include <string>
#include <vector>
#include <iostream>
#include <time.h>
#include <math.h>
#include <utility>
#include "Person.h"
#include "Inventory.h"
#include "Item.h"
#include "NPC.h"
#include "variables.h"
#include <limits>
class Hero : public Person {
private:
int max_start_power = 20;
int money;
std::vector<Item*> equipped; //head, neck, body, 2*hand
int getAction();
public:
Inventory* inventory;
static std::vector<std::string> questions;
static std::vector<std::pair<std::string, int>> answers;
Hero();
int getMoney();
void addMoney(int money);
int getStrength();
int getCharisma();
int getSpeed();
std::vector<Item*> getEquipped();
void setEquipped(Item* item);
void unsetEquipped(std::string name);
void printEquipped();
bool fightWithNPC(NPC* being);
bool talkWithNPC(NPC* being);
void resetHero();
~Hero();
};
#endif