-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathattack.h
More file actions
36 lines (32 loc) · 763 Bytes
/
attack.h
File metadata and controls
36 lines (32 loc) · 763 Bytes
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
#ifndef ATTACK_H
#define ATTACK_H
using namespace std;
#include <iostream>
#include <string>
#include <math.h>
class attack {
public:
attack(string a_name, string a_type, string a_effect, string a_p_or_s, int a_power, float a_acc, float a_effect_chance);
attack(attack &attack);
string get_name();
string get_type();
string get_effect();
string get_p_or_s();
int get_power();
float get_accuracy();
float get_effect_chance();
private:
string name;
string type;
string effect;
string p_or_s;
int power;
float acc;
float effect_chance;
/*not nessessarily the chance, depends on the exact effect.
for freeze effect, chance to freeze
for heal, amount of max hp healed
for stat increases, amount increased
*/
};
#endif /*attack.h*/