-
Notifications
You must be signed in to change notification settings - Fork 0
/
BasicSpell.cpp
executable file
·73 lines (60 loc) · 1.02 KB
/
BasicSpell.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#include "BasicSpell.h"
BasicSpell::BasicSpell()
{
Active = false;
StepsLeft = 0;
}
BasicSpell::BasicSpell(const BasicSpell &val)
{
Name = val.Name;
Description = val.Description;
Active = val.Active;
StepsLeft = val.StepsLeft;
StepsInfluenced = val.StepsInfluenced;
}
BasicSpell::BasicSpell(std::string name, int stepsInfl)
{
Name = name;
StepsInfluenced = stepsInfl;
}
void BasicSpell::Activate()
{
Active = true;
StepsLeft = StepsInfluenced;
}
void BasicSpell::Deactivate()
{
Active = false;
}
std::string BasicSpell::GetName() const
{
return Name;
}
std::string BasicSpell::GetDescription() const
{
return Description;
}
int BasicSpell::GetLevel() const
{
return Level;
}
int BasicSpell::GetStepsInfluenced() const
{
return StepsInfluenced;
}
void BasicSpell::SetName(std::string val)
{
Name = val;
}
void BasicSpell::SetDescription(std::string val)
{
Description = val;
}
void BasicSpell::SetLevel(int val)
{
Level = val;
}
void BasicSpell::SetStepsInfluenced(int val)
{
StepsInfluenced = val;
}