forked from littlebalup/ZeldaROTH
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Texte.cpp
3513 lines (3414 loc) · 176 KB
/
Texte.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
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
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Zelda Return of the Hylian
Copyright (C) 2005-2008 Vincent Jouillat
Please send bugreports with examples or suggestions to www.zeldaroth.fr
*/
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include "Lang.h"
#include "Texte.h"
#include "Menu.h"
#include "Joueur.h"
#include "Monde.h"
#include "Projectile.h"
#include "Jeu.h"
Texte::Texte(Jeu* jeu) : gpJeu(jeu), vitesse(40), av(0), x(0), y(0), w(0), h(0),
id(0), idsuiv(0), def(false), cadre(false), texte(""), buffer("") {
lastAnimTime = SDL_GetTicks();
imageFont = gpJeu->loadImg("data/images/texte/font.png");
SDL_SetColorKey(imageFont,SDL_SRCCOLORKEY,SDL_MapRGB(imageFont->format,0,0,255));
#ifdef __vita__
imageButtons = gpJeu->loadImg("data/images/texte/buttons.png");
SDL_SetColorKey(imageButtons,SDL_SRCCOLORKEY,SDL_MapRGB(imageButtons->format,0,0,255));
#endif
imageCoeur = gpJeu->loadImg("data/images/menu/coeur.png");
SDL_SetColorKey(imageCoeur,SDL_SRCCOLORKEY,SDL_MapRGB(imageCoeur->format,0,0,255));
getTextByLangFunc = &Texte::getTexteEN;
}
Texte::~Texte() {
#ifdef __vita__
SDL_FreeSurface(imageButtons);
#endif
SDL_FreeSurface(imageFont);
SDL_FreeSurface(imageCoeur);
}
void Texte::setTextLanguage(int id){
SDL_FreeSurface(imageFont);
switch(id){
case LANG_FR:
getTextByLangFunc = &Texte::getTexteFR;
imageFont = gpJeu->loadImg("data/images/texte/font.png");
break;
case LANG_DE:
getTextByLangFunc = &Texte::getTexteDE;
imageFont = gpJeu->loadImg("data/images/texte/font.png");
break;
case LANG_ES:
getTextByLangFunc = &Texte::getTexteES;
imageFont = gpJeu->loadImg("data/images/texte/font_ES.png");
break;
default:
getTextByLangFunc = &Texte::getTexteEN;
imageFont = gpJeu->loadImg("data/images/texte/font.png");
}
SDL_SetColorKey(imageFont,SDL_SRCCOLORKEY,SDL_MapRGB(imageFont->format,0,0,255));
}
std::string Texte::getTexteEN(int id, std::string s){
std::string texte = "";
switch(id) {
// 0 -> 99 : Carte
case 0 :
texte = "Forest Temple";
break;
case 1 :
texte = "Water Temple";
break;
case 2 :
texte = "Mountain Temple";
break;
case 3 :
texte = "Desert Temple";
break;
case 4 :
texte = "Dark Temple";
break;
case 5 :
texte = "Fire Temple";
break;
case 6 :
texte = "Ice Temple";
break;
case 7 :
texte = "Hidden Temple";
break;
case 8 :
texte = "Hyrule Castle";
break;
// 100 -> 199 : Encyclopedie
case 100 :
texte = "MONSTERS " + s;
break;
// 200 -> 299 : Generique
case 200 :
texte = "PLAYER SELECT";
break;
case 201 :
texte = "1.";
break;
case 202 :
texte = "2.";
break;
case 203 :
texte = "3.";
break;
case 204 :
texte = "OPTIONS";
break;
case 205 :
texte = "RECORDS";
break;
case 206 :
texte = "OPTIONS";
break;
case 207 :
texte = "MUSIC";
break;
case 208 :
texte = "SOUND";
break;
case 209 :
texte = "RETURN";
break;
case 210 :
texte = "RECORDS";
break;
case 211 :
texte = "BEST TIME: " + s;
break;
case 212 :
texte = "100% RANK";
break;
case 213 :
texte = "ULTIMATE RANK";
break;
case 214 :
texte = "SPEED RANK";
break;
case 215 :
texte = "RETURN";
break;
case 216 :
texte = "ERASE";
break;
case 217 :
texte = "ERASE ?";
break;
case 218 :
texte = "YES";
break;
case 219 :
texte = "NO";
break;
case 220 :
texte = "LOAD";
break;
case 221 :
texte = "ERASE";
break;
case 222 :
texte = "CANCEL";
break;
case 223 :
texte = "HELP 1/2";
break;
case 224 :
#ifdef __vita__
texte = "Return to the game: ¾3 - Next: ¾5";
#else
texte = "Return to the game: Enter - Next: Right";
#endif
break;
case 225 :
#ifdef __vita__
texte = "Read / Open / Speak: ¾2";
#else
texte = "Read / Open / Speak: Space";
#endif
break;
case 226 :
#ifdef __vita__
texte = "Confirm / Pass text: ¾3";
#else
texte = "Confirm / Pass text: Enter";
#endif
break;
case 227 :
#ifdef __vita__
texte = "Move Link: Left ¾9";
#else
texte = "Move Link: Direction Arrows";
#endif
break;
case 228 :
#ifdef __vita__
texte = "Run : L (lock) / R";
#else
texte = "Run : Shift hold or Caps lock";
#endif
break;
case 229 :
#ifdef __vita__
texte = "Use sword: ¾4";
#else
texte = "Use sword: Z or W";
#endif
break;
case 230 :
#ifdef __vita__
texte = "Spin attack: Hold ¾4 then dropped";
#else
texte = "Spin attack: Z or W hold then dropped";
#endif
break;
case 231 :
#ifdef __vita__
texte = "Item selection: ¾5";
#else
texte = "Item selection: Enter";
#endif
break;
case 232 :
#ifdef __vita__
texte = "Use selected object: ¾1";
#else
texte = "Use selected object: X";
#endif
break;
case 233 :
#ifdef __vita__
texte = "Carry without select gloves: ¾3";
#else
texte = "Carry without select gloves: C";
#endif
break;
case 234 :
#ifdef __vita__
texte = "See the map: ¾7 (outside or dungeons)";
#else
texte = "See the map: P (outside or dungeons)";
#endif
break;
case 235 :
#ifdef __vita__
texte = "See the map: Left D-Pad (in dungeons)";
#else
texte = "See the map: P (in dungeons)";
#endif
break;
case 236 :
#ifdef __vita__
texte = "See defeated monsters: ¾6";
#else
texte = "See defeated monsters: M";
#endif
break;
case 237 :
#ifdef __vita__
texte = "Look around: Right ¾9";
#else
texte = "Look around: Ctrl and direction";
#endif
break;
case 238 :
#ifdef __vita__
texte = "Save / Quit: Start";
#else
texte = "Save / Quit: Esc";
#endif
break;
case 239 :
#ifdef __vita__
texte = "";
#else
texte = "Enlarge / Shrink: Ctrl and Enter";
#endif
break;
case 240 :
texte = "HELP 2/2";
break;
case 241 :
#ifdef __vita__
texte = "Return to the game: ¾3 - Previous: ¾7";
#else
texte = "Return to the game: Enter - Previous: Left";
#endif
break;
case 242 :
#ifdef __vita__
texte = "Use selected object: ¾1";
#else
texte = "Use selected object: X";
#endif
break;
case 243 :
#ifdef __vita__
texte = "Carry without select gloves: ¾3";
#else
texte = "Carry without select gloves: C";
#endif
break;
case 244 :
#ifdef __vita__
texte = "See the map: ¾7 (outside or dungeons)";
#else
texte = "See the map: P (outside or dungeons)";
#endif
break;
case 245 :
#ifdef __vita__
texte = "See the map: ¾7 (in dungeons)";
#else
texte = "See the map: P (in dungeons)";
#endif
break;
case 246 :
#ifdef __vita__
texte = "See defeated monsters: ¾6";
#else
texte = "See defeated monsters: M";
#endif
break;
case 247 :
#ifdef __vita__
texte = "Look around: Right ¾9";
#else
texte = "Look around: Ctrl and direction";
#endif
break;
case 248 :
#ifdef __vita__
texte = "Save / Quit: Start";
#else
texte = "Save / Quit: Esc";
#endif
break;
case 249 :
#ifdef __vita__
texte = "";
#else
texte = "Enlarge / Shrink: Ctrl and Enter";
#endif
break;
case 250 :
texte = "RANK: Hero of Hyrule";
break;
case 251 :
texte = "RANK: UNKNOWN";
break;
case 252 :
texte = "100% completion of the game";
break;
case 253 :
texte = "RANK: Swanky";
break;
case 254 :
texte = "RANK: UNKNOW";
break;
case 255 :
texte = "Completed the game without dying,";
break;
case 256 :
texte = "with 10 hearts at the very most,";
break;
case 257 :
texte = "without talking to the Great Fairies,";
break;
case 258 :
texte = "without buying bottles";
break;
case 259 :
texte = "and without taking a shield.";
break;
case 260 :
texte = "RANK: Hyrule Marathon Runner";
break;
case 261 :
texte = "RANK: UNKNOW";
break;
case 262 :
texte = "Complete the game in less than";
break;
case 263 :
texte = "two hours";
break;
case 264 :
texte = "RESULTS:";
break;
case 265 :
texte = "Game time: " + s;
break;
case 266 :
texte = "Dead " + s + " time";
break;
case 267 :
texte = "Dead " + s + " times";
break;
case 268 :
texte = "Pieces of heart: " + s + " / 36";
break;
case 269 :
texte = "Objects: " + s + " / 56";
break;
case 270 :
texte = "Defeated all kinds of enemies: " + s + " / 46";
break;
case 271 :
texte = "You completed the game with " + s + "%, congratulations!";
break;
case 272 :
texte = "RANK: ";
break;
case 273 :
texte = " - Swanky";
break;
case 274 :
texte = " - Hero of Hyrule";
break;
case 275 :
texte = " - Perfectionist";
break;
case 276 :
texte = " - Zelda Fan";
break;
case 277 :
#ifdef __vita__
texte = " - Pad professional";
#else
texte = " - Keyboard professional";
#endif
break;
case 278 :
texte = " - Experienced";
break;
case 279 :
texte = " - Novice";
break;
case 280 :
texte = " - Living dead";
break;
case 281 :
texte = " - Kamikaze";
break;
case 282 :
texte = " - Hyrule Marathon Runner";
break;
case 283 :
texte = "LANGUAGE";
break;
case 284 :
texte = "English";
break;
// 300 -> 399 : Menu
case 300 :
texte = "X";
break;
case 301 :
texte = "STATUS:";
break;
case 302 :
texte = "LIFE : " + s;
break;
case 303 :
texte = "MAGIC : " + s;
break;
case 304 :
texte = "STRENGTH : " + s;
break;
case 305 :
texte = "DEFENSE : " + s;
break;
case 306 :
texte = "TIME : " + s;
break;
case 307 :
texte = "CRYSTALS:";
break;
// 500 -> ? : Texte
case 501 : texte = "You find a shield!!!**Your defense rises by one point!"; break;
#ifdef __vita__
case 502 : texte = "You find a sword!!!**You can now fight monsters with the key ¾4!!!*Hold ¾4 to charge a spin attack!!!"; break;
#else
case 502 : texte = "You find a sword!!!**You can now fight monsters with the key Z (or W)!!!*Hold Z to charge a spin attack!!!"; break;
#endif
case 503 : texte = "You find a piece of heart!!!"; break;
case 504 : texte = "Again "+s+" before having a new heart!!!"; break;
case 505 : texte = "Your heart count just increases!!!"; break;
case 511 : texte = "N: Link's Home*W: Hyrule Field*E: Forest Temple"; break;
case 512 : texte = "Mountain Temple**Not for cardiacs, scaredy-cats, and generally faint of heart."; break;
case 513 : texte = "W: Desert entrance*N: Mountain Temple"; break;
case 514 : texte = "N: Mountain Temple*S: Hyrule Field"; break;
case 515 : texte = "N: Death Mountain"; break;
case 516 : texte = "E: Forest Entrance"; break;
case 517 : texte = "S: Lake Hylia*E: Haunted Graveyard"; break;
case 518 : texte = "S: To Kakariko Village"; break;
case 519 : texte = "N: Kakariko Village"; break;
case 520 : texte = "N: Hyrule Field"; break;
case 521 : texte = "W: Fire Land"; break;
case 522 : texte = "E: Shadow Village*- Not for the living -"; break;
case 523 : texte = "Dark Temple**If you are a ghost, seeking a job, you'd better come here to hang out with us."; break;
case 524 : texte = "N: Shadow Village*W: Lake Hylia"; break;
case 525 : texte = "N: Haunted Graveyard**No entry"; break;
case 526 : texte = "Shadow Village"; break;
case 527 : texte = "I am selling a bottle for 100 rupees, are you interested?* YES ? no "; break;
case 528 : texte = "I am selling a bottle for 100 rupees, are you interested?* yes NO ?"; break;
case 529 : texte = "Sorry, you don't have enough rupees"; break;
case 530 : texte = "Thank you, here is your bottle."; break;
case 531 : texte = "Come again if you change your mind."; break;
case 532 : texte = "Sorry, that was my only bottle."; break;
case 533 : texte = "You find an empty bottle!!!**It will help you to stock potions!!!"; break;
case 535 : texte = "The inhabitants of that village have a dialect out of the ordinary, I don't understand anything..."; break;
case 536 : texte = "@+@+@+@+@+@+@@@+*@=++=@=+@=+@=+=@*+@+@+@+=+="; break;
case 537 : texte = "Wangle chief's permit if you really want to pass!!!"; break;
case 538 : texte = "The chief allows you to pass??? Grrrr... So move along!!!"; break;
case 539 : texte = "Get out of my way!!!"; break;
case 540 : texte = "It's not common to have visitors around here."; break;
case 541 : texte = "Local monsters don't fear a lot of things, fortunately they only attack humans."; break;
case 542 : texte = "Really?*You understand what I say?"; break;
case 543 : texte = "N: Desert and Gerudo Village"; break;
case 544 : texte = "S: Lake Hylia*W: Hyrule Castle"; break;
case 545 : texte = "Kakariko Village"; break;
case 546 : texte = "W: Hyrule Castle"; break;
case 547 : texte = "What a good day!!!"; break;
case 548 : texte = "But why did I accept to take care of that rubbish???*I loathe hens!!!"; break;
case 549 : texte = "You can find a lot of things in the shop of this village."; break;
case 550 : texte = "S: Kakariko Village*W: Desert*E: Death Mountain"; break;
case 551 : texte = "Gerudo Village"; break;
case 552 : texte = "Lost in the desert?*You are here:* X"; break;
case 554 : texte = "S: To Hyrule Castle"; break;
case 555 : texte = "Desert Temple**Come to try our bath.*(water is not for drinking)"; break;
case 556 : texte = "Forest Temple**Save the trees, eat beaver!!!"; break;
case 557 : texte = "Lake Temple**Compulsory bathing cap."; break;
case 558 : texte = "Ice Temple**The staff wishes to remind you that a dungeon is not a ice rink."; break;
case 559 : texte = "Did you see the blacksmith of that village?*He is said to be very gifted to improve adventurers' equipment, a lot of people visit him."; break;
case 560 : texte = "The Temple is in the deepest desert, in an ancient oasis."; break;
case 561 : texte = "S: Fire Land*E: Kakariko Village"; break;
case 562 : texte = "Hyrule Castle"; break;
case 563 : texte = "E: Kakariko Village"; break;
case 564 : texte = "W: Turtle Rock*E: Lake Hylia"; break;
case 565 : texte = "Hidden Temple**Here rests the Sword of Evils Bane, the Master Sword."; break;
case 566 : texte = "N: To the Haunted Graveyard"; break;
#ifdef __vita__
case 567 : texte = "You find the Dungeon Map!!!*Press ¾7 to see the map."; break;
#else
case 567 : texte = "You find the Dungeon Map!!!*Press P to see the map."; break;
#endif
case 568 : texte = "You find the Compass!!!*You can locate the boss and chests on the plan."; break;
case 569 : texte = "You find the Boss Key!!!"; break;
case 570 : texte = "You find a small key!!!*Go near a door to open it."; break;
#ifdef __vita__
case 571 : texte = "You find the Gloves!!!*Use them to lift some object setting them up or pressing ¾3."; break;
#else
case 571 : texte = "You find the Gloves!!!*Use them to lift some object setting them up or pressing C."; break;
#endif
case 572 : texte = "You find a Magic Crystal!!!"; break;
case 573 : texte = "For what may it be used...?"; break;
case 574 : texte = "There are "+s+" left to find!!!"; break;
case 575 : texte = "Only 2 left to find!!!"; break;
case 576 : texte = "You lack only one!!!"; break;
case 577 : texte = "You have all the crystals, run to the castle and save Zelda!!!"; break;
case 580 : texte = "You find the Hookshot!!!*Use it to overcome obstacles."; break;
case 581 : texte = "You find the Lantern!!!*Use it to shut up flames."; break;
case 582 : texte = "You find the Flippers!!!*Set them up to go in the water."; break;
case 583 : texte = "You find the Magic Hammer!!!*Use it to squash obstacles."; break;
case 584 : texte = "You find the Fire Rod!!!*From now on you are able to shoot out powerful flames."; break;
case 585 : texte = "You find the Ice Rod!!!*Use it to freeze anything from a distance."; break;
case 586 : texte = "You find the Master Sword!!!*Even Ganon could not stand up to its power!!! (in theory)"; break;
case 587 : texte = "Congratulation Link, you have succeeded in saving me!!!***Let's find Ganon quickly, we have to reclaim the Triforce!"; break;
case 589 : texte = "The secret passage behind the throne room leads to Ganon. Hurry up!"; break;
case 590 : texte = "We are very near, follow me!"; break;
case 591 : texte = "I'm afraid you are not able to defeat Ganon with your present weapons...*Go and speak to the chief of the village Kakariko, I am sure he will find a solution."; break;
case 592 : texte = "Ganon is just behind that door, I will cure your wounds."; break;
case 593 : texte = "Ganon is still somewhere in the castle."; break;
case 594 : texte = "You should wait princess Zelda!!!"; break;
case 595 : texte = "Wouldn't you have the spooky feeling to forget someone by any chance???"; break;
case 596 : texte = "Zelda is waiting for you!!!"; break;
case 597 : texte = "You find the Triforce!!!"; break;
case 598 : texte = "You find the book of Mudora!!!**From now on, you understand the ancient Hylian!!!"; break;
case 599 : texte = "Congratulation Link, for finding me. As a reward, I give you the Din Pendent, it raises your defense by one point."; break;
case 600 : texte = "Congratulation Link, for finding me. As a reward, I give you the Nayru Pendent, it rises your defense by two points!!!"; break;
case 601 : texte = "..."; break;
case 602 : texte = "You obtain a magic pendent!!!**Your defense just raised!!!"; break;
case 603 : texte = "Congratulation Link, for finding me. As a reward, I will double the busload of your magic meter!!!"; break;
case 604 : texte = "Your magic meter is twofold!!!"; break;
case 605 : texte = "Come back when you have an empty bottle and I will sell you a red potion which restores energy."; break;
case 606 : texte = "A red potion for 60 rupees, are you interested?* YES ? no "; break;
case 607 : texte = "A red potion for 60 rupees, are you interested?* yes NO ?"; break;
case 608 : texte = "Thank you, here is your potion.";break;
case 609 : texte = "You get a red potion!!!*Drink it to restore your energy!!!"; break;
case 610 : texte = "You get a green potion!!!*Drink it to restore your magic!!!"; break;
case 611 : texte = "You get a blue potion!!!*Drink it to restore your energy and your magic!!!"; break;
case 612 : texte = "Hello, what would you like to drink?"; break;
case 613 : texte = "-Hiccup!- A fairy is said to give enchanted objects... -Hiccup!- ...to the adventurers who would find her... -Hiccup!!!-"; break;
case 614 : texte = "One heart for 10 rupees, ok?** YES ? no "; break;
case 615 : texte = "One heart for 10 rupees, ok?** yes NO ?"; break;
case 616 : texte = "A little bit of magic for 20 rupees, ok?** YES ? no "; break;
case 617 : texte = "A little bit of magic for 20 rupees, ok?** yes NO ?"; break;
case 618 : texte = "Some magic for 30 rupees, ok?** YES ? no "; break;
case 619 : texte = "Some magic for 30 rupees, ok?** yes NO ?"; break;
case 620 : texte = "5 arrows for 30 rupees, ok?** YES ? no "; break;
case 621 : texte = "5 arrows for 30 rupees, ok?** yes NO ?"; break;
case 622 : texte = "One bomb for 30 rupees, ok?** YES ? no "; break;
case 623 : texte = "One bomb for 30 rupees, ok?** yes NO ?"; break;
case 624 : texte = "One bow for 1000 rupees, ok?** YES ? no "; break;
case 625 : texte = "One bow for 1000 rupees, ok?** yes NO ?"; break;
case 626 : texte = "One bow for 50 rupees, ok?** YES ? no "; break;
case 627 : texte = "One bow for 50 rupees, ok?** yes NO ?"; break;
case 628 : texte = "You don't need this right now."; break;
case 629 : texte = "Thank you."; break;
case 630 : texte = "You get the bow!!!*Use it to reach a distant target."; break;
case 631 : texte = "Choose what you want."; break;
case 632 : texte = "What???*You are in mission for the chief???*Okay, so I'm going to give you a discount for the bow"; break;
case 633 : texte = "Hello Link, I am the chief of that village, I suspected you were coming."; break;
case 634 : texte = "Since this morning, monsters stride along Hyrule, I tried to talk about that with Zelda, but as you perhaps already saw, a powerful spell blocks the access to the castle..."; break;
case 636 : texte = "You say Ganon is responsible for all of that? He stole the Triforce and he holds the princess Zelda captive?"; break;
case 637 : texte = "Mmmm... The situation is more serious than I thought..."; break;
case 638 : texte = "We have to act very quickly, you must face Ganon again!"; break;
case 639 : texte = "How to go in the castle? I may have an idea..."; break;
case 640 : texte = "As you know, the power of the 7 wise men was locked in 7 crystals by wizard Aghanim when he was trying to open up the path to the Dark World, where Ganon was."; break;
case 641 : texte = "Yet, even if you raised the descendants of the 7 wise men from death after you defeated Ganon and found the Triforce, these crystals have kept their power."; break;
case 642 : texte = "They have been hidden deep in the 7 temples, gather them all, and you'll be able to get over Ganon's spell."; break;
case 643 : texte = "However that won't be easy, Ganon will surely send his best units to protect these crystals..."; break;
case 644 : texte = "A last thing, you won't go far with your present equipment. Go and see the arms dealer and tell him that you're coming on my behalf. He will probably make a gesture for you."; break;
case 645 : texte = "Go and see the arms dealer and tell him that you're coming on my behalf. He will probably make a gesture for you."; break;
case 646 : texte = "You have to gather the 7 crystals to have a chance to save Zelda and Hyrule..."; break;
case 647 : texte = "You found the 7 crystals? So go right now to the castle, first you have to deliver the princess, she will know better than I how to save Hyrule."; break;
case 648 : texte = "Your weapons are null and void against Ganon? Therefore, you have to find the Master Sword. It is said to have been concealed in a hidden temple.*Besides, the way leading to the Sword of Evils Bane is said to cross over a village populated by monsters...*I wonder if such a village exists..."; break;
case 650 : texte = "However, I'm afraid that your present equipment is inadequate to reach this temple, you may go to see the blacksmith of Gerudo village..."; break;
case 651 : texte = "It's about time to brave Ganon and take the Triforce back!"; break;
case 652 : texte = "Hey! You have to pay to open one of my chests!!!"; break;
case 653 : texte = "One of these chests contains a piece of heart, do you want to try for 10 rupees?*You will be allowed to open just one chest, ok? YES ? no "; break;
case 654 : texte = "One of these chests contains a piece of heart, do you want to try for 10 rupees?*You will be allowed to open just one chest, ok? yes NO ?"; break;
case 655 : texte = "Choose a chest."; break;
case 656 : texte = "I don't have anymore prizes to bring into play, sorry."; break;
case 657 : texte = "You lose! This chest is empty. Try again!"; break;
case 658 : texte = "Hello! If you are looking for the blacksmith, he lives a little farther."; break;
case 659 : texte = "Hello Link, I am the chief of this village.*You should go to see the blacksmith and show him what you want him to temper in your equipment."; break;
case 660 : texte = "I have been informed of your quest, so I have arranged it with him.*All will be free for you."; break;
case 661 : texte = "You don't need to drink this potion now."; break;
case 662 : texte = "A green potion for 40 rupees, are you interested?* YES ? no "; break;
case 663 : texte = "A green potion for 40 rupees, are you interested?* yes NO ?"; break;
case 664 : texte = "Come back when you have an empty bottle and I will sell you a green potion which restores magic."; break;
case 665 : texte = "Come back later, I am overbooked!"; break;
case 666 : texte = "May I do something for you?"; break;
case 667 : texte = "Do you want me to temper your sword?** YES ? no "; break;
case 668 : texte = "Do you want me to temper your sword?** yes NO ?"; break;
case 669 : texte = "Your sword triples in power and you can now throw some magic attack, so good!!!*"; break;
case 670 : texte = "Do you want me to upgrade your gloves?** YES ? no "; break;
case 671 : texte = "Do you want me to upgrade your gloves?** yes NO ?"; break;
case 672 : texte = "The power of your gloves helps you to lift heavy rocks."; break;
case 673 : texte = "Do you want me to upgrade your bow?** YES ? no "; break;
case 674 : texte = "Do you want me to upgrade your bow?** yes NO ?"; break;
case 675 : texte = "Your bow now shoots silver arrows with a cataclysmic power!!!"; break;
case 676 : texte = "Come back when you have an empty bottle and I will sell you a blue potion which restores energy and magic."; break;
case 677 : texte = "A blue potion for 160 rupees, are you interested?* YES ? no "; break;
case 678 : texte = "A blue potion for 160 rupees, are you interested?* yes NO ?"; break;
case 679 : texte = "Our village has been constituted in the aim to stop careless adventurers from reaching the temple, I don't allow just anyone to pass."; break;
case 680 : texte = "Mmmm... You already found 4 crystals?*I have got to admit you impress me..."; break;
case 681 : texte = "All right, you are allowed to cross over the graveyard, at your own risk."; break;
case 682 : texte = "Talk to the guard at the north of the village, he will let you pass."; break;
case 683 : texte = "I see you're still alive...*Surprising."; break;
case 684 : texte = "The dark temple is the starting point of the way reaching a legendary object. This village just exists to dissuade adventurers from approaching."; break;
case 685 : texte = "So you found the Sword?*But don't believe it is yours for all that."; break;
case 686 : texte = "The Master Sword is among the most treasured heritage of Hyrule with the Triforce, you will have to bring it back in his sanctuary when your mission is completed."; break;
case 687 : texte = "All the inhabitants of this village are spirits who responded to princess Zelda's call."; break;
case 688 : texte = "When you returned peace to Hyrule and reunified the Light World with the Golden Land, Zelda secretly asked volunteer spirits to create this village to block"; break;
case 689 : texte = "the access to a very high valued object."; break;
case 690 : texte = "Welcome Link!*Let me explain to you what I am doing here."; break;
case 691 : texte = "As you certainly have noticed, monsters appeared in Hyrule. It's the first time I can see monsters since your victory on Ganon."; break;
case 692 : texte = "Well, I have decided to list all of them."; break;
case 693 : texte = "Unfortunately, I'm really too fearful to meet them, so I need your help."; break;
case 694 : texte = "You have to fight each kind of monster and come to give me your report."; break;
case 695 : texte = "Each time you have defeated 7 new kinds of enemies, I will give you one piece of heart."; break;
#ifdef __vita__
case 696 : texte = "If you want to see what enemies you've already defeated, press ¾6"; break;
#else
case 696 : texte = "If you want to see what enemies you've already defeated, press M."; break;
#endif
case 697 : texte = "Again "+s+" different enemies before the next reward."; break;
case 698 : texte = "You just lack only one enemy before the next reward!!!"; break;
case 699 : texte = "Take this gift for your contribution on my project:"; break;
case 700 : texte = "I'm sorry, but I don't have a gift for you anymore..."; break;
case 701 : texte = "I can't take it in, you succeeded in defeating all kinds of enemies!!!*Congratulation Link!!!"; break;
case 702 : texte = " Level 1:** Forest Temple"; break;
case 703 : texte = " Level 2:** Water Temple"; break;
case 704 : texte = " Level 3:** Mountain Temple"; break;
case 705 : texte = " Level 4:** Desert Temple"; break;
case 706 : texte = " Level 5:** Dark Temple"; break;
case 707 : texte = " Level 6:** Fire Temple"; break;
case 708 : texte = " Level 7:** Ice Temple"; break;
case 709 : texte = " Level ?:** Hidden Temple"; break;
case 710 : texte = " Last Level:** Hyrule Castle"; break;
case 711 :texte = " Already tired? ? CONTINUE ? Save and quit Quit without saving "; break;
case 712 :texte = " Already tired? Continue ? SAVE AND QUIT ? Quit without saving "; break;
case 713 :texte = " Already tired? Continue Save and quit ? QUIT WITHOUT SAVING ?"; break;
case 714 : texte = "At the right time when Link touched the Triforce, monsters disappeared and peace recurred.**Then Princess Zelda made a great decision: she touched in turn the Triforce and made her wish.**Triforce had always been the origin of troubles in the Kingdom, sooner or later, another evil creature would find it.**Just when princess touched the relic, it disappeared from Hyrule forever."; break;
case 715 : texte = "Since this day, Hyrule people have lived in peace, without fear of new disasters.**Thus the legend of Zelda, of the Triforce and of the Golden Land is achieved.**Master Sword is said to rest safely somewhere and to be the last heirloom of Link's quest..."; break;
case 716 : texte = "Congratulation Link, for finding me. As a reward, I give you the Farore Pendent, it raises your defense by one point..."; break;
case 717 : texte = "Do you want to save your game?** ? YES ?* no "; break;
case 718 : texte = "Do you want to save your game?** yes * ? NO ?"; break;
case 719 : texte = "Game saved."; break;
case 720 : texte = "The Kingdom of Hyrule has been in peace since Link, the last knight of Hyrule, had defeated the malicious Ganon and reclaimed the precious Triforce to him."; break;
case 721 : texte = "Nobody knows what Link's wish to the Triforce was, but it had the effect of reunifying the Light and Dark World, and upraising the 7 wise men's descendants."; break;
case 722 : texte = "Next, Link handed Triforce and Master Sword over to Princess Zelda, and people started to believe that peace would last.*But the people were wrong..."; break;
case 723 : texte = "Unfortunately, Link's wish also had negative effects. Ganon and his henchmen were resurrected and got ready to attack."; break;
case 724 : texte = "Somewhere in Hyrule Forest, Link is sleeping without suspecting that Ganon has already moved into the attack, until a";
case 725 : texte = "well-known voice talk to him during his sleep..."; break;
case 726 : texte = "Help me!*Help me!*That's me! Zelda!*I'm talking to you by telepathy."; break;
case 727 : texte = "I am a prisoner in the dungeon of the castle!*I need your help!*Ganon is back, and he surely has already found the Triforce..."; break;
case 728 : texte = "Come quickly to the castle Link, you are my only hope..."; break;
case 729 : texte = "HELP: Press Select to consult help."; break;
default :
texte = "TEXT ERROR";
}
return texte;
}
std::string Texte::getTexteFR(int id, std::string s){
std::string texte = "";
switch(id) {
// 0 -> 99 : Carte
case 0 :
texte = "Temple de la forêt";
break;
case 1 :
texte = "Temple de l'eau";
break;
case 2 :
texte = "Temple de la montagne";
break;
case 3 :
texte = "Temple du désert";
break;
case 4 :
texte = "Temple de l'ombre";
break;
case 5 :
texte = "Temple du feu";
break;
case 6 :
texte = "Temple de la glace";
break;
case 7 :
texte = "Temple secret";
break;
case 8 :
texte = "Château d'Hyrule";
break;
// 100 -> 199 : Encyclopedie
case 100 :
texte = "MONSTRES " + s;
break;
// 200 -> 299 : Generique
case 200 :
texte = "ECRAN DE SELECTION";
break;
case 201 :
texte = "1.";
break;
case 202 :
texte = "2.";
break;
case 203 :
texte = "3.";
break;
case 204 :
texte = "OPTIONS";
break;
case 205 :
texte = "RECORDS";
break;
case 206 :
texte = "OPTIONS";
break;
case 207 :
texte = "MUSIQUE";
break;
case 208 :
texte = "SON";
break;
case 209 :
texte = "RETOUR";
break;
case 210 :
texte = "RECORDS";
break;
case 211 :
texte = "MEILLEUR TEMPS : " + s;
break;
case 212 :
texte = "RANG DES 100%";
break;
case 213 :
texte = "RANG ULTIME";
break;
case 214 :
texte = "RANG DE RAPIDITE";
break;
case 215 :
texte = "RETOUR";
break;
case 216 :
texte = "EFFACER";
break;
case 217 :
texte = "EFFACER ?";
break;
case 218 :
texte = "OUI";
break;
case 219 :
texte = "NON";
break;
case 220 :
texte = "CHARGER";
break;
case 221 :
texte = "EFFACER";
break;
case 222 :
texte = "ANNULER";
break;
case 223 :
texte = "AIDE 1/2";
break;
case 224 :
#ifdef __vita__
texte = "Retour au jeu : ¾3 - Suite : ¾5";
#else
texte = "Retour au jeu : Entrée - Suite : Droite";
#endif
break;
case 225 :
#ifdef __vita__
texte = "Lire / Ouvrir / Parler : ¾2";
#else
texte = "Lire / Ouvrir / Parler : Espace";
#endif
break;
case 226 :
#ifdef __vita__
texte = "Valider / Passer texte : ¾3";
#else
texte = "Valider / Passer texte : Entrée";
#endif
break;
case 227 :
#ifdef __vita__
texte = "Déplacer Link : ¾9 Gauche";
#else
texte = "Déplacer Link : Flèches de direction";
#endif
break;
case 228 :
#ifdef __vita__
texte = "Courir : L (maintenu) / R";
#else
texte = "Courir : Shift maintenu ou Caps lock";
#endif
break;
case 229 :
#ifdef __vita__
texte = "Coup d'épée : ¾4";
#else
texte = "Coup d'épée : W ou Z";
#endif
break;
case 230 :
#ifdef __vita__
texte = "Attaque Tornade : ¾4 maintenu puis lâché";
#else
texte = "Attaque Tornade : W ou Z maintenu puis lâché";
#endif
break;
case 231 :
#ifdef __vita__
texte = "Menu de sélection d'objet : ¾5";
#else
texte = "Menu de sélection d'objet : Entrée";
#endif
break;
case 232 :
#ifdef __vita__
texte = "Utiliser l'objet sélectionné : ¾1";
#else
texte = "Utiliser l'objet sélectionné : X";
#endif
break;
case 233 :
#ifdef __vita__
texte = "Porter sans équiper les gants : ¾3";
#else
texte = "Porter sans équiper les gants : C";
#endif
break;
case 234 :
#ifdef __vita__
texte = "Afficher la carte : ¾7 (ext/donjons)";
#else
texte = "Afficher la carte : P (dans les donjons)";
#endif
break;
case 235 :
#ifdef __vita__
texte = "Afficher la carte : L (ext/donjons)";
#else
texte = "Afficher la carte : P (dans les donjons)";
#endif
break;
case 236 :
#ifdef __vita__
texte = "Afficher les monstres vaincus : ¾6";
#else
texte = "Afficher les monstres vaincus : M";
#endif
break;
case 237 :
#ifdef __vita__
texte = "Regarder autour : ¾9 Droite";
#else
texte = "Regarder autour : Ctrl et direction";
#endif
break;
case 238 :
#ifdef __vita__
texte = "Sauvegarder / Quitter : Start";
#else
texte = "Sauvegarder / Quitter : Echap";
#endif
break;
case 239 :
#ifdef __vita__
texte = "";
#else
texte = "Agrandir / Rétrécir : Ctrl et Entrée";
#endif
break;
case 240 :
texte = "AIDE 2/2";
break;
case 241 :
#ifdef __vita__
texte = "Retour au jeu : ¾3 - Précédent : ¾7";
#else
texte = "Retour au jeu : Entrée - Précédent : Gauche";
#endif
break;
case 242 :
#ifdef __vita__
texte = "Utilise objet sélectionné: ¾1";
#else
texte = "Utilise objet sélectionné: X";
#endif
break;
case 243 :
#ifdef __vita__
texte = "Porter sans équiper les gants : ¾3";
#else
texte = "Porter sans équiper les gants : C";
#endif
break;
case 244 :
#ifdef __vita__
texte = "Afficher la carte : ¾7 (ext/donjon)";
#else
texte = "Afficher la carte : P (extérieur ou donjons)";
#endif
break;
case 245 :
#ifdef __vita__
texte = "Afficher la carte : ¾7 (dans les donjons)";
#else
texte = "Afficher la carte : P (dans les donjons)";
#endif
break;
case 246 :
#ifdef __vita__
texte = "Afficher les monstres vaincus : ¾6";
#else
texte = "Afficher les monstres vaincus : M";
#endif
break;
case 247 :