-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.h
45 lines (38 loc) · 1.02 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
38
39
40
41
42
43
44
45
#ifndef PLAYER_H_INCLUDED
#define PLAYER_H_INCLUDED
#include <iostream>
#include <string>
#include <vector>
#include "GameCharacter.h"
#include "Room.h"
#include "Item.h"
using namespace std;
class Item;
class Player: public GameCharacter
{
private:
Room* currentRoom;
Room* previousRoom;
vector<Item> inventory;
int crystal;
public:
Player();
Player(string,int,int,int,int);
void addItem(Item);
void increaseStates(int ,int,int);
void changeRoom(Room*);
/* Virtual function that you need to complete */
/* In Player, this function should show the */
/* status of player. */
void triggerEvent(Object*,Object*);
/* Set & Get function*/
void setCurrentRoom(Room*);
void setPreviousRoom(Room*);
void setInventory(vector<Item>);
Room* getCurrentRoom();
Room* getPreviousRoom();
vector<Item> getInventory();
void setCrystal(int);
int getCrystal();
};
#endif // PLAYER_H_INCLUDED