-
Notifications
You must be signed in to change notification settings - Fork 0
/
Player.hpp
40 lines (36 loc) · 924 Bytes
/
Player.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
// Player.hpp
// Game Tester
// Created by Yinghan Ma on 11/22/17.
// Copyright © 2017 Yinghan Ma. All rights reserved.
#ifndef Player_hpp
#define Player_hpp
#include <stdio.h>
#include <string>
#include <vector>
using namespace std;
class Player{
private:
string name;
double GPA;
double stamina;
int attack;
int defense;
double defenseGPA;
public:
int playerX;
int playerY;
bool gameOver;
vector<string> item;
Player();
Player(string name);
int takeDamage(double enAttack);
double takeDamageBoss(double bossAttack);
string getName();
int getAttack();
void getHealth();
void fullHeal();
void levelUp();
void addItem(vector<string> &item, string drop);
void deleteItem(vector<string> &item, string del);
};
#endif /* Player_hpp */