-
Notifications
You must be signed in to change notification settings - Fork 0
/
Earl.hpp
48 lines (43 loc) · 994 Bytes
/
Earl.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
44
45
46
47
48
/** Program Name: Earl.hpp
** Author: Thomas Fattah
** Date: 2019-08-06
** Description: Header file for Earl class, which simulates the main character in the game of the same title. Has
** data members for Earl's various stats and some functions which are called during the course of the game. An Earl
** object is passed by reference to Space classes.
*/
#ifndef EARL_HPP
#define EARL_HPP
#include <iostream>
#include <vector>
const int EARLMONEY = 1;
class Earl
{
private:
std::vector<int> cash;
int hunger;
int boogers;
int health;
int confidence;
bool busTicket;
int finalScore;
public:
Earl();
void setCash();
void subTractCash();
void setHunger(int);
void setBoogers(int);
void setHealth(int);
void setConfidence(int);
void setFinalScore(int);
void buyBusTicket();
void flingBooger();
void runAway();
int getCash();
int getHunger();
int getBoogers();
int getHealth();
int getConfidence();
bool getBusTicket();
int getFinalScore();
};
#endif //EARL_HPP