-
Notifications
You must be signed in to change notification settings - Fork 0
/
emessages.cpp
executable file
·994 lines (830 loc) · 61.2 KB
/
emessages.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
#include "emessages.h"
#include <fstream>
#include "egamedir.h"
#include "eloadtexthelper.h"
#include "estringhelpers.h"
#include "characters/gods/egod.h"
#include "characters/heroes/ehero.h"
#include "characters/monsters/emonster.h"
eMessages eMessages::instance;
void eMessages::load(eGodMessages& god, const std::string& godName) {
god.fWooing0.fFull.fTitle = fMessages["PHRASE_" + godName + "_wooing0_title"];
god.fWooing0.fFull.fText = fMessages["PHRASE_" + godName + "_wooing0_initial_announcement"];
god.fWooing0.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + godName + "_wooing0_title"];
god.fWooing0.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + godName + "_wooing0_initial_announcement"];
god.fJealousy1.fFull.fTitle = fMessages["PHRASE_" + godName + "_jealousy1_title"];
god.fJealousy1.fFull.fText = fMessages["PHRASE_" + godName + "_jealousy1_initial_announcement"];
god.fJealousy1.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + godName + "_jealousy1_title"];
god.fJealousy1.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + godName + "_jealousy1_initial_announcement"];
god.fJealousy2.fFull.fTitle = fMessages["PHRASE_" + godName + "_jealousy2_title"];
god.fJealousy2.fFull.fText = fMessages["PHRASE_" + godName + "_jealousy2_initial_announcement"];
god.fJealousy2.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + godName + "_jealousy2_title"];
god.fJealousy2.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + godName + "_jealousy2_initial_announcement"];
god.fInvades.fFull.fTitle = fMessages["PHRASE_" + godName + "_invades_title"];
god.fInvades.fFull.fText = fMessages["PHRASE_" + godName + "_invades_city_attacked_alert"];
god.fInvades.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + godName + "_invades_title"];
god.fInvades.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + godName + "_invades_initial_announcement"];
god.fHelps.fFull.fTitle = fMessages["PHRASE_" + godName + "_help_title"];
god.fHelps.fFull.fText = fMessages["PHRASE_" + godName + "_help_initial_announcement"];
god.fHelps.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + godName + "_help_title"];
god.fHelps.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + godName + "_help_initial_announcement"];
god.fHelps.fReason = fMessages["PHRASE_" + godName + "_help_reason"];
god.fMonster.fFull.fTitle = fMessages["PHRASE_" + godName + "_unleashes_monster_title"];
god.fMonster.fFull.fText = fMessages["PHRASE_" + godName + "_unleashes_monster_city_attacked_alert"];
god.fMonster.fNoReason = fMessages["PHRASE_" + godName + "_unleashes_monster_no_reason"];
eStringHelpers::replaceAll(god.fMonster.fFull.fText, "[reason_phrase]", god.fMonster.fNoReason);
god.fMonster.fReason = fMessages["PHRASE_" + godName + "_unleashes_monster_reason"];
god.fMonster.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + godName + "_unleashes_monster_title"];
god.fMonster.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + godName + "_unleashes_monster_city_attacked_alert"];
god.fQuest1.fQuest.fFull.fTitle = fMessages["PHRASE_" + godName + "_quest_title"];
god.fQuest1.fQuest.fFull.fText = fMessages["PHRASE_" + godName + "_quest_initial_announcement"];
god.fQuest1.fQuest.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + godName + "_quest_title"];
god.fQuest1.fQuest.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + godName + "_quest_initial_announcement"];
god.fQuest1.fQuest.fNoReason = fMessages["PHRASE_" + godName + "_quest_no_reason"];
god.fQuest1.fQuest.fReason = fMessages["PHRASE_" + godName + "_quest_reason"];
god.fQuest1.fFulfilled.fFull.fTitle = fMessages["PHRASE_" + godName + "_quest_fulfilled_title"];
god.fQuest1.fFulfilled.fFull.fText = fMessages["PHRASE_" + godName + "_quest_fulfilled_initial_announcement"];
god.fQuest1.fFulfilled.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + godName + "_quest_fulfilled_title"];
god.fQuest1.fFulfilled.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + godName + "_quest_fulfilled_initial_announcement"];
god.fQuest1.fFulfilled.fNoReason = fMessages["PHRASE_" + godName + "_quest_fulfilled_no_reason"];
god.fQuest1.fFulfilled.fReason = fMessages["PHRASE_" + godName + "_quest_fulfilled_reason"];
god.fQuest2.fQuest.fFull.fTitle = fMessages["PHRASE_" + godName + "_quest2_title"];
god.fQuest2.fQuest.fFull.fText = fMessages["PHRASE_" + godName + "_quest2_initial_announcement"];
god.fQuest2.fQuest.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + godName + "_quest2_title"];
god.fQuest2.fQuest.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + godName + "_quest2_initial_announcement"];
god.fQuest2.fQuest.fNoReason = fMessages["PHRASE_" + godName + "_quest2_no_reason"];
god.fQuest2.fQuest.fReason = fMessages["PHRASE_" + godName + "_quest2_reason"];
god.fQuest2.fFulfilled.fFull.fTitle = fMessages["PHRASE_" + godName + "_quest2_fulfilled_title"];
god.fQuest2.fFulfilled.fFull.fText = fMessages["PHRASE_" + godName + "_quest2_fulfilled_initial_announcement"];
god.fQuest2.fFulfilled.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + godName + "_quest2_fulfilled_title"];
god.fQuest2.fFulfilled.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + godName + "_quest2_fulfilled_initial_announcement"];
god.fQuest2.fFulfilled.fNoReason = fMessages["PHRASE_" + godName + "_quest2_fulfilled_no_reason"];
god.fQuest2.fFulfilled.fReason = fMessages["PHRASE_" + godName + "_quest2_fulfilled_reason"];
god.fSanctuaryComplete.fFull.fTitle = fMessages["PHRASE_" + godName + "_sanctuary_complete_title"];
god.fSanctuaryComplete.fFull.fText = fMessages["PHRASE_" + godName + "_sanctuary_complete_initial_announcement"];
god.fSanctuaryComplete.fCondensed.fTitle = fMessages["PHRASE_" + godName + "_sanctuary_complete_title"];
god.fSanctuaryComplete.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + godName + "_sanctuary_complete_initial_announcement"];
god.fDisaster.fFull.fTitle = fMessages["PHRASE_" + godName + "_disaster_title"];
god.fDisaster.fFull.fText = fMessages["PHRASE_" + godName + "_disaster_initial_announcement"];
god.fDisaster.fCondensed.fTitle = fMessages["PHRASE_" + godName + "_disaster_title"];
god.fDisaster.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + godName + "_disaster_initial_announcement"];
god.fDisasterEnds.fFull.fTitle = fMessages["PHRASE_" + godName + "_disaster_ends_title"];
god.fDisasterEnds.fFull.fText = fMessages["PHRASE_" + godName + "_disaster_ends_initial_announcement"];
god.fDisasterEnds.fCondensed.fTitle = fMessages["PHRASE_" + godName + "_disaster_ends_title"];
god.fDisasterEnds.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + godName + "_disaster_ends_initial_announcement"];
}
void eMessages::load(eHeroMessages& hero, const std::string& heroName) {
hero.fArrival.fFull.fTitle = fMessages["PHRASE_" + heroName + "_arrives_title"];
hero.fArrival.fFull.fText = fMessages["PHRASE_" + heroName + "_arrives_initial_announcement"];
hero.fArrival.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + heroName + "_arrives_title"];
hero.fArrival.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + heroName + "_arrives_initial_announcement"];
hero.fHallAvailable.fFull.fTitle = fMessages["PHRASE_" + heroName + "_hall_available_title"];
hero.fHallAvailable.fNoReason = fMessages["PHRASE_" + heroName + "_hall_available_no_reason"];
hero.fHallAvailable.fFull.fText = fMessages["PHRASE_" + heroName + "_hall_available_initial_announcement"];
hero.fHallAvailable.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + heroName + "_hall_available_title"];
hero.fHallAvailable.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + heroName + "_hall_available_initial_announcement"];
}
void eMessages::load(eMonsterMessages& monster,
const std::string& monsterName1,
const std::string& monsterName2) {
monster.fSlain.fFull.fTitle = fMessages["PHRASE_" + monsterName2 + "_slain_title"];
monster.fSlain.fFull.fText = fMessages["PHRASE_" + monsterName2 + "_slain_initial_announcement"];
monster.fSlain.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + monsterName2 + "_slain_title"];
monster.fSlain.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + monsterName2 + "_slain_initial_announcement"];
monster.fSlainReason = fMessages["PHRASE_" + monsterName1 + "_slain_reason"];
monster.fPrediction.fFull.fTitle = fMessages["PHRASE_independent_" + monsterName2 + "_invades_title"];
monster.fPrediction.fFull.fText = fMessages["PHRASE_independent_" + monsterName2 + "_invades_oracle_prediction"];
monster.fPrediction.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_independent_" + monsterName2 + "_invades_title"];
monster.fPrediction.fCondensed.fText = fMessages["PHRASE_CONDENSED_independent_" + monsterName2 + "_invades_oracle_prediction"];
monster.fInvasion36.fFull.fTitle = fMessages["PHRASE_independent_" + monsterName2 + "_invades_title"];
monster.fInvasion36.fFull.fText = fMessages["PHRASE_independent_" + monsterName2 + "_invades_initial_announcement"];
monster.fInvasion36.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_independent_" + monsterName2 + "_invades_title"];
monster.fInvasion36.fCondensed.fText = fMessages["PHRASE_CONDENSED_independent_" + monsterName2 + "_invades_initial_announcement"];
monster.fInvasion24.fFull.fTitle = fMessages["PHRASE_independent_" + monsterName2 + "_invades_title"];
monster.fInvasion24.fFull.fText = fMessages["PHRASE_independent_" + monsterName2 + "_invades_2year_reminder"];
monster.fInvasion24.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_independent_" + monsterName2 + "_invades_title"];
monster.fInvasion24.fCondensed.fText = fMessages["PHRASE_CONDENSED_independent_" + monsterName2 + "_invades_2year_reminder"];
monster.fInvasion12.fFull.fTitle = fMessages["PHRASE_independent_" + monsterName2 + "_invades_title"];
monster.fInvasion12.fFull.fText = fMessages["PHRASE_independent_" + monsterName2 + "_invades_1year_reminder"];
monster.fInvasion12.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_independent_" + monsterName2 + "_invades_title"];
monster.fInvasion12.fCondensed.fText = fMessages["PHRASE_CONDENSED_independent_" + monsterName2 + "_invades_1year_reminder"];
monster.fInvasion6.fFull.fTitle = fMessages["PHRASE_independent_" + monsterName2 + "_invades_title"];
monster.fInvasion6.fFull.fText = fMessages["PHRASE_independent_" + monsterName2 + "_invades_6month_warning"];
monster.fInvasion6.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_independent_" + monsterName2 + "_invades_title"];
monster.fInvasion6.fCondensed.fText = fMessages["PHRASE_CONDENSED_independent_" + monsterName2 + "_invades_6month_warning"];
monster.fInvasion1.fFull.fTitle = fMessages["PHRASE_independent_" + monsterName2 + "_invades_title"];
monster.fInvasion1.fFull.fText = fMessages["PHRASE_independent_" + monsterName2 + "_invades_1month_Warning"];
monster.fInvasion1.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_independent_" + monsterName2 + "_invades_title"];
monster.fInvasion1.fCondensed.fText = fMessages["PHRASE_CONDENSED_independent_" + monsterName2 + "_invades_1month_Warning"];
monster.fInvasion.fFull.fTitle = fMessages["PHRASE_independent_" + monsterName2 + "_invades_title"];
monster.fInvasion.fFull.fText = fMessages["PHRASE_independent_" + monsterName2 + "_invades_city_attacked_alert"];
monster.fInvasion.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_independent_" + monsterName2 + "_invades_title"];
monster.fInvasion.fCondensed.fText = fMessages["PHRASE_CONDENSED_independent_" + monsterName2 + "_invades_city_attacked_alert"];
monster.fToSlainReason = fMessages["PHRASE_independent_" + monsterName2 + "_invades_reason"];
monster.fMonsterAttackReason = fMessages["PHRASE_independent_" + monsterName2 + "_invades_no_reason"];
}
void eMessages::loadGeneralRequest(
eReceiveRequestMessages& request,
const std::string& letter,
const std::string& mid) {
request.fInitial.fFull.fTitle = fMessages["PHRASE_" + mid + "_title_" + letter];
request.fInitial.fFull.fText = fMessages["PHRASE_" + mid + "_initial_announcement_" + letter];
request.fInitial.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + mid + "_title_" + letter];
request.fInitial.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + mid + "_initial_announcement_" + letter];
request.fReminder.fFull.fTitle = fMessages["PHRASE_" + mid + "_title_" + letter];
request.fReminder.fFull.fText = fMessages["PHRASE_" + mid + "_reminder_" + letter];
request.fReminder.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + mid + "_title_" + letter];
request.fReminder.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + mid + "_reminder_" + letter];
request.fOverdue.fFull.fTitle = fMessages["PHRASE_" + mid + "_title_" + letter];
request.fOverdue.fFull.fText = fMessages["PHRASE_" + mid + "_overdue_" + letter];
request.fOverdue.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + mid + "_title_" + letter];
request.fOverdue.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + mid + "_overdue_" + letter];
request.fWarning.fFull.fTitle = fMessages["PHRASE_" + mid + "_title_" + letter];
request.fWarning.fFull.fText = fMessages["PHRASE_" + mid + "_warning_" + letter];
request.fWarning.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + mid + "_title_" + letter];
request.fWarning.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + mid + "_warning_" + letter];
request.fComply.fFull.fTitle = fMessages["PHRASE_" + mid + "_title_" + letter];
request.fComply.fFull.fText = fMessages["PHRASE_" + mid + "_comply_reason_" + letter];
request.fComply.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + mid + "_title_" + letter];
request.fComply.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + mid + "_comply_reason_" + letter];
request.fTooLate.fFull.fTitle = fMessages["PHRASE_" + mid + "_title_" + letter];
request.fTooLate.fFull.fText = fMessages["PHRASE_" + mid + "_too_late_reason_" + letter];
request.fTooLate.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + mid + "_title_" + letter];
request.fTooLate.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + mid + "_too_late_reason_" + letter];
request.fRefuse.fFull.fTitle = fMessages["PHRASE_" + mid + "_title_" + letter];
request.fRefuse.fFull.fText = fMessages["PHRASE_" + mid + "_refuse_reason_" + letter];
request.fRefuse.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + mid + "_title_" + letter];
request.fRefuse.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + mid + "_refuse_reason_" + letter];
request.fEarlyReason.fFull = fMessages["PHRASE_" + mid + "_early_reason_" + letter];
request.fComplyReason.fFull = fMessages["PHRASE_" + mid + "_comply_reason_" + letter];
request.fTooLateReason.fFull = fMessages["PHRASE_" + mid + "_too_late_reason_" + letter];
request.fRefuseReason.fFull = fMessages["PHRASE_" + mid + "_refuse_reason_" + letter];
request.fEarlyReason.fCondensed = fMessages["PHRASE_CONDENSED_" + mid + "_early_reason_" + letter];
request.fComplyReason.fCondensed = fMessages["PHRASE_CONDENSED_" + mid + "_comply_reason_" + letter];
request.fTooLateReason.fCondensed = fMessages["PHRASE_CONDENSED_" + mid + "_too_late_reason_" + letter];
request.fRefuseReason.fCondensed = fMessages["PHRASE_CONDENSED_" + mid + "_refuse_reason_" + letter];
}
void eMessages::loadResourceGranted(eResourceGrantedMessages& granted,
const std::string& name) {
granted.fGranted.fFull.fTitle = fMessages["PHRASE_" + name + "_title"];
granted.fGranted.fFull.fText = fMessages["PHRASE_" + name + "_granted"];
granted.fGranted.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + name + "_title"];
granted.fGranted.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + name + "_granted"];
granted.fCashGranted.fFull.fTitle = fMessages["PHRASE_" + name + "_title"];
granted.fCashGranted.fFull.fText = fMessages["PHRASE_" + name + "_cash_granted"];
granted.fCashGranted.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + name + "_title"];
granted.fCashGranted.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + name + "_cash_granted"];
granted.fPartialSpace.fFull.fTitle = fMessages["PHRASE_" + name + "_title"];
granted.fPartialSpace.fFull.fText = fMessages["PHRASE_" + name + "_partial_space"];
granted.fPartialSpace.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + name + "_title"];
granted.fPartialSpace.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + name + "_partial_space"];
granted.fInsufficientSpace.fFull.fTitle = fMessages["PHRASE_" + name + "_title"];
granted.fInsufficientSpace.fFull.fText = fMessages["PHRASE_" + name + "_insufficient_space"];
granted.fInsufficientSpace.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + name + "_title"];
granted.fInsufficientSpace.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + name + "_insufficient_space"];
granted.fLastChance.fFull.fTitle = fMessages["PHRASE_" + name + "_title"];
granted.fLastChance.fFull.fText = fMessages["PHRASE_" + name + "_last_chance"];
granted.fLastChance.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + name + "_title"];
granted.fLastChance.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + name + "_last_chance"];
granted.fForfeited.fFull.fTitle = fMessages["PHRASE_" + name + "_title"];
granted.fForfeited.fFull.fText = fMessages["PHRASE_" + name + "_forfeited"];
granted.fForfeited.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + name + "_title"];
granted.fForfeited.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + name + "_forfeited"];
granted.fAccepted.fFull.fTitle = fMessages["PHRASE_" + name + "_title"];
granted.fAccepted.fFull.fText = fMessages["PHRASE_" + name + "_accepted"];
granted.fAccepted.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + name + "_title"];
granted.fAccepted.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + name + "_accepted"];
granted.fCashAccepted.fFull.fTitle = fMessages["PHRASE_" + name + "_title"];
granted.fCashAccepted.fFull.fText = fMessages["PHRASE_" + name + "_cash_accepted"];
granted.fCashAccepted.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + name + "_title"];
granted.fCashAccepted.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + name + "_cash_accepted"];
granted.fPostponed.fFull.fTitle = fMessages["PHRASE_" + name + "_title"];
granted.fPostponed.fFull.fText = fMessages["PHRASE_" + name + "_postponed"];
granted.fPostponed.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + name + "_title"];
granted.fPostponed.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + name + "_postponed"];
granted.fRefused.fFull.fTitle = fMessages["PHRASE_" + name + "_title"];
granted.fRefused.fFull.fText = fMessages["PHRASE_" + name + "_refused"];
granted.fRefused.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_" + name + "_title"];
granted.fRefused.fCondensed.fText = fMessages["PHRASE_CONDENSED_gift_refused"];
}
void eMessages::loadMessage(eMessageType& m,
const std::string& titleKey,
const std::string& textKey) {
m.fFull.fTitle = fMessages["PHRASE_" + titleKey];
m.fFull.fText = fMessages["PHRASE_" + textKey];
m.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + titleKey];
m.fCondensed.fText = fMessages["PHRASE_CONDENSED_" + textKey];
}
void eMessages::loadReason(eReason& r,
const std::string& key) {
r.fFull = fMessages["PHRASE_" + key];
r.fCondensed = fMessages["PHRASE_CONDENSED_" + key];
}
void eMessages::load(eTroopsRequestedMessages& troops,
const std::string& name,
const std::string& letter) {
loadMessage(troops.fInitialAnnouncement,
name + "_under_attack_title_" + letter,
name + "_under_attack_initial_announcement_" + letter);
loadMessage(troops.fFirstReminder,
name + "_under_attack_title_" + letter,
name + "_under_attack_first_reminder_" + letter);
loadMessage(troops.fLastReminder,
name + "_under_attack_title_" + letter,
name + "_under_attack_last_reminder_" + letter);
loadReason(troops.fEarlyReason,
name + "_under_attack_early_reason_" + letter);
loadReason(troops.fComplyReason,
name + "_under_attack_comply_reason_" + letter);
loadReason(troops.fTooLateReason,
name + "_under_attack_too_late_reason_" + letter);
loadReason(troops.fRefuseReason,
name + "_under_attack_refuse_reason_" + letter);
loadReason(troops.fLostBattleReason,
name + "_under_attack_lost_battle_reason_" + letter);
if(name == "parentcity") {
loadMessage(troops.fConquered,
"parent_city_falls_title",
"parent_city_falls_initial_announcement");
} else {
loadMessage(troops.fConquered,
name + "_conquered_by_rival_title",
name + "_conquered_by_rival_initial_announcement");
}
}
bool eMessages::loadImpl() {
if(mLoaded) return false;
mLoaded = true;
const std::string path = eGameDir::path("Model/Zeus eventmsg.txt");
eLoadTextHelper::load(path, fMessages);
fPop100.fFull.fTitle = fMessages["PHRASE_population_100_title"];
fPop100.fFull.fText = fMessages["PHRASE_population_100_initial_announcement"];
fPop100.fCondensed.fText = fMessages["PHRASE_CONDENSED_population_100_initial_announcement"];
fPop500.fFull.fTitle = fMessages["PHRASE_population_500_title"];
fPop500.fFull.fText = fMessages["PHRASE_population_500_initial_announcement"];
fPop500.fCondensed.fText = fMessages["PHRASE_CONDENSED_population_500_initial_announcement"];
fPop1000.fFull.fTitle = fMessages["PHRASE_population_1000_title"];
fPop1000.fFull.fText = fMessages["PHRASE_population_1000_initial_announcement"];
fPop1000.fCondensed.fText = fMessages["PHRASE_CONDENSED_population_1000_initial_announcement"];
fPop2000.fFull.fTitle = fMessages["PHRASE_population_2000_title"];
fPop2000.fFull.fText = fMessages["PHRASE_population_2000_initial_announcement"];
fPop2000.fCondensed.fText = fMessages["PHRASE_CONDENSED_population_2000_initial_announcement"];
fPop3000.fFull.fTitle = fMessages["PHRASE_population_3000_title"];
fPop3000.fFull.fText = fMessages["PHRASE_population_3000_initial_announcement"];
fPop3000.fCondensed.fText = fMessages["PHRASE_CONDENSED_population_3000_initial_announcement"];
fPop5000.fFull.fTitle = fMessages["PHRASE_population_5000_title"];
fPop5000.fFull.fText = fMessages["PHRASE_population_5000_initial_announcement"];
fPop5000.fCondensed.fText = fMessages["PHRASE_CONDENSED_population_5000_initial_announcement"];
fPop10000.fFull.fTitle = fMessages["PHRASE_population_10000_title"];
fPop10000.fFull.fText = fMessages["PHRASE_population_10000_initial_announcement"];
fPop10000.fCondensed.fText = fMessages["PHRASE_CONDENSED_population_10000_initial_announcement"];
fPop15000.fFull.fTitle = fMessages["PHRASE_population_15000_title"];
fPop15000.fFull.fText = fMessages["PHRASE_population_15000_initial_announcement"];
fPop15000.fCondensed.fText = fMessages["PHRASE_CONDENSED_population_15000_initial_announcement"];
fPop20000.fFull.fTitle = fMessages["PHRASE_population_20000_title"];
fPop20000.fFull.fText = fMessages["PHRASE_population_20000_initial_announcement"];
fPop20000.fCondensed.fText = fMessages["PHRASE_CONDENSED_population_20000_initial_announcement"];
fPop25000.fFull.fTitle = fMessages["PHRASE_population_25000_title"];
fPop25000.fFull.fText = fMessages["PHRASE_population_25000_initial_announcement"];
fPop25000.fCondensed.fText = fMessages["PHRASE_CONDENSED_population_25000_initial_announcement"];
fHappinessMonument.fFull.fTitle = fMessages["PHRASE_happiness_monument_title"];
fHappinessMonument.fFull.fText = fMessages["PHRASE_happiness_monument_initial_announcement"];
fHappinessMonument.fCondensed.fText = fMessages["PHRASE_CONDENSED_happiness_monument_initial_announcement"];
fFire.fFull.fTitle = fMessages["PHRASE_fire_title"];
fFire.fFull.fText = fMessages["PHRASE_fire_initial_announcement"];
fFire.fCondensed.fText = fMessages["PHRASE_CONDENSED_fire_initial_announcement"];
fCollapse.fFull.fTitle = fMessages["PHRASE_collapsed_building_title"];
fCollapse.fFull.fText = fMessages["PHRASE_collapsed_building_initial_announcement"];
fCollapse.fCondensed.fText = fMessages["PHRASE_CONDENSED_collapsed_building_initial_announcement"];
fPlagueStrikes.fFull.fTitle = fMessages["PHRASE_plague_title"];
fPlagueStrikes.fFull.fText = fMessages["PHRASE_plague_initial_announcement"];
fPlagueStrikes.fCondensed.fText = fMessages["PHRASE_CONDENSED_plague_initial_announcement"];
load(fAphrodite, "aphrodite");
load(fApollo, "apollo");
load(fAres, "ares");
load(fArtemis, "artemis");
load(fAthena, "athena");
load(fAtlas, "atlas");
load(fDemeter, "demeter");
load(fDionysus, "dionysus");
load(fHades, "hades");
load(fHephaestus, "hephaestus");
load(fHera, "hera");
load(fHermes, "hermes");
load(fPoseidon, "poseidon");
load(fZeus, "zeus");
fZeusTradeResumes.fFull.fTitle = fMessages["PHRASE_zeus_invasion_trade_resumes_title"];
fZeusTradeResumes.fFull.fText = fMessages["PHRASE_zeus_invasion_trade_resumes_initial_announcement"];
fZeusTradeResumes.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_zeus_invasion_trade_resumes_title"];
fZeusTradeResumes.fCondensed.fText = fMessages["PHRASE_CONDENSED_zeus_invasion_trade_resumes_initial_announcement"];
fPoseidonTradeResumes.fFull.fTitle = fMessages["PHRASE_poseidon_invasion_trade_resumes_title"];
fPoseidonTradeResumes.fFull.fText = fMessages["PHRASE_poseidon_invasion_trade_resumes_initial_announcement"];
fPoseidonTradeResumes.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_poseidon_invasion_trade_resumes_title"];
fPoseidonTradeResumes.fCondensed.fText = fMessages["PHRASE_CONDENSED_poseidon_invasion_trade_resumes_initial_announcement"];
fHermesTradeResumes.fFull.fTitle = fMessages["PHRASE_hermes_invasion_trade_resumes_title"];
fHermesTradeResumes.fFull.fText = fMessages["PHRASE_hermes_invasion_trade_resumes_initial_announcement"];
fHermesTradeResumes.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_hermes_invasion_trade_resumes_title"];
fHermesTradeResumes.fCondensed.fText = fMessages["PHRASE_CONDENSED_hermes_invasion_trade_resumes_initial_announcement"];
load(fAchilles, "achilles");
load(fAtalanta, "atalanta");
load(fBellerophon, "bellerophon");
load(fHercules, "hercules");
load(fJason, "jason");
load(fOdysseus, "odysseus");
load(fPerseus, "perseus");
load(fTheseus, "theseus");
load(fCalydonianBoar, "calydonian_boar", "calydonianboar");
load(fCerberus, "cerberus", "cerberus");
load(fChimera, "chimera", "chimera");
load(fCyclops, "cyclops", "cyclops");
load(fDragon, "dragon", "dragon");
load(fEchidna, "echidna", "echidna");
load(fHarpies, "harpies", "harpies");
load(fHector, "hector", "hector");
load(fHydra, "hydra", "hydra");
load(fKraken, "kraken", "kraken");
load(fMaenads, "maenads", "maenads");
load(fMedusa, "medusa", "medusa");
load(fMinotaur, "minotaur", "minotaur");
load(fScylla, "scylla", "scylla");
load(fSphinx, "sphinx", "sphinx");
load(fTalos, "talos", "talos");
fHomeGames.fBegin.fFull.fTitle = fMessages["PHRASE_home_games_begin_title"];
fHomeGames.fBegin.fFull.fText = fMessages["PHRASE_home_games_begin_initial_announcement"];
fHomeGames.fBegin.fCondensed.fText = fMessages["PHRASE_CONDENSED_home_games_begin_initial_announcement"];
fHomeGames.fNoPart.fFull.fTitle = fMessages["PHRASE_home_games_cancelled_title"];
fHomeGames.fNoPart.fFull.fText = fMessages["PHRASE_home_games_cancelled_initial_announcement"];
fHomeGames.fNoPart.fCondensed.fText = fMessages["PHRASE_CONDENSED_home_games_cancelled_initial_announcement"];
fHomeGames.fWon.fFull.fTitle = fMessages["PHRASE_home_games_conclude_title"];
fHomeGames.fWon.fFull.fText = fMessages["PHRASE_home_games_conclude_initial_announcement_won"];
fHomeGames.fWon.fCondensed.fText = fMessages["PHRASE_CONDENSED_home_games_conclude_initial_announcement_won"];
fHomeGames.fSecond.fFull.fTitle = fMessages["PHRASE_home_games_conclude_title"];
fHomeGames.fSecond.fFull.fText = fMessages["PHRASE_home_games_conclude_initial_announcement_second"];
fHomeGames.fSecond.fCondensed.fText = fMessages["PHRASE_CONDENSED_home_games_conclude_initial_announcement_second"];
fHomeGames.fLost.fFull.fTitle = fMessages["PHRASE_home_games_conclude_title"];
fHomeGames.fLost.fFull.fText = fMessages["PHRASE_home_games_conclude_initial_announcement_lost"];
fHomeGames.fLost.fCondensed.fText = fMessages["PHRASE_CONDENSED_home_games_conclude_initial_announcement_lost"];
fOlympianGames.fBegin.fFull.fTitle = fMessages["PHRASE_olympian_games_begin_title"];
fOlympianGames.fBegin.fFull.fText = fMessages["PHRASE_olympian_games_begin_initial_announcement_go"];
fOlympianGames.fBegin.fCondensed.fText = fMessages["PHRASE_CONDENSED_olympian_games_begin_initial_announcement_go"];
fOlympianGames.fNoPart.fFull.fTitle = fMessages["PHRASE_olympian_games_cant_participate_title"];
fOlympianGames.fNoPart.fFull.fText = fMessages["PHRASE_olympian_games_cant_participate_initial_announcement"];
fOlympianGames.fNoPart.fCondensed.fText = fMessages["PHRASE_CONDENSED_olympian_games_cant_participate_initial_announcement"];
fOlympianGames.fWon.fFull.fTitle = fMessages["PHRASE_olympian_games_conclude_title"];
fOlympianGames.fWon.fFull.fText = fMessages["PHRASE_olympian_games_conclude_initial_announcement_won"];
fOlympianGames.fWon.fCondensed.fText = fMessages["PHRASE_CONDENSED_olympian_games_conclude_initial_announcement_won"];
fOlympianGames.fSecond.fFull.fTitle = fMessages["PHRASE_olympian_games_conclude_title"];
fOlympianGames.fSecond.fFull.fText = fMessages["PHRASE_olympian_games_conclude_initial_announcement_second"];
fOlympianGames.fSecond.fCondensed.fText = fMessages["PHRASE_CONDENSED_olympian_games_conclude_initial_announcement_second"];
fOlympianGames.fLost.fFull.fTitle = fMessages["PHRASE_olympian_games_conclude_title"];
fOlympianGames.fLost.fFull.fText = fMessages["PHRASE_olympian_games_conclude_initial_announcement_lost"];
fOlympianGames.fLost.fCondensed.fText = fMessages["PHRASE_CONDENSED_olympian_games_conclude_initial_announcement_lost"];
fPythianGames.fBegin.fFull.fTitle = fMessages["PHRASE_pythian_games_begin_title"];
fPythianGames.fBegin.fFull.fText = fMessages["PHRASE_pythian_games_begin_initial_announcement_go"];
fPythianGames.fBegin.fCondensed.fText = fMessages["PHRASE_CONDENSED_pythian_games_begin_initial_announcement_go"];
fPythianGames.fNoPart.fFull.fTitle = fMessages["PHRASE_pythian_games_cant_participate_title"];
fPythianGames.fNoPart.fFull.fText = fMessages["PHRASE_pythian_games_cant_participate_initial_announcement"];
fPythianGames.fNoPart.fCondensed.fText = fMessages["PHRASE_CONDENSED_pythian_games_cant_participate_initial_announcement"];
fPythianGames.fWon.fFull.fTitle = fMessages["PHRASE_pythian_games_conclude_title"];
fPythianGames.fWon.fFull.fText = fMessages["PHRASE_pythian_games_conclude_initial_announcement_won"];
fPythianGames.fWon.fCondensed.fText = fMessages["PHRASE_CONDENSED_pythian_games_conclude_initial_announcement_won"];
fPythianGames.fSecond.fFull.fTitle = fMessages["PHRASE_pythian_games_conclude_title"];
fPythianGames.fSecond.fFull.fText = fMessages["PHRASE_pythian_games_conclude_initial_announcement_second"];
fPythianGames.fSecond.fCondensed.fText = fMessages["PHRASE_CONDENSED_pythian_games_conclude_initial_announcement_second"];
fPythianGames.fLost.fFull.fTitle = fMessages["PHRASE_pythian_games_conclude_title"];
fPythianGames.fLost.fFull.fText = fMessages["PHRASE_pythian_games_conclude_initial_announcement_lost"];
fPythianGames.fLost.fCondensed.fText = fMessages["PHRASE_CONDENSED_pythian_games_conclude_initial_announcement_lost"];
fIsthmianGames.fBegin.fFull.fTitle = fMessages["PHRASE_isthmian_games_begin_title"];
fIsthmianGames.fBegin.fFull.fText = fMessages["PHRASE_isthmian_games_begin_initial_announcement_go"];
fIsthmianGames.fBegin.fCondensed.fText = fMessages["PHRASE_CONDENSED_isthmian_games_begin_initial_announcement_go"];
fIsthmianGames.fNoPart.fFull.fTitle = fMessages["PHRASE_isthmian_games_cant_participate_title"];
fIsthmianGames.fNoPart.fFull.fText = fMessages["PHRASE_isthmian_games_cant_participate_initial_announcement"];
fIsthmianGames.fNoPart.fCondensed.fText = fMessages["PHRASE_CONDENSED_isthmian_games_cant_participate_initial_announcement"];
fIsthmianGames.fWon.fFull.fTitle = fMessages["PHRASE_isthmian_games_conclude_title"];
fIsthmianGames.fWon.fFull.fText = fMessages["PHRASE_isthmian_games_conclude_initial_announcement_won"];
fIsthmianGames.fWon.fCondensed.fText = fMessages["PHRASE_CONDENSED_isthmian_games_conclude_initial_announcement_won"];
fIsthmianGames.fSecond.fFull.fTitle = fMessages["PHRASE_isthmian_games_conclude_title"];
fIsthmianGames.fSecond.fFull.fText = fMessages["PHRASE_isthmian_games_conclude_initial_announcement_second"];
fIsthmianGames.fSecond.fCondensed.fText = fMessages["PHRASE_CONDENSED_isthmian_games_conclude_initial_announcement_second"];
fIsthmianGames.fLost.fFull.fTitle = fMessages["PHRASE_isthmian_games_conclude_title"];
fIsthmianGames.fLost.fFull.fText = fMessages["PHRASE_isthmian_games_conclude_initial_announcement_lost"];
fIsthmianGames.fLost.fCondensed.fText = fMessages["PHRASE_CONDENSED_isthmian_games_conclude_initial_announcement_lost"];
fNemeanGames.fBegin.fFull.fTitle = fMessages["PHRASE_nemean_games_begin_title"];
fNemeanGames.fBegin.fFull.fText = fMessages["PHRASE_nemean_games_begin_initial_announcement_go"];
fNemeanGames.fBegin.fCondensed.fText = fMessages["PHRASE_CONDENSED_nemean_games_begin_initial_announcement_go"];
fNemeanGames.fNoPart.fFull.fTitle = fMessages["PHRASE_nemean_games_cant_participate_title"];
fNemeanGames.fNoPart.fFull.fText = fMessages["PHRASE_nemean_games_cant_participate_initial_announcement"];
fNemeanGames.fNoPart.fCondensed.fText = fMessages["PHRASE_CONDENSED_nemean_games_cant_participate_initial_announcement"];
fNemeanGames.fWon.fFull.fTitle = fMessages["PHRASE_nemean_games_conclude_title"];
fNemeanGames.fWon.fFull.fText = fMessages["PHRASE_nemean_games_conclude_initial_announcement_won"];
fNemeanGames.fWon.fCondensed.fText = fMessages["PHRASE_CONDENSED_nemean_games_conclude_initial_announcement_won"];
fNemeanGames.fSecond.fFull.fTitle = fMessages["PHRASE_nemean_games_conclude_title"];
fNemeanGames.fSecond.fFull.fText = fMessages["PHRASE_nemean_games_conclude_initial_announcement_second"];
fNemeanGames.fSecond.fCondensed.fText = fMessages["PHRASE_CONDENSED_nemean_games_conclude_initial_announcement_second"];
fNemeanGames.fLost.fFull.fTitle = fMessages["PHRASE_nemean_games_conclude_title"];
fNemeanGames.fLost.fFull.fText = fMessages["PHRASE_nemean_games_conclude_initial_announcement_lost"];
fNemeanGames.fLost.fCondensed.fText = fMessages["PHRASE_CONDENSED_nemean_games_conclude_initial_announcement_lost"];
fInvasion36.fFull.fTitle = fMessages["PHRASE_invasion_title"];
fInvasion36.fFull.fText = fMessages["PHRASE_invasion_initial_announcement"];
fInvasion36.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_invasion_title"];
fInvasion36.fCondensed.fText = fMessages["PHRASE_CONDENSED_invasion_initial_announcement"];
fInvasion24.fFull.fTitle = fMessages["PHRASE_invasion_title"];
fInvasion24.fFull.fText = fMessages["PHRASE_invasion_2year_reminder"];
fInvasion24.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_invasion_title"];
fInvasion24.fCondensed.fText = fMessages["PHRASE_CONDENSED_invasion_2year_reminder"];
fInvasion12.fFull.fTitle = fMessages["PHRASE_invasion_title"];
fInvasion12.fFull.fText = fMessages["PHRASE_invasion_1year_reminder"];
fInvasion12.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_invasion_title"];
fInvasion12.fCondensed.fText = fMessages["PHRASE_CONDENSED_invasion_1year_reminder"];
fInvasion6.fFull.fTitle = fMessages["PHRASE_invasion_title"];
fInvasion6.fFull.fText = fMessages["PHRASE_invasion_6month_warning"];
fInvasion6.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_invasion_title"];
fInvasion6.fCondensed.fText = fMessages["PHRASE_CONDENSED_invasion_6month_warning"];
fInvasion1.fFull.fTitle = fMessages["PHRASE_invasion_title"];
fInvasion1.fFull.fText = fMessages["PHRASE_invasion_1month_Warning"];
fInvasion1.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_invasion_title"];
fInvasion1.fCondensed.fText = fMessages["PHRASE_invasion_1month_Warning"];
fInvasion.fFull.fTitle = fMessages["PHRASE_invasion_title"];
fInvasion.fFull.fText = fMessages["PHRASE_invasion_city_attacked_alert"];
fInvasion.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_invasion_title"];
fInvasion.fCondensed.fText = fMessages["PHRASE_CONDENSED_invasion_city_attacked_alert"];
fInvasionBribed.fFull.fTitle = fMessages["PHRASE_players_city_saved_bribery_title"];
fInvasionBribed.fFull.fText = fMessages["PHRASE_players_city_saved_bribery_initial_announcement"];
fInvasionBribed.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_players_city_saved_bribery_title"];
fInvasionBribed.fCondensed.fText = fMessages["PHRASE_CONDENSED_players_city_saved_bribery_initial_announcement"];
fInvasionBribed.fFull.fTitle = fMessages["PHRASE_players_city_saved_bribery_title"];
fInvasionBribed.fFull.fText = fMessages["PHRASE_players_city_saved_bribery_initial_announcement"];
fInvasionBribed.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_players_city_saved_bribery_title"];
fInvasionBribed.fCondensed.fText = fMessages["PHRASE_CONDENSED_players_city_saved_bribery_initial_announcement"];
fInvasionDefeat.fFull.fTitle = fMessages["PHRASE_enemy_victorious_title"];
fInvasionDefeat.fFull.fText = fMessages["PHRASE_enemy_victorious_initial_announcement"];
fInvasionDefeat.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_enemy_victorious_title"];
fInvasionDefeat.fCondensed.fText = fMessages["PHRASE_CONDENSED_enemy_victorious_initial_announcement"];
fInvasionVictory.fFull.fTitle = fMessages["PHRASE_players_city_saved_title"];
fInvasionVictory.fFull.fText = fMessages["PHRASE_players_city_saved_initial_announcement"];
fInvasionVictory.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_players_city_saved_title"];
fInvasionVictory.fCondensed.fText = fMessages["PHRASE_CONDENSED_players_city_saved_initial_announcement"];
fInvasionVictoryMonument.fFull.fTitle = fMessages["PHRASE_players_city_saved_title"];
fInvasionVictoryMonument.fFull.fText = fMessages["PHRASE_players_city_saved_init_announcment_comm_monument"];
fInvasionVictoryMonument.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_players_city_saved_title"];
fInvasionVictoryMonument.fCondensed.fText = fMessages["PHRASE_CONDENSED_players_city_saved_init_announcment_comm_monument"];
fTributePaidGranted.fFull.fTitle = fMessages["PHRASE_tribute_paid_title"];
fTributePaidGranted.fFull.fText = fMessages["PHRASE_tribute_paid_granted"];
fTributePaidGranted.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_tribute_paid_title"];
fTributePaidGranted.fCondensed.fText = fMessages["PHRASE_CONDENSED_tribute_paid_granted"];
fTributePaidAccepted.fFull.fTitle = fMessages["PHRASE_tribute_paid_title"];
fTributePaidAccepted.fFull.fText = fMessages["PHRASE_tribute_paid_accepted"];
fTributePaidAccepted.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_tribute_paid_title"];
fTributePaidAccepted.fCondensed.fText = fMessages["PHRASE_CONDENSED_tribute_paid_accepted"];
fTributePaidRefused.fFull.fTitle = fMessages["PHRASE_tribute_paid_title"];
fTributePaidRefused.fFull.fText = fMessages["PHRASE_tribute_paid_refused"];
fTributePaidRefused.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_tribute_paid_title"];
fTributePaidRefused.fCondensed.fText = fMessages["PHRASE_CONDENSED_tribute_paid_refused"];
fTributePostponed.fFull.fTitle = fMessages["PHRASE_tribute_paid_title"];
fTributePostponed.fFull.fText = fMessages["PHRASE_tribute_paid_postponed"];
fTributePostponed.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_tribute_paid_title"];
fTributePostponed.fCondensed.fText = fMessages["PHRASE_CONDENSED_tribute_paid_postponed"];
fRequestGranted.fFull.fTitle = fMessages["PHRASE_request_granted_title"];
fRequestGranted.fFull.fText = fMessages["PHRASE_request_granted_granted"];
fRequestGranted.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_request_granted_title"];
fRequestGranted.fCondensed.fText = fMessages["PHRASE_CONDENSED_request_granted_granted"];
fRequestPartialSpace.fFull.fTitle = fMessages["PHRASE_request_granted_title"];
fRequestPartialSpace.fFull.fText = fMessages["PHRASE_request_granted_partial_space"];
fRequestPartialSpace.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_request_granted_title"];
fRequestPartialSpace.fCondensed.fText = fMessages["PHRASE_CONDENSED_request_granted_partial_space"];
fRequestInsufficientSpace.fFull.fTitle = fMessages["PHRASE_request_granted_title"];
fRequestInsufficientSpace.fFull.fText = fMessages["PHRASE_request_granted_insufficient_space"];
fRequestInsufficientSpace.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_request_granted_title"];
fRequestInsufficientSpace.fCondensed.fText = fMessages["PHRASE_CONDENSED_request_granted_insufficient_space"];
fRequestLastChance.fFull.fTitle = fMessages["PHRASE_request_granted_title"];
fRequestLastChance.fFull.fText = fMessages["PHRASE_request_granted_last_chance"];
fRequestLastChance.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_request_granted_title"];
fRequestLastChance.fCondensed.fText = fMessages["PHRASE_CONDENSED_request_granted_last_chance"];
fRequestAccepted.fFull.fTitle = fMessages["PHRASE_request_granted_title"];
fRequestAccepted.fFull.fText = fMessages["PHRASE_request_granted_accepted"];
fRequestAccepted.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_request_granted_title"];
fRequestAccepted.fCondensed.fText = fMessages["PHRASE_CONDENSED_request_granted_accepted"];
fRequestPostponed.fFull.fTitle = fMessages["PHRASE_request_granted_title"];
fRequestPostponed.fFull.fText = fMessages["PHRASE_request_granted_postponed"];
fRequestPostponed.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_request_granted_title"];
fRequestPostponed.fCondensed.fText = fMessages["PHRASE_CONDENSED_request_granted_postponed"];
fRequestRefused.fFull.fTitle = fMessages["PHRASE_request_granted_title"];
fRequestRefused.fFull.fText = fMessages["PHRASE_request_granted_refused"];
fRequestRefused.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_request_granted_title"];
fRequestRefused.fCondensed.fText = fMessages["PHRASE_CONDENSED_request_granted_refused"];
fRequestForfeited.fFull.fTitle = fMessages["PHRASE_request_granted_title"];
fRequestForfeited.fFull.fText = fMessages["PHRASE_request_granted_forfeited"];
fRequestForfeited.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_request_granted_title"];
fRequestForfeited.fCondensed.fText = fMessages["PHRASE_CONDENSED_request_granted_forfeited"];
fDemandRefused.fFull.fTitle = fMessages["PHRASE_demand_refused_title"];
fDemandRefused.fFull.fText = fMessages["PHRASE_demand_refused_initial_announcement"];
fDemandRefused.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_demand_refused_title"];
fDemandRefused.fCondensed.fText = fMessages["PHRASE_CONDENSED_demand_refused_initial_announcement"];
fGiftReceivedDrachmas.fFull.fTitle = fMessages["PHRASE_gift_received_money_title"];
fGiftReceivedDrachmas.fFull.fText = fMessages["PHRASE_gift_received_money_initial_announcement"];
fGiftReceivedDrachmas.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_gift_received_money_title"];
fGiftReceivedDrachmas.fCondensed.fText = fMessages["PHRASE_CONDENSED_gift_received_money_initial_announcement"];
fGiftReceivedNeeded.fFull.fTitle = fMessages["PHRASE_gift_received_needs_title"];
fGiftReceivedNeeded.fFull.fText = fMessages["PHRASE_gift_received_needs_initial_announcement"];
fGiftReceivedNeeded.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_gift_received_needs_title"];
fGiftReceivedNeeded.fCondensed.fText = fMessages["PHRASE_CONDENSED_gift_received_needs_initial_announcement"];
fGiftReceivedSells.fFull.fTitle = fMessages["PHRASE_gift_received_produces_title"];
fGiftReceivedSells.fFull.fText = fMessages["PHRASE_gift_received_produces_initial_announcement"];
fGiftReceivedSells.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_gift_received_produces_title"];
fGiftReceivedSells.fCondensed.fText = fMessages["PHRASE_CONDENSED_gift_received_produces_initial_announcement"];
fGiftReceivedNotNeeded.fFull.fTitle = fMessages["PHRASE_gift_received_doesnt_need_title"];
fGiftReceivedNotNeeded.fFull.fText = fMessages["PHRASE_gift_received_doesnt_need_initial_announcement"];
fGiftReceivedNotNeeded.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_gift_received_doesnt_need_title"];
fGiftReceivedNotNeeded.fCondensed.fText = fMessages["PHRASE_CONDENSED_gift_received_doesnt_need_initial_announcement"];
fGiftReceivedRefuse.fFull.fTitle = fMessages["PHRASE_gift_refused_title"];
fGiftReceivedRefuse.fFull.fText = fMessages["PHRASE_gift_refused_initial_announcement"];
fGiftReceivedRefuse.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_gift_refused_title"];
fGiftReceivedRefuse.fCondensed.fText = fMessages["PHRASE_CONDENSED_gift_refused_initial_announcement"];
loadGeneralRequest(fGeneralRequestAllyS, "S");
loadGeneralRequest(fGeneralRequestRivalD, "D");
loadGeneralRequest(fGeneralRequestSubjectP, "P");
loadGeneralRequest(fGeneralRequestParentR, "R");
loadGeneralRequest(fTributeRequest, "D", "tribute_due");
loadResourceGranted(fGiftGranted, "gift");
fSupportTroopsArrive.fFull.fTitle = fMessages["PHRASE_support_troops_arrive_title"];
fSupportTroopsArrive.fFull.fText = fMessages["PHRASE_support_troops_arrive_initial_announcement"];
fSupportTroopsArrive.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_support_troops_arrive_title"];
fSupportTroopsArrive.fCondensed.fText = fMessages["PHRASE_CONDENSED_support_troops_arrive_initial_announcement"];
fSupportTroopsDepart.fFull.fTitle = fMessages["PHRASE_support_troops_depart_title"];
fSupportTroopsDepart.fFull.fText = fMessages["PHRASE_support_troops_depart_initial_announcement"];
fSupportTroopsDepart.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_support_troops_depart_title"];
fSupportTroopsDepart.fCondensed.fText = fMessages["PHRASE_CONDENSED_support_troops_depart_initial_announcement"];
fSupportTroopsDefeated.fFull.fTitle = fMessages["PHRASE_support_troops_defeated_title"];
fSupportTroopsDefeated.fFull.fText = fMessages["PHRASE_support_troops_defeated_initial_announcement"];
fSupportTroopsDefeated.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_support_troops_defeated_title"];
fSupportTroopsDefeated.fCondensed.fText = fMessages["PHRASE_CONDENSED_support_troops_defeated_initial_announcement"];
fStrikeDepart.fFull.fTitle = fMessages["PHRASE_strike_force_sets_forth_title"];
fStrikeDepart.fFull.fText = fMessages["PHRASE_strike_force_sets_forth_initial_announcement"];
fStrikeDepart.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_strike_force_sets_forth_title"];
fStrikeDepart.fCondensed.fText = fMessages["PHRASE_CONDENSED_strike_force_sets_forth_initial_announcement"];
fStrikeSuccessful.fFull.fTitle = fMessages["PHRASE_strike_successful_title"];
fStrikeSuccessful.fFull.fText = fMessages["PHRASE_strike_successful_initial_announcement"];
fStrikeSuccessful.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_strike_successful_title"];
fStrikeSuccessful.fCondensed.fText = fMessages["PHRASE_CONDENSED_strike_successful_initial_announcement"];
fStrikeUnsuccessul.fFull.fTitle = fMessages["PHRASE_strike_unsuccessful_title"];
fStrikeUnsuccessul.fFull.fText = fMessages["PHRASE_strike_unsuccessful_initial_announcement"];
fStrikeUnsuccessul.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_strike_unsuccessful_title"];
fStrikeUnsuccessul.fCondensed.fText = fMessages["PHRASE_CONDENSED_strike_unsuccessful_initial_announcement"];
fRivalArmyAway.fFull.fTitle = fMessages["PHRASE_rival_away_title"];
fRivalArmyAway.fFull.fText = fMessages["PHRASE_rival_away_initial_announcement"];
fRivalArmyAway.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_rival_away_title"];
fRivalArmyAway.fCondensed.fText = fMessages["PHRASE_CONDENSED_rival_away_initial_announcement"];
fIncreasedFavor.fFull.fTitle = fMessages["PHRASE_favor_change_title_I"];
fIncreasedFavor.fFull.fText = fMessages["PHRASE_favor_change_initial_announcement_I"];
fIncreasedFavor.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_favor_change_title_I"];
fIncreasedFavor.fCondensed.fText = fMessages["PHRASE_CONDENSED_favor_change_initial_announcement_I"];
fDecreasedFavor.fFull.fTitle = fMessages["PHRASE_favor_change_title_D"];
fDecreasedFavor.fFull.fText = fMessages["PHRASE_favor_change_initial_announcement_D"];
fDecreasedFavor.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_favor_change_title_D"];
fDecreasedFavor.fCondensed.fText = fMessages["PHRASE_CONDENSED_favor_change_initial_announcement_D"];
fUnemployment.fFull.fTitle = fMessages[";PHRASE_unemployment_title"];
fUnemployment.fFull.fText = fMessages[";PHRASE_unemployment_initial_announcement"];
fUnemployment.fCondensed.fTitle = fMessages[";PHRASE_CONDENSED_unemployment_title"];
fUnemployment.fCondensed.fText = fMessages[";PHRASE_CONDENSED_unemployment_initial_announcement"];
fEmployees.fFull.fTitle = fMessages["PHRASE_employees_needed_title"];
fEmployees.fFull.fText = fMessages["PHRASE_employees_needed_initial_announcement"];
fEmployees.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_employees_needed_title"];
fEmployees.fCondensed.fText = fMessages["PHRASE_CONDENSED_employees_needed_initial_announcement"];
fPlague.fFull.fTitle = fMessages["PHRASE_plague_title"];
fPlague.fFull.fText = fMessages["PHRASE_plague_initial_announcement"];
fPlague.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_plague_title"];
fPlague.fCondensed.fText = fMessages["PHRASE_CONDENSED_plague_initial_announcement"];
fCityConqueredByPlayer.fFull.fTitle = fMessages["PHRASE_city_conquered_by_player_title"];
fCityConqueredByPlayer.fFull.fText = fMessages["PHRASE_city_conquered_by_player_initial_announcement"];
fCityConqueredByPlayer.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_city_conquered_by_player_title"];
fCityConqueredByPlayer.fCondensed.fText = fMessages["PHRASE_CONDENSED_city_conquered_by_player_initial_announcement"];
fCityConquerFailedByPlayer.fFull.fTitle = fMessages["PHRASE_players_conquest_fails_title"];
fCityConquerFailedByPlayer.fFull.fText = fMessages["PHRASE_players_conquest_fails_initial_announcement"];
fCityConquerFailedByPlayer.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_players_conquest_fails_title"];
fCityConquerFailedByPlayer.fCondensed.fText = fMessages["PHRASE_CONDENSED_players_conquest_fails_initial_announcement"];
fCityRaidFailedByPlayer.fFull.fTitle = fMessages["PHRASE_raiding_party_wiped_out_title"];
fCityRaidFailedByPlayer.fFull.fText = fMessages["PHRASE_raiding_party_wiped_out_initial_announcement"];
fCityRaidFailedByPlayer.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_raiding_party_wiped_out_title"];
fCityRaidFailedByPlayer.fCondensed.fText = fMessages["PHRASE_CONDENSED_raiding_party_wiped_out_initial_announcement"];
loadResourceGranted(fRaidGranted, "raiding_party_returns");
fAllyAttackedByPlayer.fFull.fTitle = fMessages["PHRASE_allies_hate_you_title"];
fAllyAttackedByPlayer.fFull.fText = fMessages["PHRASE_allies_hate_you_initial_announcement"];
fAllyAttackedByPlayer.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_allies_hate_you_title"];
fAllyAttackedByPlayer.fCondensed.fText = fMessages["PHRASE_CONDENSED_allies_hate_you_initial_announcement"];
fArmyReturns.fFull.fTitle = fMessages["PHRASE_army_returns_title"];
fArmyReturns.fFull.fText = fMessages["PHRASE_army_returns_initial_announcement"];
fArmyReturns.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_army_returns_title"];
fArmyReturns.fCondensed.fText = fMessages["PHRASE_CONDENSED_army_returns_initial_announcement"];
fMilitaryBuildup.fFull.fTitle = fMessages["PHRASE_military_change_title_I"];
fMilitaryBuildup.fFull.fText = fMessages["PHRASE_military_change_initial_announcement_I"];
fMilitaryBuildup.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_military_change_title_I"];
fMilitaryBuildup.fCondensed.fText = fMessages["PHRASE_CONDENSED_military_change_initial_announcement_I"];
fMilitaryDecline.fFull.fTitle = fMessages["PHRASE_military_change_title_D"];
fMilitaryDecline.fFull.fText = fMessages["PHRASE_military_change_initial_announcement_D"];
fMilitaryDecline.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_military_change_title_D"];
fMilitaryDecline.fCondensed.fText = fMessages["PHRASE_CONDENSED_military_change_initial_announcement_D"];
fEconomicProsperity.fFull.fTitle = fMessages["PHRASE_economic_change_title_I"];
fEconomicProsperity.fFull.fText = fMessages["PHRASE_economic_change_initial_announcement_I"];
fEconomicProsperity.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_economic_change_title_I"];
fEconomicProsperity.fCondensed.fText = fMessages["PHRASE_CONDENSED_economic_change_initial_announcement_I"];
fEconomicDecline.fFull.fTitle = fMessages["PHRASE_economic_change_title_D"];
fEconomicDecline.fFull.fText = fMessages["PHRASE_economic_change_initial_announcement_D"];
fEconomicDecline.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_economic_change_title_D"];
fEconomicDecline.fCondensed.fText = fMessages["PHRASE_CONDENSED_economic_change_initial_announcement_D"];
load(fAllyTroopsRequest, "ally", "S");
load(fVassalTroopsRequest, "vassal", "P");
load(fColonyTroopsRequest, "colony", "P");
load(fParentCityTroopsRequest, "parentcity", "R");
fEarthqauke.fFull.fTitle = fMessages["PHRASE_quake_title"];
fEarthqauke.fFull.fText = fMessages["PHRASE_quake_phrase_by_god"];
fEarthqauke.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_quake_title"];
fEarthqauke.fCondensed.fText = fMessages["PHRASE_CONDENSED_quake_phrase_by_god"];
fCityBecomesAlly.fFull.fTitle = fMessages["PHRASE_becomes_ally_title"];
fCityBecomesAlly.fFull.fText = fMessages["PHRASE_becomes_ally_initial_announcement"];
fCityBecomesAlly.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_becomes_ally_title"];
fCityBecomesAlly.fCondensed.fText = fMessages["PHRASE_CONDENSED_becomes_ally_initial_announcement"];
fCityBecomesRival.fFull.fTitle = fMessages["PHRASE_becomes_rival_title"];
fCityBecomesRival.fFull.fText = fMessages["PHRASE_becomes_rival_initial_announcement"];
fCityBecomesRival.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_becomes_rival_title"];
fCityBecomesRival.fCondensed.fText = fMessages["PHRASE_CONDENSED_becomes_rival_initial_announcement"];
fCityBecomesVassal.fFull.fTitle = fMessages["PHRASE_becomes_vassal_title"];
fCityBecomesVassal.fFull.fText = fMessages["PHRASE_becomes_vassal_initial_announcement"];
fCityBecomesVassal.fCondensed.fTitle = fMessages["PHRASE_CONDENSED_becomes_vassal_title"];
fCityBecomesVassal.fCondensed.fText = fMessages["PHRASE_CONDENSED_becomes_vassal_initial_announcement"];
loadMessage(fTroopsRequestAttackAverted,
"attack_averted_title",
"attack_averted_initial_announcement");
loadMessage(fColonyRestored,
"colony_restored_title",
"colony_restored_initial_announcement");
loadMessage(fDebtAnniversary,
"still_in_debt_title",
"still_in_debt_initial_announcement");
loadMessage(fColonyMonument,
"colony_monument_title",
"colony_monument_initial_announcement");
loadMessage(fPriceIncrease,
"price_change_title_I",
"price_change_initial_announcement_I");
loadMessage(fPriceDecrease,
"price_change_title_D",
"price_change_initial_announcement_D");
loadMessage(fDemandIncrease,
"demand_change_title_I",
"demand_change_initial_announcement_I");
loadMessage(fDemandDecrease,
"demand_change_title_D",
"demand_change_initial_announcement_D");
loadMessage(fSupplyIncrease,
"supply_change_title_I",
"supply_change_initial_announcement_I");
loadMessage(fSupplyDecrease,
"supply_change_title_D",
"supply_change_initial_announcement_D");
loadMessage(fTradeShutsDown,
"trade_shuts_down_title",
"trade_shuts_down_initial_announcement");
loadMessage(fTradeOpensUp,
"trade_opens_up_title",
"trade_opens_up_initial_announcement");
loadMessage(fWageIncrease,
"wage_change_title_I",
"wage_change_initial_announcement_I");
loadMessage(fWageDecrease,
"wage_change_title_D",
"wage_change_initial_announcement_D");
return true;
}
bool eMessages::load() {
return instance.loadImpl();
}
bool eMessages::loaded() {
return instance.mLoaded;
}
const std::string& eMessages::message(const std::string& key) {
return instance.fMessages[key];
}
eMessageType eMessages::favorMessage(const eMessageType& reason) {
const auto& ifavor = instance.fIncreasedFavor;
eMessageType msg = ifavor;
auto& text = msg.fFull.fText;
eStringHelpers::replaceAll(text, "[reason_phrase]",
reason.fFull.fText);
return msg;
}
eMessageType eMessages::dfavorMessage(const eMessageType& reason) {
const auto& ifavor = instance.fDecreasedFavor;
eMessageType msg = ifavor;
auto& text = msg.fFull.fText;
eStringHelpers::replaceAll(text, "[reason_phrase]",
reason.fFull.fText);
return msg;
}
eMessageType eMessages::invasionMessage(const eMessageType& baseMsg,
const std::string& reason,
const int months) {
eMessageType msg = baseMsg;
auto& text = msg.fFull.fText;
if(reason.empty()) {
const auto& inst = eMessages::instance;
eStringHelpers::replaceAll(text, "[reason_phrase]",
inst.fInvasionNoReason);
} else {
eStringHelpers::replaceAll(text, "[reason_phrase]",
reason);
}
eStringHelpers::replaceAll(text, "[time_until_attack]",
std::to_string(months));
return msg;
}
const eGodMessages* eMessages::godMessages(const eGodType godType) const {
switch(godType) {
case eGodType::aphrodite:
return &fAphrodite;
case eGodType::apollo:
return &fApollo;
case eGodType::ares:
return &fAres;
case eGodType::artemis:
return &fArtemis;
case eGodType::athena:
return &fAthena;
case eGodType::atlas:
return &fAtlas;
case eGodType::demeter:
return &fDemeter;
case eGodType::dionysus:
return &fDionysus;
case eGodType::hades:
return &fHades;
case eGodType::hephaestus:
return &fHephaestus;
case eGodType::hera:
return &fHera;
case eGodType::hermes:
return &fHermes;
case eGodType::poseidon:
return &fPoseidon;
case eGodType::zeus:
return &fZeus;
}
return nullptr;
}
const eHeroMessages* eMessages::heroMessages(const eHeroType heroType) const {
switch(heroType) {
case eHeroType::achilles:
return &fAchilles;
case eHeroType::atalanta:
return &fAtalanta;
case eHeroType::bellerophon:
return &fBellerophon;
case eHeroType::hercules:
return &fHercules;
case eHeroType::jason:
return &fJason;
case eHeroType::odysseus:
return &fOdysseus;
case eHeroType::perseus:
return &fPerseus;
case eHeroType::theseus:
return &fTheseus;
}
return nullptr;
}
const eMonsterMessages* eMessages::monsterMessages(const eMonsterType monsterType) const {
switch(monsterType) {
case eMonsterType::calydonianBoar:
return &fCalydonianBoar;
case eMonsterType::cerberus:
return &fCerberus;
case eMonsterType::chimera:
return &fChimera;
case eMonsterType::cyclops:
return &fCyclops;
case eMonsterType::dragon:
return &fDragon;
case eMonsterType::echidna:
return &fEchidna;
case eMonsterType::harpies:
return &fHarpies;
case eMonsterType::hector:
return &fHector;
case eMonsterType::hydra:
return &fHydra;
case eMonsterType::kraken:
return &fKraken;
case eMonsterType::maenads:
return &fMaenads;
case eMonsterType::medusa:
return &fMedusa;
case eMonsterType::minotaur:
return &fMinotaur;
case eMonsterType::scylla:
return &fScylla;
case eMonsterType::sphinx:
return &fSphinx;
case eMonsterType::talos:
return &fTalos;
}
return nullptr;
}