-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRulesofGame.cpp
More file actions
230 lines (172 loc) · 10.9 KB
/
Copy pathRulesofGame.cpp
File metadata and controls
230 lines (172 loc) · 10.9 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
/**
* @file RulesofGame.cpp
*
* @brief File containing source code of the RulesofGame class
*
*
* @author Hugo MARTIN
* Contact: hugo.martin.1@etu.univ-amu.fr
*
*/
#include "classes.h"
/** Constructor of the class RulesofGame.
*
* Modification of the constructor of RulesofGame
* Initialisation of a Gui reference
* before the RulesofGame constructor be initialised
*
* @param parserReference: Reference of ParseText object
*/
vampireGameproject::RulesofGame::RulesofGame(Parsetext& parserReference): parser(parserReference){}
/** Destructor of the class RulesofGame.
*
* Modification of the destructor of RulesofGame*/
vampireGameproject::RulesofGame::~RulesofGame(){}
/** Implementation of the setVectorClans method.
*
* Implementation of the setVectorClans method
* Method setting the list of Clans in the vector
* Clans */
void vampireGameproject::RulesofGame::setVectorClans(){
vectorClans = parser.parselistClans();
}
/** Implementation of the setVectorNature method.
*
* Implementation of the setVectorNature method
* Method setting the list of Nature in the
* vectorNature */
void vampireGameproject::RulesofGame::setVectorNature(){
vectorNature = parser.parselistNature();
}
/** Implementation of the returnVectorClans method.
*
* Implementation of the returnVectorClans method
* Method allowing to return vector of Clans*/
std::vector<std::string>& vampireGameproject::RulesofGame::returnVectorClans(){
return vectorClans;
}
/** Implementation of the returnVectorNature method.
*
* Implementation of the returnVectorNature method
* Method allowing to return vector of Nature*/
std::vector<std::string>& vampireGameproject::RulesofGame::returnVectorNature(){
return vectorNature;
}
/** Implementation of the setLimitiPointsAttributes method.
*
* Implementation of the setLimitPointsAttributes method
* Method allowing to set the limit points of the Spin Box in the Gui
*
* @param PhysicalPoints: Limit of Physical Points
* @param SocialPoints: Limit of Social Points
* @param MentalPoints: Limit of Mental Points
* @param TalentsPoints: Limit of Talents Points
* @param SkillsPoints: Limit of Skills Points
* @param KnowledgesPoints: Limit of Knowledges Points
* @param AnimalismPoints: Limit of Animalism Points
* @param AuspexPoints: Limit of Auspex Points
* @param CelerityPoints: Limit of Celerity Points
* @param ChimerstryPoints: Limit of Chimertstry Points
* @param DementationPoints: Limit of Dementation Points
* @param DominatePoints: Limit of Dominate Points
* @param FortitudePoints: Limit of Fortitude Points
* @param NecromancyPoints: Limit of Necromancy Points
* @param ObfuscatePoints: Limit of Obfuscate Points
* @param ObtenebrationPoints: Limit of Obtenebration Points
* @param PotencePoints: Limit of Potence Points
* @param PresencePoints: Limit of Presence Points
* @param ProteanPoints: Limit of Protean Points
* @param QuietusPoints: Limit of Quietus Points
* @param SerpentisPoints: Limit of Serpentis Points
* @param ThaumaturgyPoints: Limit of Thaumaturgy Points
* @param VicissitudePoints: Limit of Vicissitude Points
* @param AlliesPoints: Limit of Allies Points
* @param AlternateIdentityPoints: Limit of Alternate Identity Points
* @param BlackHandMembershipPoints: Limit of Black Hand Membership Points
* @param ContactsPoints: Limit of Contacts Points
* @param DomainPoints: Limit of Domain Points
* @param FamePoints: Limit of Fame Points
* @param GenerationPoints: Limit of Generation Points
* @param HerdPoints: Limit of Herd Points
* @param InfluencePoints: Limit of Influence Points
* @param MentorPoints: Limit of Mentor Points
* @param ResourcesPoints: Limit of Resources Points
* @param RetainersPoints: Limit of Retainers Points
* @param RitualsPoints: Limit of Rituals Points
* @param StatusPoints: Limit of Status Points
* @param ConsciencePoints: Limit of Conscience Points
* @param SelfControlPoints: Limit of Self-Control Points
* @param CouragePoints: Limit of Courage Points
* @param SupernaturalPoints: Limit of Supernatural Points
* @param DaimoinonPoints: Limit of Daimoinon Points
* @param SanginusPoints: Limit of Sanginus Points
* @param MelpomineePoints: Limit of Melpominee Points
* @param FlightPoints: Limit of Flight Points
* @param TemporisPoints: Limit of Temporis Points
* @param OghamPoints: Limit of Ogham Points
*/
void vampireGameproject::RulesofGame::setLimitPointsAttributes(int PhysicalPoints, int SocialPoints, int MentalPoints, int TalentsPoints,
int SkillsPoints, int KnowledgesPoints, int AnimalismPoints, int AuspexPoints, int CelerityPoints, int ChimerstryPoints,
int DementationPoints, int DominatePoints, int FortitudePoints, int NecromancyPoints, int ObfuscatePoints, int ObtenebrationPoints,
int PotencePoints, int PresencePoints, int ProteanPoints, int QuietusPoints, int SerpentisPoints, int ThaumaturgyPoints,
int VicissitudePoints, int AlliesPoints, int AlternateIdentityPoints, int BlackHandMembershipPoints, int ContactsPoints,
int DomainPoints, int FamePoints, int GenerationPoints, int HerdPoints, int InfluencePoints, int MentorPoints,
int ResourcesPoints, int RetainersPoints, int RitualsPoints, int StatusPoints, int ConsciencePoints,
int SelfControlPoints, int CouragePoints, int SupernaturalPoints, int DaimoinonPoints, int SanginusPoints,
int MelpomineePoints, int FlightPoints, int TemporisPoints, int OghamPoints){
limitPointsAttributes.insert(std::pair<std::string, int>("Physical", PhysicalPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Social", SocialPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Mental", MentalPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Talents", TalentsPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Skills", SkillsPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Knowledges", KnowledgesPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Animalism", AnimalismPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Auspex", AuspexPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Celerity", CelerityPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Chimerstry", ChimerstryPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Dementation", DementationPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Dominate", DominatePoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Fortitude", FortitudePoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Necromancy", NecromancyPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Obfuscate", ObfuscatePoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Obtenebration", ObtenebrationPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Potence", PotencePoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Presence", PresencePoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Protean", ProteanPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Quietus", QuietusPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Serpentis", SerpentisPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Thaumaturgy", ThaumaturgyPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Vicissitude", VicissitudePoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Allies", AlliesPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Alternate Identity", AlternateIdentityPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Black Hand Membership", BlackHandMembershipPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Contacts", ContactsPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Domain", DomainPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Fame", FamePoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Generation", GenerationPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Herd", HerdPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Influence", InfluencePoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Mentor", MentorPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Resources", ResourcesPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Retainers", RetainersPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Rituals", RitualsPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Status", StatusPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Conscience", ConsciencePoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Self-Control", SelfControlPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Courage", CouragePoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Supernatural", SupernaturalPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Daimoinon", DaimoinonPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Sanginus", SanginusPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Melpominee", MelpomineePoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Flight", FlightPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Temporis", TemporisPoints));
limitPointsAttributes.insert(std::pair<std::string, int>("Ogham", OghamPoints));
}
/** Implementation of the returnLimitiPointsAttributes method.
*
* Implementation of the returnLimitPointsAttributes method
* Method returning the dictionnary containing the Points Limit
* for all the fields in the interface **/
std::map<std::string, int> vampireGameproject::RulesofGame::returnLimitPointsAttributes(){
return limitPointsAttributes;
}