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.cpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
24 lines (18 sloc)
443 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. | |
// | |
#include "Character.h" | |
Character::Character(std::string _name,int _level, int _exp) | |
{ | |
name = _name; | |
level = _level; | |
exp = _exp; | |
} | |
Character::~Character() | |
{ | |
} | |
std::string Character::GetName(){return name;}; | |
int Character::GetMaxHealth() {return maxHealth;}; | |
int Character::GetLevel() {return level;}; | |
int Character::GetExp() {return exp;}; | |
int Character::GetExpTo() {return expTo;}; |