-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.h
44 lines (31 loc) · 949 Bytes
/
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
#pragma once
#include <string>
#include "creature.h"
//typedef std::map<std::string,Heal> healPtrMap;
class PlayerCharacter : public Creature {
private:
int level = 1;
int XP = 0;
int freeStatPoints = 0;
int freeSkillPoints = 0;
//XP Scaling
int xpLevelMultiplier = 1;
int baseXpPerLevel = 10;
void levelUp();
public:
void giveXP(int earnedXP);
std::pair<int,int> getXP();
int getFreeStatPoints();
int getFreeSkillPoints();
int changeFreeStatPointsBy(int change);
int changeFreeSkillPointsBy(int change);
int getLevel();
//Constructors
PlayerCharacter(int bHP, int bSP, int bMP, Stats bStats);
PlayerCharacter(int bHP, int bSP, int bMP, Stats bStats, std::string playerName);
PlayerCharacter(std::string playerName);
PlayerCharacter();
//~PlayerCharacter();
};
std::string displayStats(Stats stats);
//std::string displayPoints(CreaturePoints points);