-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.h
37 lines (28 loc) · 1.07 KB
/
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
36
37
#ifndef PLAYER_H
#define PLAYER_H
#include "Node.h"
#include "Map.h"
#include "Script.h"
class Player : public Map{
private:
Node *playerPosition;
int mercy = 3;
Script script; // Composition of Script class
public:
Player();
Node* getPlayerPosition() const; // not sure how to use
void setPlayerPosition(Node* newPosition); // not sure how to use
int getPlayerCoordinate() const; // not sure how to use
void setForgetDie();
void moveForward(Map &map);
void moveBackward(Map &map);
void jumpOverNode(Map &map);
bool isPlayerAlive();
bool finish(Map &map);
void Mercy();
int getMercy() const; // not sure how to use
void setMercy(int newMercy); // not sure how to use
void checkStatus(Map &map); // The status of the player
void GoblinQuestion(Map &map); // to ask question
};
#endif