-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathattack.cpp
56 lines (44 loc) · 933 Bytes
/
attack.cpp
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
50
51
52
53
54
55
#include <iostream>
#include <string>
#include <math.h>
using namespace std;
#include "attack.h"
string attack::get_name(){
return name;
}
string attack::get_type(){
return type;
}
string attack::get_effect(){
return effect;
}
string attack::get_p_or_s(){
return p_or_s;
}
attack::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){
name = a_name;
type = a_type;
effect = a_effect;
p_or_s = a_p_or_s;
power = a_power;
acc = a_acc;
effect_chance = a_effect_chance;
}
attack::attack(attack &attack){
name = attack.name;
type = attack.type;
effect = attack.effect;
p_or_s = attack.p_or_s;
power = attack.power;
acc = attack.acc;
effect_chance = attack.effect_chance;
}
int attack::get_power(){
return power;
}
float attack::get_accuracy(){
return acc;
}
float attack::get_effect_chance(){
return effect_chance;
}