-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ability.h
49 lines (46 loc) · 1.1 KB
/
Ability.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma once
#include <iostream>
#include <string>
using namespace std;
class Ability{
protected:
string name;
double average_damage;
double max_damage;
double min_damage;
double number_of_hits;
double time_to_channel;
double time_until_damage_is_fully_applied;
double cooldown;
double stun_duration;
double bind_duration;
int bleed;
int puncture;
int walk_modifier;
string type = "no type";
public:
//getters
virtual string getType() = 0;
virtual void print() = 0;
string getName();
double getMax();
double getMin();
double getAverage();
double getNumHits();
double getTimeToChannel();
double getTimeUntilFullyApplied();
double getCooldown();
int getBleed();
int getPuncture();
double getStunDuration();
double getBindDuration();
//setters
void addToMin(double n);
void addToMax(double n);
void setMin(double n);
void setMax(double n);
void subtractFromMax(double n);
void setStunDuration(double n);
void setBindDuration(double n);
void setNumHits(double n);
};