-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHealth.cpp
More file actions
140 lines (91 loc) · 2.27 KB
/
Copy pathHealth.cpp
File metadata and controls
140 lines (91 loc) · 2.27 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
/**
* @file Health.cpp
*
* @brief File containing source code of the Health class
*
*
* @author Hugo MARTIN
* Contact: hugo.martin.1@etu.univ-amu.fr
*
*/
#include "classes.h"
/** Constructor of the class Health.
*
* Modification of the constructor of Health
* Initialisation of the Parsetext reference before
* the constructor of Health class be initialised
*
* @param textParse: reference of Parsetext
*/
vampireGameproject::Health::Health(Parsetext& textParse): textParser(textParse){}
/** Destructor of the class Health.
*
* Modification of the destructor of Health
*
*
*
*/
vampireGameproject::Health::~Health(){}
/** Implementation of the getPointlife method.
*
* Implementation of the getPointlife method
* Method returning pointLife value
*
*
*/
std::string vampireGameproject::Health::getPointlife(void){
return pointLife;
}
/** Implementation of the setPointlife method.
*
* Implementation of the setPointlife method
* Method setting the pointLife value
*
* @param pointLife: value of points of life to set
*
*/
void vampireGameproject::Health::setPointlife(std::string pointLife){
Health::pointLife = pointLife;
}
/** Implementation of the getPointlifeDescription method.
*
* Implementation of the getPointlifeDescription method
* Method returning the description associated to the point life value
*
*
*/
std::string vampireGameproject::Health::getPointlifeDescription(void){
return pointLifedescription;
}
/** Implementation of the getWeakness method.
*
* Implementation of the getWeakness method
* Method returning Weakness
*
*
*/
std::vector<std::string> vampireGameproject::Health::getWeakness(void){
return weakness;
}
/** Implementation of the setWeakness method.
*
* Implementation of the setWeakness method
* Method setting Weakness
*
* @param weakness: weakness to set
*
*/
void vampireGameproject::Health::setWeakness(std::string weakness){
vampireGameproject::Health::weakness.push_back(weakness);
}
/** Implementation of the setPointlifeDescription method.
*
* Implementation of the setPointlifeDescription method
* Method setting the point life description
*
*
*/
void vampireGameproject::Health::setPointlifeDescription(void){
//pointLifedescription = textParser.parseText();
pointLifedescription = "test";
}