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?
dcrawlerproject/Character.hpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
51 lines (32 sloc)
670 Bytes
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
#ifndef Character_hpp | |
#define Character_hpp | |
#include<string> | |
#include<iostream> | |
#include<vector> | |
#include<sstream> | |
#include <stdio.h> | |
#endif /* Character_hpp */ | |
using namespace std; | |
class Character | |
{ | |
private: | |
std::string userName; | |
int level; | |
int exp; | |
int expMax; | |
int hp; | |
int hpMax; | |
int mana; | |
int manaMax; | |
int damage; | |
int defence; | |
int gold; | |
//Function | |
void updateStats(); | |
public: | |
Character(std::string userName); | |
virtual ~Character(); | |
bool updateLevel(); | |
const std::string getMenuBar(); | |
const std::string toString(); | |
}; |