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/include/Hero.hpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38 lines (35 sloc)
704 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 HERO_HPP | |
#define HERO_HPP | |
#include <iostream> | |
#include <string> | |
#include <cstdlib> | |
#include <ctime> | |
#include <tuple> | |
#include "libsqlite.hpp" | |
#include "Ability.hpp" | |
#include <map> | |
#include <vector> | |
using namespace std; | |
class Hero | |
{ | |
private: | |
string Hero_Name, Hero_Description; | |
int HP, SP, MP, SPD, DEF; | |
vector<int> ability_ids; | |
vector<Ability> abilities; | |
map<string, vector<tuple<float, int>>> buffs; | |
public: | |
Hero(int _id); | |
int GetHP(); | |
int GetSP(); | |
int GetMP(); | |
int GetSPD(); | |
int GetDEF(); | |
void DealDMG(int dmg); | |
void TakeSP(int amount); | |
void TakeMP(int amount); | |
void SetSPD(int speed); | |
void SetDEF(int defence); | |
friend ostream& operator<<( ostream&, const Hero&); | |
}; | |
#endif |