OTALKSPA.cpp 30 KB

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