Skip to content
Permalink
12d06b305d
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
38 lines (35 sloc) 704 Bytes
#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