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/Ability.hpp
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
41 lines (32 sloc)
867 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 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 |