1 /*
2 * Seven Kingdoms: Ancient Adversaries
3 *
4 * Copyright 1997,1998 Enlight Software Ltd.
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21 //Filename : OTALKFRE.CPP
22 //Description : French version of the talk messages
23
24 #if(defined(FRENCH))
25
26 #include <OMOUSE.h>
27 #include <OSYS.h>
28 #include <OVGA.h>
29 #include <OINFO.h>
30 #include <OFONT.h>
31 #include <OTECHRES.h>
32 #include <OGAMESET.h>
33 #include <ONEWS.h>
34 #include <ONATION.h>
35 #include <OTALKRES.h>
36
37 //-------- define static vars --------//
38
39 static String str; // these vars don't have to be saved as their are only used by msg_str() for passing vars to other functions
40 static short viewing_nation_recno;
41 static char should_disp_reply;
42 static char disp_second_line;
43
44
45 //------- Begin of function TalkMsg::msg_str --------//
46 //
47 // Return the text of this message.
48 //
49 // <int> viewingNationRecno = the recno of the nation viewing this message
50 // [int] dispReply = whether display the reply if there is one
51 // (default: 1)
52 // [int] dispSecondLine = whether should display the second line of the
53 // message (default: 0)
54 //
msg_str(int viewingNationRecno,int dispReply,int dispSecondLine)55 char* TalkMsg::msg_str(int viewingNationRecno, int dispReply, int dispSecondLine)
56 {
57 viewing_nation_recno = viewingNationRecno;
58 should_disp_reply = dispReply;
59 disp_second_line = dispSecondLine;
60
61 //-------- compose the message str -------//
62
63 switch(talk_id)
64 {
65 case TALK_PROPOSE_TRADE_TREATY:
66 propose_treaty("accord commercial");
67 break;
68
69 case TALK_PROPOSE_FRIENDLY_TREATY:
70 propose_treaty("pacte de non-agression");
71 break;
72
73 case TALK_PROPOSE_ALLIANCE_TREATY:
74 propose_treaty("trait� d'alliance");
75 break;
76
77 case TALK_END_TRADE_TREATY:
78 end_treaty("accord commercial");
79 break;
80
81 case TALK_END_FRIENDLY_TREATY:
82 end_treaty("pacte de non-agression");
83 break;
84
85 case TALK_END_ALLIANCE_TREATY:
86 end_treaty("trait� d'alliance");
87 break;
88
89 case TALK_REQUEST_MILITARY_AID:
90 request_military_aid();
91 break;
92
93 case TALK_REQUEST_TRADE_EMBARGO:
94 request_trade_embargo();
95 break;
96
97 case TALK_REQUEST_CEASE_WAR:
98 request_cease_war();
99 break;
100
101 case TALK_REQUEST_DECLARE_WAR:
102 request_declare_war();
103 break;
104
105 case TALK_REQUEST_BUY_FOOD:
106 request_buy_food();
107 break;
108
109 case TALK_DECLARE_WAR:
110 declare_war();
111 break;
112
113 case TALK_GIVE_TRIBUTE:
114 give_tribute("tribut");
115 break;
116
117 case TALK_DEMAND_TRIBUTE:
118 demand_tribute(0); // 1-is tribute, not aid
119 break;
120
121 case TALK_GIVE_AID:
122 give_tribute("aide");
123 break;
124
125 case TALK_DEMAND_AID:
126 demand_tribute(1); // 1-is aid, not tribute
127 break;
128
129 case TALK_GIVE_TECH:
130 give_tech();
131 break;
132
133 case TALK_DEMAND_TECH:
134 demand_tech();
135 break;
136
137 case TALK_REQUEST_SURRENDER:
138 request_surrender();
139 break;
140
141 case TALK_SURRENDER:
142 surrender();
143 break;
144
145 default:
146 err_here();
147 }
148
149 return str;
150 }
151 //-------- End of function TalkMsg::msg_str ---------//
152
153
154 //----- Begin of function TalkMsg::propose_treaty ------//
155 //
156 // talk_para1 - duration of the treaty (no. of years).
157 //
propose_treaty(char * treatyTypeStr)158 void TalkMsg::propose_treaty(char* treatyTypeStr)
159 {
160 //---------------------------------------------//
161 //
162 // Send:
163 //
164 // <King>'s Kingdom proposes a/an friendly/alliance treaty to you.
165 // You propose a/an friendly/alliance treaty to <King>'s Kingdom.
166 //
167 // Reply:
168 //
169 // <King>'s Kingdom accepts/rejects your proposed
170 // friendly/alliance treaty.
171 //
172 // You accept/reject the friendly/alliance treaty
173 // proposed by <King>'s Kingdom.
174 //
175 //---------------------------------------------//
176 //
177 // Envoyer:
178 //
179 // Le Royaume de <King> vous propose un pacte_de_non-agression/trait�_d'alliance.
180 //
181 // Vous proposez un pacte_de_non-agression/trait�_d'alliance au Royaume de
182 // <King>.
183 //
184 // R�pondre:
185 //
186 // Le Royaume de <King> accepte/rejette votre proposition de
187 // pacte_de_non-agression/trait�_d'alliance.
188 //
189 // Vous acceptez/rejetez le pacte_de_non-agression/trait�_d'alliance
190 // propos� par le Royaume de <King>.
191 //
192 //---------------------------------------------//
193
194 //--------------------------------------//
195
196 if( reply_type == REPLY_WAITING || !should_disp_reply )
197 {
198 if( viewing_nation_recno == from_nation_recno )
199 {
200 str = "Vous proposez un ";
201 str += treatyTypeStr;
202 str += " au ";
203 str += to_nation_name();
204 str += ".";
205 }
206 else
207 {
208 str = "Le ";
209 str += from_nation_name();
210 str += " vous propose un ";
211 str += treatyTypeStr;
212 str += ".";
213 }
214 }
215 else
216 {
217 if( viewing_nation_recno == from_nation_recno )
218 {
219 str = "Le ";
220 str += to_nation_name();
221
222 if( reply_type == REPLY_ACCEPT )
223 str += " accepte votre proposition de ";
224 else
225 str += " rejette votre proposition de ";
226
227 str += treatyTypeStr;
228 str += ".";
229 }
230 else
231 {
232 if( reply_type == REPLY_ACCEPT )
233 str = "Vous acceptez le ";
234 else
235 str = "Vous acceptez le ";
236
237 str += treatyTypeStr;
238
239 str += " propos� par le ";
240 str += from_nation_name();
241 str += ".";
242 }
243 }
244 }
245 //------- End of function TalkMsg::propose_treaty ------//
246
247
248 //----- Begin of function TalkMsg::end_treaty ------//
249 //
250 // talk_para1 - treaty type, NATION_FRIENDLY or NATION_ALLIANCE.
251 //
end_treaty(char * treatyTypeStr)252 void TalkMsg::end_treaty(char* treatyTypeStr)
253 {
254 //---------------------------------------------//
255 //
256 // Send:
257 // <King>'s Kingdom terminates its friendly/alliance treaty with you.
258 // You terminate your friendly/alliance treaty with <King>'s Kingdom.
259 //
260 //---------------------------------------------//
261 //
262 // Envoyer:
263 // Le Royaume de <King> met fin � son pacte_de_non-agression/trait�_d'alliance
264 // avec vous.
265 //
266 // Vous mettez fin au pacte_de_non-agression/trait�_d'alliance
267 // avec le Royaume de <King>.
268 //
269 //---------------------------------------------//
270
271 if( viewing_nation_recno == from_nation_recno )
272 {
273 str = "Vous mettez fin au ";
274 str += treatyTypeStr;
275 str += " avec le ";
276 str += to_nation_name();
277 str += ".";
278 }
279 else
280 {
281 str = "Le ";
282 str += from_nation_name();
283 str += " met fin � son ";
284 str += treatyTypeStr;
285 str += " avec vous.";
286 }
287 }
288 //------- End of function TalkMsg::end_treaty ------//
289
290
291 //----- Begin of function TalkMsg::request_cease_war ------//
292 //
request_cease_war()293 void TalkMsg::request_cease_war()
294 {
295 //---------------------------------------------//
296 //
297 // Send:
298 // <King>'s Kingdom requests a cease-fire.
299 // You request a cease-fire with <King>'s Kingdom.
300 //
301 // Reply:
302 // <King>'s Kingdom agrees to a cease-fire.
303 // <King>'s Kingdom refuses a cease-fire.
304 // You agree to a cease-fire with <King>'s Kingdom.
305 // You refuse a cease-fire with <King>'s Kingdom.
306 //
307 //---------------------------------------------//
308 //
309 // Envoyer:
310 // Le Royaume de <King> demande un cessez-le-feu.
311 // Vous demandez un cessez-le-feu au Royaume de <King>.
312 //
313 // R�pondre:
314 // Le Royaume de <King> accepte un cessez-le-feu.
315 // Le Royaume de <King> refuse un cessez-le-feu.
316 // Vous acceptez un cessez-le-feu avec le Royaume de <King>.
317 // Vous refusez un cessez-le-feu avec le Royaume de <King>.
318 //
319 //---------------------------------------------//
320
321 if( reply_type == REPLY_WAITING || !should_disp_reply )
322 {
323 if( viewing_nation_recno == from_nation_recno )
324 {
325 str = "Vous demandez un cessez-le-feu au ";
326 str += to_nation_name();
327 str += ".";
328 }
329 else
330 {
331 str = "Le ";
332 str += from_nation_name();
333 str += " demande un cessez-le-feu.";
334 }
335 }
336 else
337 {
338 if( viewing_nation_recno == from_nation_recno )
339 {
340 str = "Le ";
341 str += to_nation_name();
342
343 if( reply_type == REPLY_ACCEPT )
344 str += " accepte";
345 else
346 str += " refuse";
347
348 str += " cessez-le-feu.";
349 }
350 else
351 {
352 if( reply_type == REPLY_ACCEPT )
353 str = "Vous acceptez ";
354 else
355 str = "Vous refusez";
356
357 str += " un cessez-le-feu avec le ";
358 str += from_nation_name();
359 str += ".";
360 }
361 }
362 }
363 //------- End of function TalkMsg::request_cease_war ------//
364
365
366 //----- Begin of function TalkMsg::request_declare_war ------//
367 //
368 // talk_para1 - the recno of the nation to declare war with.
369 //
request_declare_war()370 void TalkMsg::request_declare_war()
371 {
372 //---------------------------------------------//
373 //
374 // Send:
375 // <King>'s Kingdom requests that you declare war on <King B>'s Kingdom.
376 // You request <King>'s Kingdom to declare war on <King B>'s Kingdom.
377 //
378 // Reply:
379 // <King>'s Kingdom agrees/refuses to declare war on <King B>'s Kingdom.
380 // You agree/refuse to declare war on <King B>'s Kingdom.
381 //
382 //---------------------------------------------//
383 //
384 // Envoyer:
385 // Le Royaume de <King> demande que vous d�clariez la guerre au
386 // Royaume de <King B>.
387 //
388 // Vous demandez au Royaume de <King> de d�clarer la guerre au
389 // Royaume de <King B>.
390 //
391 // R�pondre:
392 // Le Royaume de <King> accepte/refuse de d�clarer la guerre au
393 // Royaume de <King B>.
394 //
395 // Vous acceptez/refusez de d�clarer la guerre au Royaume de <King B>.
396 //
397 //---------------------------------------------//
398
399
400 if( reply_type == REPLY_WAITING || !should_disp_reply )
401 {
402 if( viewing_nation_recno == from_nation_recno )
403 {
404 str = "Vous demandez au ";
405 str += to_nation_name();
406 str += " de";
407 }
408 else
409 {
410 str = "Le ";
411 str += from_nation_name();
412 str += " demande que vous";
413 }
414
415 str += " d�clarer la guerre au ";
416 str += nation_array[talk_para1]->nation_name();
417 str += nation_color_code_str(talk_para1);
418 str += ".";
419 }
420 else
421 {
422 if( viewing_nation_recno == from_nation_recno )
423 {
424 str = "Le ";
425 str += to_nation_name();
426
427 if( reply_type == REPLY_ACCEPT )
428 str += " accepte";
429 else
430 str += " refuse";
431 }
432 else
433 {
434 if( reply_type == REPLY_ACCEPT )
435 str = "Vous acceptez";
436 else
437 str = "Vous refusez";
438 }
439
440 str += " de d�clarer la guerre au ";
441 str += nation_array[talk_para1]->nation_name();
442 str += nation_color_code_str(talk_para1);
443 str += ".";
444 }
445 }
446 //------- End of function TalkMsg::request_declare_war ------//
447
448
449 //----- Begin of function TalkMsg::request_buy_food ------//
450 //
451 // talk_para1 - the qty of food the nation wants to buy.
452 // talk_para2 - price offered for 10 qty of food.
453 //
request_buy_food()454 void TalkMsg::request_buy_food()
455 {
456 //---- display the second line in the reply question ----//
457 //
458 // <King>'s Kingdom offers $10 for 10 units of food.
459 //
460 //-------------------------------------------------------//
461 //
462 // Le Royaume de <King> vous offre $10 pour 10 unit�s de nourriture.
463 //
464 //-------------------------------------------------------//
465
466 if( disp_second_line )
467 {
468 str = "Le ";
469 str += from_nation_name();
470 str += " vous offre ";
471 str += misc.format(talk_para2,2);
472 str += " pour 10 unit�s de nourriture.";
473
474 return;
475 }
476
477 //---------------------------------------------//
478 //
479 // Send:
480 // <King>'s Kingdom requests to purchase <amount>
481 // units of food from you.
482 //
483 // You request to purchase <amount> units of food
484 // from <King>'s Kingdom.
485 //
486 // Reply:
487 // <King>'s Kingdom agrees/refuses to sell <amount> units
488 // of food to you.
489 //
490 // You agree/refuse to sell <amount> units of food to
491 // <King>'s Kingdom.
492 //
493 //---------------------------------------------//
494 //
495 // Envoyer:
496 // Le Royaume de <King> demande que vous lui vendiez <amount>
497 // unit�s de nourriture.
498 //
499 // Vous demandez � acheter <amount> unit�s de nourriture
500 // au Royaume de <King>.
501 //
502 // R�pondre:
503 // Le Royaume de <King> accepte/refuse de vous vendre <amount> unit�s
504 // de nourriture.
505 //
506 // Vous acceptez/refusez de vendre <amount> unit�s de nourriture
507 // au Royaume de <King>.
508 //
509 //---------------------------------------------//
510
511 if( reply_type == REPLY_WAITING || !should_disp_reply )
512 {
513 if( viewing_nation_recno == from_nation_recno )
514 {
515 str = "Vous demandez � acheter ";
516 str += talk_para1;
517 str += " unit�s de nourriture au ";
518 str += to_nation_name();
519 str += ".";
520 }
521 else
522 {
523 str = "Le ";
524 str += from_nation_name();
525 str += " demande que vous lui vendiez ";
526 str += talk_para1;
527 str += " unit�s de nourriture.";
528 }
529 }
530 else
531 {
532 if( viewing_nation_recno == from_nation_recno )
533 {
534 str = "Le ";
535 str += to_nation_name();
536
537 if( reply_type == REPLY_ACCEPT )
538 str += " accepte";
539 else
540 str += " refuse";
541
542 str += " de vous vendre ";
543 str += talk_para1;
544 str += " unit�s of de nourriture.";
545 }
546 else
547 {
548 if( reply_type == REPLY_ACCEPT )
549 str = "Vous acceptez";
550 else
551 str = "Vous refusez";
552
553 str += " de vendre ";
554 str += talk_para1;
555 str += " unit�s de nourriture au ";
556 str += from_nation_name();
557 str += ".";
558 }
559 }
560 }
561 //------- End of function TalkMsg::request_buy_food ------//
562
563
564 //----- Begin of function TalkMsg::declare_war ------//
565 //
declare_war()566 void TalkMsg::declare_war()
567 {
568 //---------------------------------------------//
569 //
570 // Send:
571 // <King>'s Kingdom declares war on you.
572 // You declare war on <King>'s Kingdom.
573 //
574 //---------------------------------------------//
575 //
576 // Envoyer:
577 // Le Royaume de <King> vous d�clare la guerre.
578 // Vous d�clarez la guerre au Royaume de <King>.
579 //
580 //---------------------------------------------//
581
582
583 if( viewing_nation_recno == from_nation_recno )
584 {
585 str = "Vous d�clarez la guerre au ";
586 str += to_nation_name();
587 str += ".";
588 }
589 else
590 {
591 str = "Le ";
592 str += from_nation_name();
593 str += " vous d�clare la guerre.";
594 }
595 }
596 //------- End of function TalkMsg::declare_war ------//
597
598
599 //----- Begin of function TalkMsg::give_tribute ------//
600 //
601 // <char*> tributeStr - either "tribute" or "aid".
602 //
603 // talk_para1 - amount of the tribute.
604 //
give_tribute(char * tributeStr)605 void TalkMsg::give_tribute(char* tributeStr)
606 {
607 char *article = "un";
608 char *verb = "paie";
609 char *youVerb = "payez";
610 if(tributeStr[0] == 'a') // aide
611 {
612 article = "une";
613 verb = "offre";
614 youVerb = "offrez";
615 }
616
617 //---------------------------------------------//
618 //
619 // Send:
620 // <King>'s Kingdom offers you <$999> in aid/tribute.
621 // You offer <King>'s Kingdom <$999> in aid/tribute.
622 //
623 // Reply:
624 // <King>'s Kingdom accepts/rejects your aid/tribute of <$999>.
625 // You accept/reject the <$999> in aid/tribute from <King>'s Kingdom.
626 //
627 //---------------------------------------------//
628 //
629 // Envoyer:
630 // Le Royaume de <King> vous offre/paie une/un aide/tribut de <$999>.
631 // Vous offrez/payez une/un aide/tribut de <$999> au Royaume de <King>.
632 //
633 // R�pondre:
634 // Le Royaume de <King> accepte/refuse votre aide/tribut de <$999>.
635 //
636 // Vous acceptez/refusez une/un aide/tribut de <$999> de la part du
637 // Royaume de <King>.
638 //
639 //---------------------------------------------//
640
641 if( reply_type == REPLY_WAITING || !should_disp_reply )
642 {
643 if( viewing_nation_recno == from_nation_recno )
644 {
645 str = "Vous ";
646 str += youVerb;
647 str += " ";
648 str += article;
649 str += " ";
650 str += tributeStr;
651 str += " de ";
652 str += misc.format(talk_para1, 2);
653 str += " au ";
654 str += to_nation_name();
655 str += ".";
656 }
657 else
658 {
659 str = "Le ";
660 str += from_nation_name();
661 str += " vous ";
662 str += verb;
663 str += " ";
664 str += article;
665 str += " ";
666 str += tributeStr;
667 str += " de ";
668 str += misc.format(talk_para1, 2);
669 str += ".";
670 }
671 }
672 else
673 {
674 if( viewing_nation_recno == from_nation_recno )
675 {
676 str = "Le ";
677 str += to_nation_name();
678
679 if( reply_type == REPLY_ACCEPT )
680 str += " accepte votre ";
681 else
682 str += " refuse votre ";
683
684 str += tributeStr;
685 str += " de ";
686 str += misc.format(talk_para1, 2);
687 str += ".";
688 }
689 else
690 {
691 if( reply_type == REPLY_ACCEPT )
692 str = "Vous acceptez ";
693 else
694 str = "Vous refusez ";
695 str += article;
696 str += " ";
697 str += tributeStr;
698 str += " de ";
699 str += misc.format(talk_para1, 2);
700 str += " de la part du ";
701 str += from_nation_name();
702 str += ".";
703 }
704 }
705 }
706 //------- End of function TalkMsg::give_tribute ------//
707
708
709 //----- Begin of function TalkMsg::demand_tribute ------//
710 //
711 // <int> isAid - 1 if it's a aid, 0 if it's a tribute.
712 //
713 // talk_para1 - the amount of the tribute.
714 //
demand_tribute(int isAid)715 void TalkMsg::demand_tribute(int isAid)
716 {
717 //---------------------------------------------//
718 //
719 // Send:
720 // <King>'s Kingdom requests/demands <tribute amount> in aid/tribute
721 // from you.
722 //
723 // You request/demand <tribute amount> in aid/tribute from
724 // <King>'s Kingdom.
725 //
726 // Reply:
727 // <King>'s Kingdom agrees/refuses to give/pay you <tribute amount>
728 // in aid/tribute.
729 //
730 // You agree/refuse to give/pay <King>'s Kingdom <tribute amount>
731 // in aid/tribute.
732 //
733 //---------------------------------------------//
734 //
735 // Envoyer:
736 // Le Royaume de <King> demande/exige une/un aide/tribut de
737 // <tribute amount> de votre part.
738 //
739 // Vous demandez/exigez une/un aide/tribut de <tribute amount> de la
740 // part du Royaume de <King>.
741 //
742 // R�pondre:
743 // Le Royaume de <King> accepte/refuse de vous donner/payer une/un
744 // aide/tribut de <tribute amount>.
745 //
746 // Vous acceptez/refusez de donner/payer une/un aide/tribut de
747 // <tribute amount> au Royaume de <King>.
748 //
749 //---------------------------------------------//
750
751 // char* aidStr;
752
753 // if( isAid )
754 // aidStr = "aid";
755 // else
756 // aidStr = "tribute";
757
758 if( reply_type == REPLY_WAITING || !should_disp_reply )
759 {
760 if( viewing_nation_recno == from_nation_recno )
761 {
762 if( isAid )
763 str = "Vous demandez une aide de ";
764 else
765 str = "Vous exigez un tribut de ";
766 str += misc.format(talk_para1,2);
767 str += " de la part du ";
768 str += to_nation_name();
769 str += ".";
770 }
771 else
772 {
773 str = "Le ";
774 str += from_nation_name();
775
776 if( isAid )
777 str += " demande une aide de ";
778 else
779 str += " exige un tribut de ";
780
781 str += misc.format(talk_para1,2);
782 str += " de votre part.";
783 }
784 }
785 else
786 {
787 if( viewing_nation_recno == from_nation_recno )
788 {
789 str = "Le ";
790 str += to_nation_name();
791
792 if( reply_type == REPLY_ACCEPT )
793 str += " accepte";
794 else
795 str += " refuse";
796
797 if( isAid )
798 str += " de vous donner une aide de ";
799 else
800 str += " de vous payer un tribut de ";
801 str += misc.format(talk_para1,2);
802 str += ".";
803 }
804 else
805 {
806 if( reply_type == REPLY_ACCEPT )
807 str = "Vous acceptez";
808 else
809 str = "Vous refusez";
810
811 if( isAid )
812 str += " de donner une adie de ";
813 else
814 str += " de payer un tribut de ";
815 str += misc.format(talk_para1,2);
816 str += " au ";
817 str += from_nation_name();
818 str += ".";
819 }
820 }
821 }
822 //------- End of function TalkMsg::demand_tribute ------//
823
824
825 //----- Begin of function TalkMsg::give_tech ------//
826 //
827 // talk_para1 - id. of the tech given.
828 // talk_para2 - version of the tech.
829 //
give_tech()830 void TalkMsg::give_tech()
831 {
832 //---------------------------------------------//
833 //
834 // Send:
835 // <King>'s Kingdom offers <tech><version> technology to you.
836 //
837 // You offer <tech><version> technology to <King>'s Kingdom.
838 //
839 // Reply:
840 // <King>'s Kingdom accepts/rejects your gift of <tech><version>
841 // technology.
842 //
843 // You accept/reject the gift of <tech><version> technology
844 // from <King>'s Kingdom.
845 //
846 //---------------------------------------------//
847 //
848 // Envoyer:
849 // Le Royaume de <King> vous offre la technologie <tech><version>.
850 //
851 // Vous offrez la technologie <tech><version> au Royaume de <King>.
852 //
853 // R�pondre:
854 // Le Royaume de <King> accepte/refuse votre offre de la technologie
855 // <tech><version>.
856 //
857 // Vous acceptez/refusez l'offre du Royaume de <King> concernant la
858 // technologie <tech><version>.
859 //
860 //---------------------------------------------//
861
862 if( reply_type == REPLY_WAITING || !should_disp_reply )
863 {
864 if( viewing_nation_recno == from_nation_recno )
865 {
866 str = "Vous offrez la technologie ";
867 str += tech_res[talk_para1]->tech_des();
868
869 if( talk_para2 ) // Ships do not have different versions
870 {
871 str += " ";
872 str += misc.roman_number(talk_para2);
873 }
874
875 str += " au ";
876 str += to_nation_name();
877 str += ".";
878 }
879 else
880 {
881 str = "Le ";
882 str += from_nation_name();
883 str += " vous offre la technologie ";
884 str += tech_res[talk_para1]->tech_des();
885
886 if( talk_para2 ) // Ships do not have different versions
887 {
888 str += " ";
889 str += misc.roman_number(talk_para2);
890 }
891
892 str += ".";
893 }
894 }
895 else
896 {
897 if( viewing_nation_recno == from_nation_recno )
898 {
899 str = "Le ";
900 str += to_nation_name();
901
902 if( reply_type == REPLY_ACCEPT )
903 str += " accepte";
904 else
905 str += " refuse";
906 str += " votre offre de la technologie ";
907
908 str += tech_res[talk_para1]->tech_des();
909
910 if( talk_para2 ) // Ships do not have different versions
911 {
912 str += " ";
913 str += misc.roman_number(talk_para2);
914 }
915
916 str += ".";
917 }
918 else
919 {
920 if( reply_type == REPLY_ACCEPT )
921 str = "Vous acceptez l'offre du ";
922 else
923 str = "Vous refusez l'offre du ";
924 str += from_nation_name();
925 str += " concernant la technologie ";
926 str += tech_res[talk_para1]->tech_des();
927
928 if( talk_para2 ) // Ships do not have different versions
929 {
930 str += " ";
931 str += misc.roman_number(talk_para2);
932 }
933 str += ".";
934 }
935 }
936
937 }
938 //------- End of function TalkMsg::give_tech ------//
939
940
941 //----- Begin of function TalkMsg::demand_tech ------//
942 //
943 // Demand for the latest version of the technology.
944 //
945 // talk_para1 - id. of the tech demanded.
946 // talk_para2 - version of the tech if the nation agrees to transfer
947 // technology.
948 //
demand_tech()949 void TalkMsg::demand_tech()
950 {
951 //---------------------------------------------//
952 //
953 // Send:
954 // <King>'s Kingdom demands/requests the latest
955 // <tech> technology from you.
956 //
957 // You demand/request the latest <tech> technology from
958 // <King>'s Kingdom.
959 //
960 // Reply:
961 // <King>'s Kingdom agrees/refuses to transfer its latest <tech>
962 // technology to you.
963 //
964 // You agree/refuse to transfer your <tech> technology to
965 // <King>'s Kingdom.
966 //
967 //---------------------------------------------//
968 //
969 // Envoyer:
970 // Le Royaume de <King> exige/demande votre derni�re version de
971 // <tech>.
972 //
973 // Vous exigez/demandez sa derni�re version de <tech> au
974 // Royaume de <King>.
975 //
976 // R�pondre:
977 // Le Royaume de <King> accepte/refuse de vous livrer sa derni�re version
978 // de <tech>.
979 //
980 // Vous acceptez/refusez de livrer votre derni�re version de <tech> au
981 // Royaume de <King>.
982 //
983 //---------------------------------------------//
984
985 char* requestStr;
986
987 if( nation_array[from_nation_recno]->get_relation_status(to_nation_recno)
988 >= NATION_FRIENDLY )
989 {
990 requestStr = "demande";
991 }
992 else
993 {
994 requestStr = "exige";
995 }
996
997 //------------------------------------------//
998
999 if( reply_type == REPLY_WAITING || !should_disp_reply )
1000 {
1001 if( viewing_nation_recno == from_nation_recno )
1002 {
1003 str = "Vous ";
1004 str += requestStr;
1005 str += "z sa derni�re version de ";
1006 str += tech_res[talk_para1]->tech_des();
1007 str += " au ";
1008 str += to_nation_name();
1009 str += ".";
1010 }
1011 else
1012 {
1013 str = "Le ";
1014 str += from_nation_name();
1015 str += " ";
1016 str += requestStr;
1017 str += " votre derni�re version de ";
1018 str += tech_res[talk_para1]->tech_des();
1019 str += ".";
1020 }
1021 }
1022 else
1023 {
1024 if( viewing_nation_recno == from_nation_recno )
1025 {
1026 str = "Le ";
1027 str += to_nation_name();
1028
1029 if( reply_type == REPLY_ACCEPT )
1030 str += " accepte";
1031 else
1032 str += " refuse";
1033
1034 str += " de vous livrer sa derni�re version de ";
1035 str += tech_res[talk_para1]->tech_des();
1036 str += ".";
1037 }
1038 else
1039 {
1040 if( reply_type == REPLY_ACCEPT )
1041 str = "Vous acceptez";
1042 else
1043 str = "Vous refusez";
1044
1045 str += " de livrer votre derni�re version de ";
1046 str += tech_res[talk_para1]->tech_des();
1047 str += " au ";
1048 str += from_nation_name();
1049 str += ".";
1050 }
1051 }
1052 }
1053 //------- End of function TalkMsg::demand_tech ------//
1054
1055
1056 //----- Begin of function TalkMsg::request_military_aid ------//
1057 //
request_military_aid()1058 void TalkMsg::request_military_aid()
1059 {
1060 //---------------------------------------------//
1061 //
1062 // Send:
1063 // <King>'s Kingdom requests immediate military aid from you.
1064 // You request immediate military aid from <King>'s Kingdom.
1065 //
1066 // Reply:
1067 // <King>'s Kingdom agrees to immediately send your requested
1068 // military aid.
1069 // <King>'s Kingdom denies you your requested military aid.
1070 //
1071 // You agree to immediately send military aid to <King>'s Kingdom.
1072 // You refuse to send military aid to <King>'s Kingdom.
1073 //
1074 //---------------------------------------------//
1075 //
1076 // Envoyer:
1077 // Le Royaume de <King> vous demande un soutien militaire imm�diat.
1078 // Vous demandez un soutien militaire imm�diat au Royaume de <King>.
1079 //
1080 // R�pondre:
1081 // Le Royaume de <King> vous apporte un soutien militaire imm�diat.
1082 // Le Royaume de <King> refuse de vous apporter un soutien militaire
1083 // imm�diat.
1084 //
1085 // Vous apportez un soutien militaire imm�diat au Royaume de <King>.
1086 // Vous refusez d'apporter un soutien militaire imm�diat au Royaume de
1087 // <King>.
1088 //
1089 //---------------------------------------------//
1090
1091 if( reply_type == REPLY_WAITING || !should_disp_reply )
1092 {
1093 if( viewing_nation_recno == from_nation_recno )
1094 {
1095 str = "Vous demandez un soutien militaire imm�diat au ";
1096 str += to_nation_name();
1097 str += ".";
1098 }
1099 else
1100 {
1101 str = "Le ";
1102 str += from_nation_name();
1103 str += " vous demande un soutien militaire imm�diat.";
1104 }
1105 }
1106 else
1107 {
1108 if( viewing_nation_recno == from_nation_recno )
1109 {
1110 str = "Le ";
1111 str += to_nation_name();
1112
1113 if( reply_type == REPLY_ACCEPT )
1114 str += " vous apporte un soutien militaire imm�diat.";
1115 else
1116 str += " refuse de vous apporter un soutien militaire imm�diat.";
1117 }
1118 else
1119 {
1120 if( reply_type == REPLY_ACCEPT )
1121 str = "Vous apportez un soutien militaire imm�diat au ";
1122 else
1123 str = "Vous refusez d'apporter un soutien militaire imm�diat au ";
1124
1125 str += from_nation_name();
1126 str += ".";
1127 }
1128 }
1129 }
1130 //------- End of function TalkMsg::request_military_aid ------//
1131
1132
1133 //----- Begin of function TalkMsg::request_trade_embargo ------//
1134 //
1135 // talk_para1 - the nation to have a trade embargo on.
1136 //
request_trade_embargo()1137 void TalkMsg::request_trade_embargo()
1138 {
1139 //---------------------------------------------//
1140 //
1141 // Send:
1142 // <King>'s Kingdom requests you to join an embargo on trade with
1143 // <King B>'s Kingdom.
1144 //
1145 // You request <King>'s Kingdom to join an embargo on trade with
1146 // <King B>'s Kingdom.
1147 //
1148 // Reply:
1149 // <King>'s Kingdom agrees/refuses to join an embargo on trade
1150 // with <King B>'s Kingdom.
1151 //
1152 // You agree/refuse to join an embargo on trade with <King B>'s Kingdom
1153 // as requested by <King>'s Kingdom.
1154 //
1155 //---------------------------------------------//
1156 //
1157 // Envoyer:
1158 // Le Royaume de <King> demande que vous preniez part � un embargo
1159 // commercial contre le Royaume de <King B>.
1160 //
1161 // Vous demandez au Royaume de <King> de prendre part � un embargo
1162 // commercial contre le Royaume de <King B>.
1163 //
1164 // R�pondre:
1165 // Le Royaume de <King> accepte/refuse de prendre part � un embargo
1166 // commercial contre le Royaume de <King B>.
1167 //
1168 // Vous acceptez/refusez de prendre part � l'embargo commercial contre
1169 // le Royaume de <King B>, organis� par le Royaume de <King>.
1170 //
1171 //---------------------------------------------//
1172
1173 if( reply_type == REPLY_WAITING || !should_disp_reply )
1174 {
1175 if( viewing_nation_recno == from_nation_recno )
1176 {
1177 str = "Vous demandez au ";
1178 str += to_nation_name();
1179 str += " de prendre part";
1180 }
1181 else
1182 {
1183 str = "Le ";
1184 str += from_nation_name();
1185 str += " demande que vous preniez part";
1186 }
1187
1188 str += " � un embargo commercial contre le ";
1189 str += nation_array[talk_para1]->nation_name();
1190 str += nation_color_code_str(talk_para1);
1191 str += ".";
1192 }
1193 else
1194 {
1195 if( viewing_nation_recno == from_nation_recno )
1196 {
1197 str = "Le ";
1198 str += to_nation_name();
1199
1200 if( reply_type == REPLY_ACCEPT )
1201 str += " accepte";
1202 else
1203 str += " refuse";
1204
1205 str += " de prendre part � un embargo commercial contre le ";
1206 str += nation_array[talk_para1]->nation_name();
1207 str += nation_color_code_str(talk_para1);
1208 str += ".";
1209 }
1210 else
1211 {
1212 if( reply_type == REPLY_ACCEPT )
1213 str = "Vous acceptez";
1214 else
1215 str = "Vous refusez";
1216
1217 str += " de prendre part � l'embargo commercial contre le ";
1218 str += nation_array[talk_para1]->nation_name();
1219 str += nation_color_code_str(talk_para1);
1220 str += ", organis� par le ";
1221 str += from_nation_name();
1222 str += ".";
1223 }
1224 }
1225 }
1226 //------- End of function TalkMsg::request_trade_embargo ------//
1227
1228
1229 //----- Begin of function TalkMsg::request_surrender ------//
1230 //
request_surrender()1231 void TalkMsg::request_surrender()
1232 {
1233 //---------------------------------------------//
1234 //
1235 // Send:
1236 //
1237 // To unite our two Kingdoms under his rule, King
1238 // <King name> offers <amount> for your throne.
1239 //
1240 // You offer <amount> for the throne of <King>'s
1241 // Kingdom.
1242 //
1243 // Reply:
1244 //
1245 // King <king name> refuses to dishonor himself by
1246 // selling his throne!
1247 //
1248 // King <king name> agrees to take your money in
1249 // exchange for his throne.
1250 //
1251 // You refuse to dishonor yourself by selling your
1252 // throne to <King>'s kingdom.
1253 //
1254 //---------------------------------------------//
1255 //
1256 // Envoyer:
1257 //
1258 // Afin d'unifier vos deux Royaumes sous son r�gne, le Roi <King name>
1259 // vous offre <amount> pour votre tr�ne.
1260 //
1261 // Vous offrez <amount> pour r�gner sur le Royaume de <King>.
1262 //
1263 // R�pondre:
1264 //
1265 // Le Roi <king name> refuse de se d�shonorer en bradant son tr�ne !
1266 //
1267 // Le Roi <king name> accepte votre or en �change de son tr�ne.
1268 //
1269 // Vous refusez de vous d�shonorer en bradant votre tr�ne au Royaume de
1270 // <King>.
1271 //
1272 //---------------------------------------------//
1273
1274 if( reply_type == REPLY_WAITING || !should_disp_reply )
1275 {
1276 if( viewing_nation_recno == from_nation_recno )
1277 {
1278 str = "Vous offrez ";
1279 str += talk_para1*10; // *10 to restore its original value.
1280 str += " pour r�gner sur le ";
1281 str += to_nation_name();
1282 str += ".";
1283 }
1284 else
1285 {
1286 str = "Afin d'unifier vos deux Royaumes sous son r�gne, le Roi ";
1287 str += from_king_name();
1288 str += " vous offre ";
1289 str += talk_para1*10; // *10 to restore its original value.
1290 str += " pour votre tr�ne.";
1291 }
1292 }
1293 else
1294 {
1295 if( viewing_nation_recno == from_nation_recno )
1296 {
1297 str = "Le Roi ";
1298 str += to_king_name();
1299
1300 if( reply_type == REPLY_ACCEPT )
1301 str += " accepte votre or en �change de son tr�ne.";
1302 else
1303 str += " refuse de se d�shonorer en bradant son tr�ne !";
1304 }
1305 else
1306 {
1307 if( reply_type == REPLY_ACCEPT )
1308 {
1309 str = "You agree to take the money in exchange for your throne.";
1310 }
1311 else
1312 {
1313 str = "Vous refusez de vous d�shonorer en bradant votre tr�ne au ";
1314 str += from_nation_name();
1315 str += ".";
1316 }
1317 }
1318 }
1319 }
1320 //------- End of function TalkMsg::request_surrender ------//
1321
1322
1323 //----- Begin of function TalkMsg::surrender ------//
1324 //
surrender()1325 void TalkMsg::surrender()
1326 {
1327 //---------------------------------------------//
1328 //
1329 // Send:
1330 // <King>'s Kingdom offerrrendered to you.
1331 // You have surrendered to <King>'s Kingdom.
1332 //
1333 //---------------------------------------------//
1334 //
1335 // Envoyer:
1336 // Le Royaume de <King> s'est soumis � vous.
1337 // Vous abandonnez votre Royaume au Royaume de <King>.
1338 //
1339 //---------------------------------------------//
1340
1341
1342 if( viewing_nation_recno == from_nation_recno )
1343 {
1344 str = "Vous abandonnez votre Royaume au ";
1345 str += to_nation_name();
1346 str += ".";
1347 }
1348 else
1349 {
1350 str = "Le ";
1351 str += from_nation_name();
1352 str += " s'est soumis � vous.";
1353 }
1354 }
1355 //------- End of function TalkMsg::surrender ------//
1356
1357 #endif
1358