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-Based-game/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.
37 lines (24 sloc)
588 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
// | |
// Created by Afonso Silva on 18/02/2020. | |
// | |
#ifndef GAMEPJT_CHARACTER_H | |
#define GAMEPJT_CHARACTER_H | |
#include <string> | |
class Character | |
{ | |
private: | |
std::string name; | |
int maxHealth; //Attack Damage | |
int level; //Current Health | |
int exp; //Armor | |
int expTo; | |
public: | |
std::string GetName(); | |
int GetMaxHealth(); | |
int GetLevel(); | |
int GetExp(); | |
int GetExpTo(); | |
Character(std::string _name,int _level, int _exp); //Constructor | |
~Character(); //Destructor | |
}; | |
#endif //GAMEPJT_CHARACTER_H |