-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.h
35 lines (29 loc) · 810 Bytes
/
player.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
#ifndef PLAYER_H_
#define PLAYER_H_
#include <vector>
#include <array>
#include <cmath>
#include <ncurses.h>
#include "constants.h"
#include "entity.h"
#include "item.h"
#include "spiralpath.h"
#include "input.h"
// player class, the player can see
class Player : public NonBlindEntity {
public:
// player instantiated with specific name etc
Player(int y, int x) : NonBlindEntity("Player", "This is you, the player", y, x, '@', 10) {
living_ = true;
doormat_ = false;
stats_[2] = 9;
};
~Player();
void Brain(map_type, std::vector<Entity*>&);
void CheckDead(std::vector<Entity*>&);
private:
std::vector<std::pair<Item,int>> equipment_;
float max_weight_;
float GetInvenWeight();
};
#endif