-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRaptor.h
More file actions
64 lines (50 loc) · 1.28 KB
/
Raptor.h
File metadata and controls
64 lines (50 loc) · 1.28 KB
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
55
56
57
58
59
60
61
62
63
64
#pragma once
#include <iostream>
using namespace std;
class Raptor {
protected:
//Raptor name, maxhealth, currenthealth, speed, damage, money and luck.
string name;
int maxhealth;
int currhealth;
int speed;
int damage;
int money;
int luck;
// Stores the current items that are known, what they do, how big of a change it is, and a description of the item.
string loot[10];
string knownitems[20];
string itemeffect[20];
int itemmagnitude[20];
string itemdescription[20];
public:
Raptor();
//Sets the stats of the new Raptor
void setStats(string, int, int, int, int);
//Getters
string getName(void);
int getmaxhealth(void);
int getcurrhealth(void);
int getspeed(void);
int getdamage(void);
int getluck(void);
void addspeed(int);
void adddamage(int);
void addluck(int);
void addmaxhealth(int);
void losehealth(int);
//Prints what the raptor looks like in ASCII art
int portrait(string);
//Prints a display that shows the current stats of the particular raptor
void getStats(void);
//Adds an item to the raptors inventory
void addInv(string);
//Uses an item that will do various things for the raptor
void UseItem(string);
void GameOver();
void gainhealth(int);
void loaditems(string);
bool intimidateCheck(int);
int randint(int);
void addloot(string);
};