-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.h
54 lines (46 loc) · 1.45 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
46
47
48
49
50
51
52
53
54
#ifndef _Player
#define _Player
#include <string>
#include <vector>
#include "Entity.h"
#include "Room.h"
#include "Item.h"
#include "Npc.h"
using namespace std;
class Player : public Entity
{
public:
Player(const char* name, const char* description, string description2, Room* location);
~Player();
void NothingTo(const string verb);
bool WhatTo(const string verb);
Entity* FindInList(const string name, list<Entity*> entities, entityType objectType);
void Timer(float seconds);
void Buy(const string drink, const string paymentMethod, bool paying);
void BuyWith(const string drink, const string obj);
void Close(const string door);
void Drink(const string drink);
void Drop(const string obj, bool dropped, bool throwingAtSometing);
void Inventory();
void Kick(const string obj);
void Look();
void Look(const string obj);
void Move(const string obj);
void Open(const string door, bool gotKey);
void OpenWith(const string door, const string key);
void PickUp(const string obj);
void Press(const string obj);
void Put(const string obj, const string container);
void Read(const string obj);
void TalkTo(const string obj);
bool ThrowingFrom(const string obj, list<Entity*> list, bool throwingAtSometing);
bool Throw(const string obj, bool throwingAtSometing);
void ThrowAt(const string obj, const string objective);
void Travel(const char* direction);
void Vomit();
public:
bool hasHeart = false;
string description2;
int control = 10;
};
#endif