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 : OTALKSPA.CPP
22 //Description : Spanish version of the talk messages
23
24 #if(defined(SPANISH))
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("comercial");
67 break;
68
69 case TALK_PROPOSE_FRIENDLY_TREATY:
70 propose_treaty("amistoso");
71 break;
72
73 case TALK_PROPOSE_ALLIANCE_TREATY:
74 propose_treaty("de alianza");
75 break;
76
77 case TALK_END_TRADE_TREATY:
78 end_treaty("comercial");
79 break;
80
81 case TALK_END_FRIENDLY_TREATY:
82 end_treaty("amistoso");
83 break;
84
85 case TALK_END_ALLIANCE_TREATY:
86 end_treaty("de alianza");
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("tributo");
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("ayuda");
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 // Env�o:
178 //
179 // El Reino de <King> te propone un acuerdo amistoso/de alianza.
180 // Propones un acuerdo amistoso/de alianza al Reino de <King>.
181 //
182 // Respuesta:
183 //
184 // El Reino de <King> acepta/rechaza tu propuesta de
185 // acuerdo amistoso/de alianza.
186 //
187 // Aceptas/Rechazas el acuerdo amistoso/de alianza
188 // propuesto por el Reino de <King>.
189 //
190 //---------------------------------------------//
191
192 if( reply_type == REPLY_WAITING || !should_disp_reply )
193 {
194 if( viewing_nation_recno == from_nation_recno )
195 {
196 str = "Propones un acuerdo ";
197 str += treatyTypeStr;
198 str += " al ";
199 str += to_nation_name();
200 str += ".";
201 }
202 else
203 {
204 str = "El ";
205 str += from_nation_name();
206 str += " te propone un acuerdo ";
207 str += treatyTypeStr;
208 str += ".";
209 }
210 }
211 else
212 {
213 if( viewing_nation_recno == from_nation_recno )
214 {
215 str = "El ";
216 str += to_nation_name();
217
218 if( reply_type == REPLY_ACCEPT )
219 str += " acepta tu propuesta de acuerdo ";
220 else
221 str += " rechaza tu propuesta de acuerdo ";
222
223 str += treatyTypeStr;
224 str += ".";
225 }
226 else
227 {
228 if( reply_type == REPLY_ACCEPT )
229 str = "Aceptas el acuerdo ";
230 else
231 str = "Rechazas el acuerdo ";
232
233 str += treatyTypeStr;
234
235 str += " propuesto por el ";
236 str += from_nation_name();
237 str += ".";
238 }
239 }
240 }
241 //------- End of function TalkMsg::propose_treaty ------//
242
243
244 //----- Begin of function TalkMsg::end_treaty ------//
245 //
246 // talk_para1 - treaty type, NATION_FRIENDLY or NATION_ALLIANCE.
247 //
end_treaty(char * treatyTypeStr)248 void TalkMsg::end_treaty(char* treatyTypeStr)
249 {
250 //---------------------------------------------//
251 //
252 // Send:
253 // <King>'s Kingdom terminates its friendly/alliance treaty with you.
254 // You terminate your friendly/alliance treaty with <King>'s Kingdom.
255 //
256 //---------------------------------------------//
257 //
258 // Env�o:
259 // El Reino de <King> finaliza su acuerdo amistoso/de alianza contigo.
260 // Finalizas el acuerdo amistoso/de alianza con el Reino de <King>.
261 //
262 //---------------------------------------------//
263
264 if( viewing_nation_recno == from_nation_recno )
265 {
266 str = "Finalizas el acuerdo ";
267 str += treatyTypeStr;
268 str += " con el ";
269 str += to_nation_name();
270 str += ".";
271 }
272 else
273 {
274 str = "El ";
275 str += from_nation_name();
276 str += " finaliza su acuerdo ";
277 str += treatyTypeStr;
278 str += " contigo.";
279 }
280 }
281 //------- End of function TalkMsg::end_treaty ------//
282
283
284 //----- Begin of function TalkMsg::request_cease_war ------//
285 //
request_cease_war()286 void TalkMsg::request_cease_war()
287 {
288 //---------------------------------------------//
289 //
290 // Send:
291 // <King>'s Kingdom requests a cease-fire.
292 // You request a cease-fire with <King>'s Kingdom.
293 //
294 // Reply:
295 // <King>'s Kingdom agrees to a cease-fire.
296 // <King>'s Kingdom refuses a cease-fire.
297 // You agree to a cease-fire with <King>'s Kingdom.
298 // You refuse a cease-fire with <King>'s Kingdom.
299 //
300 //---------------------------------------------//
301 //
302 // Env�o:
303 // El Reino de <King> solicita un cese el fuego.
304 // Solicitas un cese el fuego al Reino de <King>.
305 //
306 // Respuesta:
307 // El Reino de <King> acepta el cese el fuego.
308 // El Reino de <King> rechaza el cese el fuego.
309 // Aceptas el cese el fuego con el Reino de <King>.
310 // Rechazas el cese el fuego con el Reino de <King>.
311 //
312 //---------------------------------------------//
313
314 if( reply_type == REPLY_WAITING || !should_disp_reply )
315 {
316 if( viewing_nation_recno == from_nation_recno )
317 {
318 str = "Solicitas un cese el fuego al ";
319 str += to_nation_name();
320 str += ".";
321 }
322 else
323 {
324 str = "El ";
325 str += from_nation_name();
326 str += " solicita un cese el fuego.";
327 }
328 }
329 else
330 {
331 if( viewing_nation_recno == from_nation_recno )
332 {
333 str = "El ";
334 str += to_nation_name();
335
336 if( reply_type == REPLY_ACCEPT )
337 str += " acepta";
338 else
339 str += " rechaza";
340
341 str += " el cese el fuego.";
342 }
343 else
344 {
345 if( reply_type == REPLY_ACCEPT )
346 str = "Aceptas";
347 else
348 str = "Rechazas";
349
350 str += " el cese el fuego con el ";
351 str += from_nation_name();
352 }
353 }
354 }
355 //------- End of function TalkMsg::request_cease_war ------//
356
357
358 //----- Begin of function TalkMsg::request_declare_war ------//
359 //
360 // talk_para1 - the recno of the nation to declare war with.
361 //
request_declare_war()362 void TalkMsg::request_declare_war()
363 {
364 //---------------------------------------------//
365 //
366 // Send:
367 // <King>'s Kingdom requests that you declare war on <King B>'s Kingdom.
368 // You request <King>'s Kingdom to declare war on <King B>'s Kingdom.
369 //
370 // Reply:
371 // <King>'s Kingdom agrees/refuses to declare war on <King B>'s Kingdom.
372 // You agree/refuse to declare war on <King B>'s Kingdom.
373 //
374 //---------------------------------------------//
375 //
376 // Env�o:
377 // El Reino de <King> solicita que declares la guerra al Reino de <King B>.
378 // Solicitas al Reino de <King> que declare la guerra al Reino de <King B>.
379 //
380 // Respuesta:
381 // El Reino de <King> acepta/rechaza declarar la guerra al Reino de <King B>.
382 // Aceptas/Rechazas declarar la guerra al Reino de <King B>.
383 //
384 //---------------------------------------------//
385
386 if( reply_type == REPLY_WAITING || !should_disp_reply )
387 {
388 if( viewing_nation_recno == from_nation_recno )
389 {
390 str = "Solicitas al ";
391 str += to_nation_name();
392 str += " que declare la guerra al ";
393 str += nation_array[talk_para1]->nation_name();
394 str += nation_color_code_str(talk_para1);
395 str += ".";
396 }
397 else
398 {
399 str = "El ";
400 str += from_nation_name();
401 str += " solicita que declares la guerra al ";
402 str += nation_array[talk_para1]->nation_name();
403 str += nation_color_code_str(talk_para1);
404 str += ".";
405 }
406
407 }
408 else
409 {
410 if( viewing_nation_recno == from_nation_recno )
411 {
412 str = "El ";
413 str += to_nation_name();
414
415 if( reply_type == REPLY_ACCEPT )
416 str += " acepta";
417 else
418 str += " rechaza";
419 }
420 else
421 {
422 if( reply_type == REPLY_ACCEPT )
423 str = "Aceptas";
424 else
425 str = "Rechazas";
426 }
427
428 str += " declarar la guerra al ";
429 str += nation_array[talk_para1]->nation_name();
430 str += nation_color_code_str(talk_para1);
431 str += ".";
432 }
433 }
434 //------- End of function TalkMsg::request_declare_war ------//
435
436
437 //----- Begin of function TalkMsg::request_buy_food ------//
438 //
439 // talk_para1 - the qty of food the nation wants to buy.
440 // talk_para2 - price offered for 10 qty of food.
441 //
request_buy_food()442 void TalkMsg::request_buy_food()
443 {
444 //---- display the second line in the reply question ----//
445 //
446 // <King>'s Kingdom offers $10 for 10 units of food.
447 //
448 //-------------------------------------------------------//
449 //
450 // El Reino de <King> ofrece $10 por 10 unidades de alimento.
451 //
452 //-------------------------------------------------------//
453
454 if( disp_second_line )
455 {
456 str = "El ";
457 str += from_nation_name();
458 str += " ofrece ";
459 str += misc.format(talk_para2,2);
460 str += " por 10 unidades de alimento.";
461
462 return;
463 }
464
465 //---------------------------------------------//
466 //
467 // Send:
468 // <King>'s Kingdom requests to purchase <amount>
469 // units of food from you.
470 //
471 // You request to purchase <amount> units of food
472 // from <King>'s Kingdom.
473 //
474 // Reply:
475 // <King>'s Kingdom agrees/refuses to sell <amount> units
476 // of food to you.
477 //
478 // You agree/refuse to sell <amount> units of food to
479 // <King>'s Kingdom.
480 //
481 //---------------------------------------------//
482 //
483 // Env�o:
484 // El Reino de <King> solicita la compra de <amount>
485 // unidades de alimento.
486 //
487 // Solicitas la compra de <amount> unidades de alimento
488 // al Reino de <King>.
489 //
490 // Respuesta:
491 // El Reino de <King> acepta/rechaza la venta de <amount> unidades
492 // de alimento.
493 //
494 // Aceptas/Rechazas la venta de <amount> unidades de alimento al
495 // Reino de <King>.
496 //
497 //---------------------------------------------//
498
499 if( reply_type == REPLY_WAITING || !should_disp_reply )
500 {
501 if( viewing_nation_recno == from_nation_recno )
502 {
503 str = "Solicitas la compra de ";
504 str += talk_para1;
505 str += " unidades de alimento al ";
506 str += to_nation_name();
507 str += ".";
508 }
509 else
510 {
511 str = "El ";
512 str += from_nation_name();
513 str += " solicita la compra de ";
514 str += talk_para1;
515 str += " unidades de alimento.";
516 }
517 }
518 else
519 {
520 if( viewing_nation_recno == from_nation_recno )
521 {
522 str = "El ";
523 str += to_nation_name();
524
525 if( reply_type == REPLY_ACCEPT )
526 str += " acepta";
527 else
528 str += " rechaza";
529
530 str += " la venta de ";
531 str += talk_para1;
532 str += " unidades de alimento.";
533 }
534 else
535 {
536 if( reply_type == REPLY_ACCEPT )
537 str = "Aceptas";
538 else
539 str = "Rechazas";
540
541 str += " la venta de ";
542 str += talk_para1;
543 str += " unidades de alimento al ";
544 str += from_nation_name();
545 str += ".";
546 }
547 }
548 }
549 //------- End of function TalkMsg::request_buy_food ------//
550
551
552 //----- Begin of function TalkMsg::declare_war ------//
553 //
declare_war()554 void TalkMsg::declare_war()
555 {
556 //---------------------------------------------//
557 //
558 // Send:
559 // <King>'s Kingdom declares war on you.
560 // You declare war on <King>'s Kingdom.
561 //
562 //---------------------------------------------//
563 //
564 // Env�o:
565 // El Reino de <King> te declara la guerra.
566 // Declaras la guerra al Reino de <King>.
567 //
568 //---------------------------------------------//
569
570 if( viewing_nation_recno == from_nation_recno )
571 {
572 str = "Declaras la guerra al ";
573 str += to_nation_name();
574 str += ".";
575 }
576 else
577 {
578 str = "El ";
579 str += from_nation_name();
580 str += " te declara la guerra.";
581 }
582 }
583 //------- End of function TalkMsg::declare_war ------//
584
585
586 //----- Begin of function TalkMsg::give_tribute ------//
587 //
588 // <char*> tributeStr - either "tribute" or "aid".
589 //
590 // talk_para1 - amount of the tribute.
591 //
give_tribute(char * tributeStr)592 void TalkMsg::give_tribute(char* tributeStr)
593 {
594 //---------------------------------------------//
595 //
596 // Send:
597 // <King>'s Kingdom offers you <$999> in aid/tribute.
598 // You offer <King>'s Kingdom <$999> in aid/tribute.
599 //
600 // Reply:
601 // <King>'s Kingdom accepts/rejects your aid/tribute of <$999>.
602 // You accept/reject the <$999> in aid/tribute from <King>'s Kingdom.
603 //
604 //---------------------------------------------//
605 //
606 // Env�o:
607 // El Reino de <King> te ofrece <$999> de ayuda/tributo.
608 // Ofreces al Reino de <King> <$999> de ayuda/tributo.
609 //
610 // Respuesta:
611 // El Reino de <King> acepta/rechaza tu ayuda/tributo de <$999>.
612 // Aceptas/Rechazas los <$999> de ayuda/tributo del Reino de <King>.
613 //
614 //---------------------------------------------//
615
616 if( reply_type == REPLY_WAITING || !should_disp_reply )
617 {
618 if( viewing_nation_recno == from_nation_recno )
619 {
620 str = "Ofreces al ";
621 str += to_nation_name();
622 str += " ";
623 str += misc.format(talk_para1, 2);
624 str += " de ";
625 str += tributeStr;
626 str += ".";
627 }
628 else
629 {
630 str = "El ";
631 str += from_nation_name();
632 str += " te ofrece ";
633 str += misc.format(talk_para1, 2);
634 str += " de ";
635 str += tributeStr;
636 str += ".";
637 }
638 }
639 else
640 {
641 if( viewing_nation_recno == from_nation_recno )
642 {
643 str = "El ";
644 str += to_nation_name();
645
646 if( reply_type == REPLY_ACCEPT )
647 str += " acepta tu ";
648 else
649 str += " rechaza tu ";
650
651 str += tributeStr;
652 str += " de ";
653 str += misc.format(talk_para1, 2);
654 str += ".";
655 }
656 else
657 {
658 if( reply_type == REPLY_ACCEPT )
659 str = "Aceptas los ";
660 else
661 str = "Rechazas los ";
662
663 str += misc.format(talk_para1, 2);
664 str += " de ";
665 str += tributeStr;
666 str += " del ";
667 str += from_nation_name();
668 str += ".";
669 }
670 }
671 }
672 //------- End of function TalkMsg::give_tribute ------//
673
674
675 //----- Begin of function TalkMsg::demand_tribute ------//
676 //
677 // <int> isAid - 1 if it's a aid, 0 if it's a tribute.
678 //
679 // talk_para1 - the amount of the tribute.
680 //
demand_tribute(int isAid)681 void TalkMsg::demand_tribute(int isAid)
682 {
683 //---------------------------------------------//
684 //
685 // Send:
686 // <King>'s Kingdom requests/demands <tribute amount> in aid/tribute
687 // from you.
688 //
689 // You request/demand <tribute amount> in aid/tribute from
690 // <King>'s Kingdom.
691 //
692 // Reply:
693 // <King>'s Kingdom agrees/refuses to give/pay you <tribute amount>
694 // in aid/tribute.
695 //
696 // You agree/refuse to give/pay <King>'s Kingdom <tribute amount>
697 // in aid/tribute.
698 //
699 //---------------------------------------------//
700 //
701 // Env�o:
702 // El Reino de <King> solicita/exige <tribute amount> de ayuda/tributo
703 // a tu Reino.
704 //
705 // Solicitas/Exiges <tribute amount> de ayuda/tributo al
706 // Reino de <King>.
707 //
708 // Respuesta:
709 // El Reino de <King> acepta/rechaza cederte/pagarte <tribute amount>
710 // de ayuda/tributo.
711 //
712 // Aceptas/Rechazas ceder/pagar al Reino de <King> <tribute amount>
713 // de ayuda/tributo.
714 //
715 //---------------------------------------------//
716
717 char* aidStr;
718
719 if( isAid )
720 aidStr = "ayuda";
721 else
722 aidStr = "tributo";
723
724 if( reply_type == REPLY_WAITING || !should_disp_reply )
725 {
726 if( viewing_nation_recno == from_nation_recno )
727 {
728 if( isAid )
729 str = "Solicitas ";
730 else
731 str = "Exiges ";
732
733 str += misc.format(talk_para1,2);
734 str += " de ";
735 str += aidStr;
736 str += " al ";
737 str += to_nation_name();
738 str += ".";
739 }
740 else
741 {
742 str = "El ";
743 str += from_nation_name();
744
745 if( isAid )
746 str += " solicita ";
747 else
748 str += " exige ";
749
750 str += misc.format(talk_para1,2);
751 str += " de ";
752 str += aidStr;
753 str += " a tu Reino.";
754 }
755 }
756 else
757 {
758 if( viewing_nation_recno == from_nation_recno )
759 {
760
761 str = "El ";
762 str += to_nation_name();
763
764 if( reply_type == REPLY_ACCEPT )
765 str += " acepta";
766 else
767 str += " rechaza";
768
769 if( isAid )
770 str += " cederte ";
771 else
772 str += " pagarte ";
773 }
774 else
775 {
776 if( reply_type == REPLY_ACCEPT )
777 str = "Aceptas";
778 else
779 str = "Rechazas";
780
781 if( isAid )
782 str += " ceder al ";
783 else
784 str += " pagar al ";
785
786 str += from_nation_name();
787 str += " ";
788 }
789
790 str += misc.format(talk_para1,2);
791 str += " de ";
792 str += aidStr;
793 str += ".";
794 }
795 }
796 //------- End of function TalkMsg::demand_tribute ------//
797
798
799 //----- Begin of function TalkMsg::give_tech ------//
800 //
801 // talk_para1 - id. of the tech given.
802 // talk_para2 - version of the tech.
803 //
give_tech()804 void TalkMsg::give_tech()
805 {
806 //---------------------------------------------//
807 //
808 // Send:
809 // <King>'s Kingdom offers <tech><version> technology to you.
810 //
811 // You offer <tech><version> technology to <King>'s Kingdom.
812 //
813 // Reply:
814 // <King>'s Kingdom accepts/rejects your gift of <tech><version>
815 // technology.
816 //
817 // You accept/reject the gift of <tech><version> technology
818 // from <King>'s Kingdom.
819 //
820 //---------------------------------------------//
821 //
822 // Env�o:
823 // El Reino de <King> te ofrece la tecnolog�a de <tech><version>.
824 //
825 // Ofreces la tecnolog�a de <tech><version> al Reino de <King>.
826 //
827 // Respuesta:
828 // El Reino de <King> acepta/rechaza tu obsequio de tecnolog�a
829 // de <tech><version>.
830 //
831 // Aceptas/Rechazas el obsequio de tecnolog�a de <tech><version>
832 // del Reino de <King>.
833 //
834 //---------------------------------------------//
835
836 if( reply_type == REPLY_WAITING || !should_disp_reply )
837 {
838 if( viewing_nation_recno == from_nation_recno )
839 {
840 str = "Ofreces la tecnolog�a de ";
841 str += tech_res[talk_para1]->tech_des();
842
843 if( talk_para2 ) // Ships do not have different versions
844 {
845 str += " ";
846 str += misc.roman_number(talk_para2);
847 }
848
849 str += " al ";
850 str += to_nation_name();
851 str += ".";
852 }
853 else
854 {
855 str = "El ";
856 str += from_nation_name();
857 str += " te ofrece la tecnolog�a de ";
858 str += tech_res[talk_para1]->tech_des();
859
860 if( talk_para2 ) // Ships do not have different versions
861 {
862 str += " ";
863 str += misc.roman_number(talk_para2);
864 }
865 str += ".";
866 }
867 }
868 else
869 {
870 if( viewing_nation_recno == from_nation_recno )
871 {
872 str = "El ";
873 str += to_nation_name();
874
875 if( reply_type == REPLY_ACCEPT )
876 str += " acepta";
877 else
878 str += " rechaza";
879 str += " tu obsequio de tecnolog�a de ";
880 str += tech_res[talk_para1]->tech_des();
881
882 if( talk_para2 ) // Ships do not have different versions
883 {
884 str += " ";
885 str += misc.roman_number(talk_para2);
886 }
887
888 str += ".";
889 }
890 else
891 {
892 if( reply_type == REPLY_ACCEPT )
893 str = "Aceptas";
894 else
895 str = "Rechazas";
896 str += " el obsequio de tecnolog�a de ";
897
898 str += tech_res[talk_para1]->tech_des();
899
900 if( talk_para2 ) // Ships do not have different versions
901 {
902 str += " ";
903 str += misc.roman_number(talk_para2);
904 }
905
906 str += " del ";
907 str += from_nation_name();
908 str += ".";
909 }
910 }
911 }
912 //------- End of function TalkMsg::give_tech ------//
913
914
915 //----- Begin of function TalkMsg::demand_tech ------//
916 //
917 // Demand for the latest version of the technology.
918 //
919 // talk_para1 - id. of the tech demanded.
920 // talk_para2 - version of the tech if the nation agrees to transfer
921 // technology.
922 //
demand_tech()923 void TalkMsg::demand_tech()
924 {
925 //---------------------------------------------//
926 //
927 // Send:
928 // <King>'s Kingdom demands/requests the latest
929 // <tech> technology from you.
930 //
931 // You demand/request the latest <tech> technology from
932 // <King>'s Kingdom.
933 //
934 // Reply:
935 // <King>'s Kingdom agrees/refuses to transfer its latest <tech>
936 // technology to you.
937 //
938 // You agree/refuse to transfer your <tech> technology to
939 // <King>'s Kingdom.
940 //
941 //---------------------------------------------//
942 //
943 // Env�o:
944 // El Reino de <King> te exige/solicita la �ltima
945 // tecnolog�a de <tech>.
946 //
947 // Exiges/Solicitas la �ltima tecnolog�a de <tech> al
948 // Reino de <King>.
949 //
950 // Respuesta:
951 // El Reino de <King> acepta/rechaza transmitirte la �ltima tecnolog�a
952 // de <tech>.
953 //
954 // Aceptas/Rechazas transmitir tu tecnolog�a de <tech> al
955 // Reino de <King>.
956 //
957 //---------------------------------------------//
958
959 char* requestStr;
960 char* requestStr2;
961
962 if( nation_array[from_nation_recno]->get_relation_status(to_nation_recno)
963 >= NATION_FRIENDLY )
964 {
965 requestStr = "solicita";
966 requestStr2 = "Solicitas";
967 }
968 else
969 {
970 requestStr = "exige";
971 requestStr2 = "Exiges";
972 }
973
974 //------------------------------------------//
975
976 if( reply_type == REPLY_WAITING || !should_disp_reply )
977 {
978 if( viewing_nation_recno == from_nation_recno )
979 {
980 str = requestStr2;
981 str += " la �ltima tecnolog�a de ";
982 str += tech_res[talk_para1]->tech_des();
983 str += " al ";
984 str += to_nation_name();
985 str += ".";
986 }
987 else
988 {
989 str = "El ";
990 str += from_nation_name();
991 str += " te ";
992 str += requestStr;
993 str += " la �ltima tecnolog�a de ";
994 str += tech_res[talk_para1]->tech_des();
995 str += ".";
996 }
997 }
998 else
999 {
1000 if( viewing_nation_recno == from_nation_recno )
1001 {
1002 str = "El ";
1003 str += to_nation_name();
1004
1005 if( reply_type == REPLY_ACCEPT )
1006 str += " acepta";
1007 else
1008 str += " rechaza";
1009
1010 str += " transmitirte la �ltima tecnolog�a de ";
1011 str += tech_res[talk_para1]->tech_des();
1012 str += ".";
1013 }
1014 else
1015 {
1016 if( reply_type == REPLY_ACCEPT )
1017 str = "Aceptas";
1018 else
1019 str = "Rechazas";
1020
1021 str += " transmitir tu tecnolog�a de ";
1022 str += tech_res[talk_para1]->tech_des();
1023 str += " al ";
1024 str += from_nation_name();
1025 str += ".";
1026 }
1027 }
1028 }
1029 //------- End of function TalkMsg::demand_tech ------//
1030
1031
1032 //----- Begin of function TalkMsg::request_military_aid ------//
1033 //
request_military_aid()1034 void TalkMsg::request_military_aid()
1035 {
1036 //---------------------------------------------//
1037 //
1038 // Send:
1039 // <King>'s Kingdom requests immediate military aid from you.
1040 // You request immediate military aid from <King>'s Kingdom.
1041 //
1042 // Reply:
1043 // <King>'s Kingdom agrees to immediately send your requested
1044 // military aid.
1045 // <King>'s Kingdom denies you your requested military aid.
1046 //
1047 // You agree to immediately send military aid to <King>'s Kingdom.
1048 // You refuse to send military aid to <King>'s Kingdom.
1049 //
1050 //---------------------------------------------//
1051 //
1052 // Env�o:
1053 // El Reino de <King> te solicita ayuda militar inmediata.
1054 // Solicitas ayuda militar inmediata al Reino de <King>.
1055 //
1056 // Respuesta:
1057 // El Reino de <King> acepta enviarte inmediatamente la ayuda
1058 // militar solicitada.
1059 // El Reino de <King> te niega la ayuda militar solicitada.
1060 //
1061 // Aceptas el env�o inmediato de ayuda militar al Reino de <King>.
1062 // Rechazas el env�o de ayuda militar al Reino de <King>.
1063 //
1064 //---------------------------------------------//
1065
1066 if( reply_type == REPLY_WAITING || !should_disp_reply )
1067 {
1068 if( viewing_nation_recno == from_nation_recno )
1069 {
1070 str = "Solicitas ayuda militar inmediata al ";
1071 str += to_nation_name();
1072 str += ".";
1073 }
1074 else
1075 {
1076 str = "El ";
1077 str += from_nation_name();
1078 str += " te solicita ayuda militar inmediata.";
1079 }
1080 }
1081 else
1082 {
1083 if( viewing_nation_recno == from_nation_recno )
1084 {
1085 str = "El ";
1086 str += to_nation_name();
1087
1088 if( reply_type == REPLY_ACCEPT )
1089 str += " acepta enviarte inmediatamente la ayuda militar solicitada.";
1090 else
1091 str += " te niega la ayuda militar solicitada.";
1092 }
1093 else
1094 {
1095 if( reply_type == REPLY_ACCEPT )
1096 str = "Aceptas el env�o inmediato de ayuda militar al ";
1097 else
1098 str = "Rechazas el env�o de ayuda militar al ";
1099
1100 str += from_nation_name();
1101 str += ".";
1102 }
1103 }
1104 }
1105 //------- End of function TalkMsg::request_military_aid ------//
1106
1107
1108 //----- Begin of function TalkMsg::request_trade_embargo ------//
1109 //
1110 // talk_para1 - the nation to have a trade embargo on.
1111 //
request_trade_embargo()1112 void TalkMsg::request_trade_embargo()
1113 {
1114 //---------------------------------------------//
1115 //
1116 // Send:
1117 // <King>'s Kingdom requests you to join an embargo on trade with
1118 // <King B>'s Kingdom.
1119 //
1120 // You request <King>'s Kingdom to join an embargo on trade with
1121 // <King B>'s Kingdom.
1122 //
1123 // Reply:
1124 // <King>'s Kingdom agrees/refuses to join an embargo on trade
1125 // with <King B>'s Kingdom.
1126 //
1127 // You agree/refuse to join an embargo on trade with <King B>'s Kingdom
1128 // as requested by <King>'s Kingdom.
1129 //
1130 //---------------------------------------------//
1131 //
1132 // Env�o:
1133 // El Reino de <King> solicita que te unas al embargo comercial del
1134 // Reino de <King B>.
1135 //
1136 // Solicitas al Reino de <King> que se una al embargo comercial del
1137 // Reino de <King B>.
1138 //
1139 // Respuesta:
1140 // El Reino de <King> acepta/rechaza unirse al embargo comercial
1141 // del Reino de <King B>.
1142 //
1143 // Aceptas/Rechazas unirte al embargo comercial del Reino de <King B>
1144 // solicitado por el Reino de <King>.
1145 //
1146 //---------------------------------------------//
1147
1148 if( reply_type == REPLY_WAITING || !should_disp_reply )
1149 {
1150 if( viewing_nation_recno == from_nation_recno )
1151 {
1152 str = "Solicitas al ";
1153 str += to_nation_name();
1154 str += " que se una ";
1155 }
1156 else
1157 {
1158 str = "El ";
1159 str += from_nation_name();
1160 str += " solicita que te unas ";
1161 }
1162
1163 str += " al embargo comercial del ";
1164 str += nation_array[talk_para1]->nation_name();
1165 str += nation_color_code_str(talk_para1);
1166 str += ".";
1167 }
1168 else
1169 {
1170 if( viewing_nation_recno == from_nation_recno )
1171 {
1172 str = "El ";
1173 str += to_nation_name();
1174
1175 if( reply_type == REPLY_ACCEPT )
1176 str += " acepta";
1177 else
1178 str += " rechaza";
1179
1180 str += " unirse al embargo comercial del ";
1181 str += nation_array[talk_para1]->nation_name();
1182 str += nation_color_code_str(talk_para1);
1183 str += ".";
1184 }
1185 else
1186 {
1187 if( reply_type == REPLY_ACCEPT )
1188 str = "Aceptas";
1189 else
1190 str = "Rechazas";
1191
1192 str += " unirte al embargo comercial del ";
1193 str += nation_array[talk_para1]->nation_name();
1194 str += nation_color_code_str(talk_para1);
1195 str += " solicitado por el ";
1196 str += from_nation_name();
1197 str += ".";
1198 }
1199 }
1200 }
1201 //------- End of function TalkMsg::request_trade_embargo ------//
1202
1203
1204 //----- Begin of function TalkMsg::request_surrender ------//
1205 //
request_surrender()1206 void TalkMsg::request_surrender()
1207 {
1208 //---------------------------------------------//
1209 //
1210 // Send:
1211 //
1212 // To unite our two Kingdoms under his rule, King
1213 // <King name> offers <amount> for your throne.
1214 //
1215 // You offer <amount> for the throne of <King>'s
1216 // Kingdom.
1217 //
1218 // Reply:
1219 //
1220 // King <king name> refuses to dishonor himself by
1221 // selling his throne!
1222 //
1223 // King <king name> agrees to take your money in
1224 // exchange for his throne.
1225 //
1226 // You refuse to dishonor yourself by selling your
1227 // throne to <King>'s kingdom.
1228 //
1229 //---------------------------------------------//
1230 //
1231 // Env�o:
1232 //
1233 // Para unificar nuestros dos Reinos bajo su reinado, el Rey
1234 // <King name> ofrece <amount> por tu trono.
1235 //
1236 // Ofreces <amount> por el trono del Reino de
1237 // <King>.
1238 //
1239 // Respuesta:
1240 //
1241 // �El Rey <king name> no acepta la deshonra de
1242 // vender su trono!
1243 //
1244 // El Rey <king name> acepta tu dinero a
1245 // cambio de su trono.
1246 //
1247 // No aceptas la deshonra de vender tu
1248 // trono al Reino de <King>.
1249 //
1250 //---------------------------------------------//
1251
1252 if( reply_type == REPLY_WAITING || !should_disp_reply )
1253 {
1254 if( viewing_nation_recno == from_nation_recno )
1255 {
1256 str = "Ofreces ";
1257 str += talk_para1*10; // *10 to restore its original value.
1258 str += " por el trono del ";
1259 str += to_nation_name();
1260 str += ".";
1261 }
1262 else
1263 {
1264 str = "Para unificar nuestros dos Reinos bajo su reinado, el ";
1265 str += from_king_name();
1266 str += " ofrece ";
1267 str += talk_para1*10; // *10 to restore its original value.
1268 str += " por tu trono.";
1269 }
1270 }
1271 else
1272 {
1273 if( viewing_nation_recno == from_nation_recno )
1274 {
1275 if( reply_type == REPLY_ACCEPT )
1276 {
1277 str = "El ";
1278 str += to_king_name();
1279 str += " acepta tu dinero a cambio de su trono.";
1280 }
1281 else
1282 {
1283 str = "�El ";
1284 str += to_king_name();
1285 str += " no acepta la deshonra de vender su trono!";
1286 }
1287 }
1288 else
1289 {
1290 if( reply_type == REPLY_ACCEPT )
1291 {
1292 str = "You agree to take the money in exchange for your throne.";
1293 }
1294 else
1295 {
1296 str = "No aceptas la deshonra de vender tu trono al ";
1297 str += from_nation_name();
1298 str += ".";
1299 }
1300 }
1301 }
1302 }
1303 //------- End of function TalkMsg::request_surrender ------//
1304
1305
1306 //----- Begin of function TalkMsg::surrender ------//
1307 //
surrender()1308 void TalkMsg::surrender()
1309 {
1310 //---------------------------------------------//
1311 //
1312 // Send:
1313 // <King>'s Kingdom offerrrendered to you.
1314 // You have surrendered to <King>'s Kingdom.
1315 //
1316 //---------------------------------------------//
1317 //
1318 // Env�o:
1319 // (incorrect) El Reino de <King> te ofrece su rendici�n.
1320 // El Reino de <King> se te ha rendido.
1321 // Te has rendido al Reino de <King>.
1322 //
1323 //---------------------------------------------//
1324
1325 if( viewing_nation_recno == from_nation_recno )
1326 {
1327 str = "Te has rendido al ";
1328 str += to_nation_name();
1329 str += ".";
1330 }
1331 else
1332 {
1333 str = "El ";
1334 str += from_nation_name();
1335 str += " se te ha rendido.";
1336 }
1337 }
1338 //------- End of function TalkMsg::surrender ------//
1339
1340 #endif
1341