Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
text-adventure/Character.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
62 lines (49 sloc)
1.36 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "inventory.h" | |
class Character | |
{ | |
public: | |
Character(); | |
virtual ~Character(); | |
void initialize(int level, std::string name); | |
//Functions | |
void initialize(const std::string name); | |
std printStats() const; | |
void levelUp; | |
std::string getAsString()const; | |
//Accessors | |
inline const double& getx() const { return this->xposition; } | |
inline const double& gety() const { return this->yposition; } | |
inline const std::string& getName() const { return this->name; } | |
inline const int& getlevel() const { return this->level; } | |
inline const int& getExp() const { return this->exp; } | |
inline const int& getHP() const { return this->hp; } | |
inline const int& getHPMAX() const { return this->hpMax; } | |
inline const int& getstamina() const { return this->stamina; } | |
inline const int& getDamageMin() const { return this->damageMin; } | |
inline const int& getDamageMax() const { return this->damageMax; } | |
inline const int& getDefence() const { return this->defence; } | |
inline const int& getExpNext() const { return this->expNext; } | |
//Modifier | |
private: | |
double xposition; | |
double yposition; | |
std::string name; | |
int level; | |
int exp; | |
int expNext; | |
int hp; | |
int hpMax; | |
int stamina; | |
int staminaMax; | |
int damageMin; | |
int damageMax; | |
int defence; | |
int strength; | |
int vitality; | |
int dexterity; | |
int intelligent; | |
int magicFind; | |
int statPoints; | |
int skillPoints; | |
}; |