Skip to content
Permalink
73f844c7a6
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
41 lines (32 sloc) 867 Bytes
#ifndef ABILITY_HPP
#define ABILITY_HPP
#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <tuple>
#include "libsqlite.hpp" // provided by Hintea, D. in 4005 CEM https://cumoodle.coventry.ac.uk/pluginfile.php/2606853/mod_resource/content/0/libsqlite.hpp
#include "Effect.hpp"
#include <cstdlib>
using namespace std;
class Ability
{
private:
int Damage_Max, Damage_Min, Heal_Max, Heal_Min, Effect_ID;
vector<int> effect_ids;
vector<Effect> effects;
bool friendly;
public:
int Mana_Cost, Stamina_Cost;
string Ability_Name, Ability_Description;
Ability(int _id);
vector<Effect> GetEffects() const;
Effect GetEffects(int i) const;
int GetDamage() const;
int GetHealing() const;
int GetStaminaCost() const;
int GetManaCost() const;
bool IsFriendly();
friend ostream& operator<<( ostream&, const Ability&);
};
#endif