-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.hpp
More file actions
40 lines (36 loc) · 928 Bytes
/
Copy pathPlayer.hpp
File metadata and controls
40 lines (36 loc) · 928 Bytes
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
/*********************************************************************
** Program name: FinalProject
** Author: James Scanlon
** Date: March 19, 2019
** Description: Interface of the Player class.
*********************************************************************/
#ifndef Player_hpp
#define Player_hpp
#include <stdio.h>
#include "Backpack.hpp"
#include "Bulbasaur.hpp"
#include "Pokemon.hpp"
#include <iostream>
#include <vector>
class Player
{
private:
int money;
int currentObjective;
Backpack* backpack;
Bulbasaur* pokemon;
public:
// Constructor
Player(int startingMoney = 200, int startObjective = 1);
// Get functions
Backpack* getBackpack();
Bulbasaur* getBulbasaur();
int getMoney();
int getObjective();
// Set functions
void subtractMoney(int value);
void setObjective(int objective);
// Destructor
~Player();
};
#endif /* Player_hpp */