-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPLAYER.hpp
43 lines (42 loc) · 898 Bytes
/
PLAYER.hpp
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 PLAYER_H_
#define PLAYER_H_
#include <iostream>
#include <map>
#include <vector>
#include <set>
#include <string>
#include <time.h>
#include <stdio.h>
#include <map>
#include "CAVE.hpp"
using namespace std;
class PLAYER{
string facing = "right";
int x;
int y;
vector<int> position;
bool arrow = true;
bool climb = false;
bool gold = false;
bool eaten = false;
bool fell = false;
bool wumpus_killed = false;
public:
PLAYER();
vector<int> Get_Position();
string Get_Facing();
vector<int> Get_Next_Square();
bool Pickup_Gold(CAVE cave);
bool Update_Player_Status(CAVE cave);
bool Eaten();
bool Fell();
bool Has_Gold();
bool Has_Arrow();
bool Escaped();
void Turn_Right();
void Turn_Left();
void Move_Forward();
bool Climb_Ladder();
bool Shoot_Arrow(CAVE cave);
};
#endif /* PLAYER_hpp */