22 const std::string
KReset (
"0");
27 const std::string
KNoir (
"30");
31 const std::string
KRouge (
"31");
36 const std::string
KVert (
"32");
41 const std::string
KJaune (
"33");
46 const std::string
KBleu (
"34");
56 const std::string
KCyan (
"36");
67 const char KLeft =
'w';
151 const unsigned KBegMe = KSizeLine / 2;
153 const std::vector <std::string> KVParamChar {
"KInsideInvader",
"KMissile",
"KInsideMe",
"KTorpedo",
"KRight",
"KLeft",
"KShoot",
"KEmpty"};
154 const std::vector <std::string> KVParamString {
"KMyColor",
"KInvadersColor"};
155 const std::vector <std::string> KVParamUnsigned {
"KSizeLine",
"KSizeSpace",
"KBegInvader",
"KInvadersSize",
"KMissileRatio",
"KMySize",
"KRatioMeInvaders",
"KBegMe"};
157 const std::map <std::string, char> MapParamCharDefault
159 {KVParamChar [0],
'W'},
160 {KVParamChar [1],
'T'},
161 {KVParamChar [2],
'A'},
162 {KVParamChar [3],
'|'},
163 {KVParamChar [4],
'x'},
164 {KVParamChar [5],
'w'},
165 {KVParamChar [6],
' '},
166 {KVParamChar [7],
' '}
169 const std::map <std::string, unsigned> MapParamUnsignedDefault
171 {KVParamUnsigned [0], 10},
172 {KVParamUnsigned [1], 10},
173 {KVParamUnsigned [2], 0},
174 {KVParamUnsigned [3], 2},
175 {KVParamUnsigned [4], 5},
176 {KVParamUnsigned [5], 4},
177 {KVParamUnsigned [6], 4},
178 {KVParamUnsigned [7], 1}
182 const std::map <std::string, std::string> MapParamStringDefault
184 {KVParamString [0],
"KVert"},
185 {KVParamString [1],
"KJaune"}
188 const SpaceInvader_AC::CMyParam KMyParamsDefault
191 {KVParamChar [0],
'W'},
192 {KVParamChar [1],
'T'},
193 {KVParamChar [2],
'A'},
194 {KVParamChar [3],
'|'},
195 {KVParamChar [4],
'x'},
196 {KVParamChar [5],
'w'},
197 {KVParamChar [6],
' '},
198 {KVParamChar [7],
' '}
201 {KVParamUnsigned [0], 10},
202 {KVParamUnsigned [1], 10},
203 {KVParamUnsigned [2], 0},
204 {KVParamUnsigned [3], 2},
205 {KVParamUnsigned [4], 5},
206 {KVParamUnsigned [5], 4},
207 {KVParamUnsigned [6], 4},
208 {KVParamUnsigned [7], 1}
211 {KVParamString [0],
"KVert"},
212 {KVParamString [1],
"KJaune"}
219 const std::string
KEmptyLine (KMyParamsDefault.MapParamUnsigned.at(
"KSizeLine"), KEmpty);
const std::string KNoir("30")
Alias mettant en noir la couleur du texte du terminal.
const std::string KBleu("34")
Alias mettant en bleu la couleur du texte du terminal.
const unsigned KMySize
Nombre de caractères qui forment mon vaisseau.
Definition: MyConst_AC.h:115
const char KEmpty
Alias vers une case vide à l'écran.
Definition: MyConst_AC.h:128
const std::string KEmptyLine(KSizeLine, KEmpty)
Alias vers une ligne vide de l'esapce.
const char KTorpedo
Caractèrere formant ma torpille.
Definition: MyConst_AC.h:110
const unsigned KSizeSpace
Nombre de colonnes de l'écran (de l'espace).
Definition: MyConst_AC.h:137
const std::string KMAgenta("35")
Alias mettant en mangenta la couleur du texte du terminal.
const unsigned KRatioMeInvaders
Nombre de fois où c'est le tour du joueur pour un tour de l'envahisseur.
Definition: MyConst_AC.h:121
const std::string KInvadersColor(KJaune)
Couleur de l'envahisseur.
const unsigned KBegMe
Numéro de colonne où commence le joueur.
Definition: MyConst_AC.h:147
const char KInsideMe
Caractèrere formant mon vaisseau.
Definition: MyConst_AC.h:105
Fichier décrivant l'ensemble des alias vers les types utilisés dans le jeu.
const char KInsideInvader
Caractèrere formant l'envahisseur.
Definition: MyConst_AC.h:79
const std::string KVert("32")
Alias mettant en vert la couleur du texte du terminal.
const unsigned KSizeLine
Nombre de lignes de l'écran (de l'espace).
Definition: MyConst_AC.h:132
const std::string KReset("0")
Alias remetant la couleur du texte du terminal à sa valeur par défaut.
Definition: myconst_ac_v2.h:16
const std::string KMyColor(KVert)
Couleur liée à mes objets (vaisseaux et tropilles).
const char KShoot
Alias vers la touche servant à lancer une torpille.
Definition: MyConst_AC.h:68
const char KMissile
Caractèrere formant le missile.
Definition: MyConst_AC.h:84
const unsigned KInvadersSize
Nombre de caractères qui forment l'envahisseur.
Definition: MyConst_AC.h:89
const char KLeft
Alias vers la touche servant à se déplacer à gauche.
Definition: MyConst_AC.h:63
const std::string KRouge("31")
Alias mettant en rouge la couleur du texte du terminal.
const char KRight
Alias vers la touche servant à se déplacer à droite.
Definition: MyConst_AC.h:58
const std::string KJaune("33")
Alias mettant en jaune la couleur du texte du terminal.
const unsigned KBegInvader
Numéro de colonne où commence l'envahisseur.
Definition: MyConst_AC.h:142
const std::string KCyan("36")
Alias mettant en cyan la couleur du texte du terminal.
const unsigned KMissileRatio
Nombre de fois où l'envahisseur tire un missile par rapport à son déplacement.
Definition: MyConst_AC.h:94