OTALKGER.cpp 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317
  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 : OTALKGER.CPP
  21. //Description : German version of the talk messages
  22. #ifdef GERMAN
  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("trade");
  58. break;
  59. case TALK_PROPOSE_FRIENDLY_TREATY:
  60. propose_treaty("friendly");
  61. break;
  62. case TALK_PROPOSE_ALLIANCE_TREATY:
  63. propose_treaty("alliance");
  64. break;
  65. case TALK_END_TRADE_TREATY:
  66. end_treaty("trade");
  67. break;
  68. case TALK_END_FRIENDLY_TREATY:
  69. end_treaty("friendly");
  70. break;
  71. case TALK_END_ALLIANCE_TREATY:
  72. end_treaty("alliance");
  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("tribute");
  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("aid");
  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. // Senden:
  146. //
  147. // <King>'s Königreich schlägt Ihnen Freundschafts-/Beistands- Pakt vor.
  148. // Sie schlagen <King>'s Königreich Freundschafts-/Beistands- Pakt vor.
  149. //
  150. // Antwort:
  151. //
  152. // <King>'s Königreich akzeptiert/verweigert Ihren Vorschlag für
  153. // einen Freundschafts-/Beistands- Pakt.
  154. //
  155. // Sie akzeptierten/verweigern den von <King>'s Königreich
  156. // vorgeschlagenen Freundschafts-/Beistands- Pakt.
  157. //
  158. //---------------------------------------------//
  159. String treatyStr;
  160. treatyStr = treatyTypeStr;
  161. treatyStr += " treaty";
  162. treatyStr = translate.process(treatyStr);
  163. //--------------------------------------//
  164. if( reply_type == REPLY_WAITING || !should_disp_reply )
  165. {
  166. if( viewing_nation_recno == from_nation_recno )
  167. {
  168. str = "Sie schlagen ";
  169. str += to_nation_name();
  170. str += " ";
  171. str += treatyStr;
  172. str += " vor.";
  173. }
  174. else
  175. {
  176. str = from_nation_name();
  177. str += " schlägt Ihnen ";
  178. str += treatyStr;
  179. str += " vor.";
  180. }
  181. }
  182. else
  183. {
  184. if( viewing_nation_recno == from_nation_recno )
  185. {
  186. str = to_nation_name();
  187. if( reply_type == REPLY_ACCEPT )
  188. str += " akzeptiert ";
  189. else
  190. str += " verweigert ";
  191. str += "Ihren Vorschlag für einen ";
  192. str += treatyStr;
  193. str += ".";
  194. }
  195. else
  196. {
  197. if( reply_type == REPLY_ACCEPT )
  198. str = "Sie akzeptierten ";
  199. else
  200. str = "Sie verweigern ";
  201. str += "den von ";
  202. str += from_nation_name();
  203. str += " vorgeschlagenen ";
  204. str += treatyStr;
  205. str += ".";
  206. }
  207. }
  208. }
  209. //------- End of function TalkMsg::propose_treaty ------//
  210. //----- Begin of function TalkMsg::end_treaty ------//
  211. //
  212. // talk_para1 - treaty type, NATION_FRIENDLY or NATION_ALLIANCE.
  213. //
  214. void TalkMsg::end_treaty(char* treatyTypeStr)
  215. {
  216. String treatyStr;
  217. treatyStr = treatyTypeStr;
  218. treatyStr += " treaty";
  219. treatyStr = translate.process(treatyStr);
  220. //---------------------------------------------//
  221. //
  222. // Send:
  223. // <King>'s Kingdom terminates its friendly/alliance treaty with you.
  224. // You terminate your friendly/alliance treaty with <King>'s Kingdom.
  225. //
  226. //---------------------------------------------//
  227. //
  228. // Senden:
  229. // <King>'s Königreich kündigt den Freundschafts-/Beistands- Pakt mit Ihnen.
  230. // Sie kündigen Ihren Freundschafts-/Beistands- Pakt mit <King>'s Königreich.
  231. //
  232. //---------------------------------------------//
  233. if( viewing_nation_recno == from_nation_recno )
  234. {
  235. str = "Sie kündigen Ihren ";
  236. str += treatyStr;
  237. str += " mit ";
  238. str += to_nation_name();
  239. str += ".";
  240. }
  241. else
  242. {
  243. str = from_nation_name();
  244. str += " kündigt den ";
  245. str += treatyStr;
  246. str += " mit Ihnen.";
  247. }
  248. }
  249. //------- End of function TalkMsg::end_treaty ------//
  250. //----- Begin of function TalkMsg::request_cease_war ------//
  251. //
  252. void TalkMsg::request_cease_war()
  253. {
  254. //---------------------------------------------//
  255. //
  256. // Send:
  257. // <King>'s Kingdom requests a cease-fire.
  258. // You request a cease-fire with <King>'s Kingdom.
  259. //
  260. // Reply:
  261. // <King>'s Kingdom agrees to a cease-fire.
  262. // <King>'s Kingdom refuses a cease-fire.
  263. // You agree to a cease-fire with <King>'s Kingdom.
  264. // You refuse a cease-fire with <King>'s Kingdom.
  265. //
  266. //---------------------------------------------//
  267. //
  268. // Senden:
  269. // <King>'s Königreich erbittet Waffenstillstand.
  270. // Sie bitten <King>'s Königreich um Waffenstillstand.
  271. //
  272. // Antwort:
  273. // <King>'s Königreich akzeptiert den Waffenstillstand.
  274. // <King>'s Königreich verweigert den Waffenstillstand.
  275. // Sie akzeptieren den Waffenstillstand mit <King>'s Königreich.
  276. // Sie verweigern Waffenstillstand mit <King>'s Königreich.
  277. //
  278. //---------------------------------------------//
  279. if( reply_type == REPLY_WAITING || !should_disp_reply )
  280. {
  281. if( viewing_nation_recno == from_nation_recno )
  282. {
  283. str = "Sie bitten ";
  284. str += to_nation_name();
  285. str += " um Waffenstillstand.";
  286. }
  287. else
  288. {
  289. str = from_nation_name();
  290. str += " erbittet Waffenstillstand.";
  291. }
  292. }
  293. else
  294. {
  295. if( viewing_nation_recno == from_nation_recno )
  296. {
  297. str = to_nation_name();
  298. if( reply_type == REPLY_ACCEPT )
  299. str += " akzeptiert";
  300. else
  301. str += " verweigert";
  302. str += " den Waffenstillstand.";
  303. }
  304. else
  305. {
  306. if( reply_type == REPLY_ACCEPT )
  307. str = "Sie akzeptieren den";
  308. else
  309. str = "Sie verweigern";
  310. str += " Waffenstillstand mit ";
  311. str += from_nation_name();
  312. }
  313. }
  314. }
  315. //------- End of function TalkMsg::request_cease_war ------//
  316. //----- Begin of function TalkMsg::request_declare_war ------//
  317. //
  318. // talk_para1 - the recno of the nation to declare war with.
  319. //
  320. void TalkMsg::request_declare_war()
  321. {
  322. //---------------------------------------------//
  323. //
  324. // Send:
  325. // <King>'s Kingdom requests that you declare war on <King B>'s Kingdom.
  326. // You request <King>'s Kingdom to declare war on <King B>'s Kingdom.
  327. //
  328. // Reply:
  329. // <King>'s Kingdom agrees/refuses to declare war on <King B>'s Kingdom.
  330. // You agree/refuse to declare war on <King B>'s Kingdom.
  331. //
  332. //---------------------------------------------//
  333. //
  334. // Senden:
  335. // <King>'s Königreich erbittet Ihre Kriegserklärung gegen <King B>'s Königreich.
  336. // Sie bitten <King>'s Königreich um Kriegserklärung gegen <King B>'s Königreich.
  337. //
  338. // Antwort:
  339. // <King>'s Königreich akzeptiert/verweigert Kriegserklärung gegen <King B>'s Königreich.
  340. // Sie akzeptieren/verweigern Kriegserklärung gegen <King B>'s Königreich.
  341. //
  342. //---------------------------------------------//
  343. if( reply_type == REPLY_WAITING || !should_disp_reply )
  344. {
  345. if( viewing_nation_recno == from_nation_recno )
  346. {
  347. str = "Sie bitten ";
  348. str += to_nation_name();
  349. str += " um";
  350. }
  351. else
  352. {
  353. str = from_nation_name();
  354. str += " erbittet Ihre";
  355. }
  356. str += " Kriegserklärung gegen ";
  357. str += nation_array[talk_para1]->nation_name();
  358. str += nation_color_code_str(talk_para1);
  359. str += ".";
  360. }
  361. else
  362. {
  363. if( viewing_nation_recno == from_nation_recno )
  364. {
  365. str = to_nation_name();
  366. if( reply_type == REPLY_ACCEPT )
  367. str += " akzeptiert";
  368. else
  369. str += " verweigert";
  370. }
  371. else
  372. {
  373. if( reply_type == REPLY_ACCEPT )
  374. str = "Sie akzeptieren";
  375. else
  376. str = "Sie verweigern";
  377. }
  378. str += " Kriegserklärung gegen ";
  379. str += nation_array[talk_para1]->nation_name();
  380. str += nation_color_code_str(talk_para1);
  381. str += ".";
  382. }
  383. }
  384. //------- End of function TalkMsg::request_declare_war ------//
  385. //----- Begin of function TalkMsg::request_buy_food ------//
  386. //
  387. // talk_para1 - the qty of food the nation wants to buy.
  388. // talk_para2 - price offered for 10 qty of food.
  389. //
  390. void TalkMsg::request_buy_food()
  391. {
  392. //---- display the second line in the reply question ----//
  393. //
  394. // <King>'s Kingdom offers $10 for 10 units of food.
  395. //
  396. //-------------------------------------------------------//
  397. //
  398. // <King>'s Königreich bietet $10 für 10 Nahrungseinheiten.
  399. //
  400. //-------------------------------------------------------//
  401. if( disp_second_line )
  402. {
  403. str = from_nation_name();
  404. str += " bietet ";
  405. str += m.format(talk_para2,2);
  406. str += " für 10 Nahrungseinheiten.";
  407. return;
  408. }
  409. //---------------------------------------------//
  410. //
  411. // Send:
  412. // <King>'s Kingdom requests to purchase <amount>
  413. // units of food from you.
  414. //
  415. // You request to purchase <amount> units of food
  416. // from <King>'s Kingdom.
  417. //
  418. // Reply:
  419. // <King>'s Kingdom agrees/refuses to sell <amount> units
  420. // of food to you.
  421. //
  422. // You agree/refuse to sell <amount> units of food to
  423. // <King>'s Kingdom.
  424. //
  425. //---------------------------------------------//
  426. //
  427. // Senden:
  428. // <King>'s Königreich erbittet Kauf von <amount>
  429. // Nahrungs-Einheiten von Ihnen.
  430. //
  431. // Sie bitten um Kauf von <amount> Nahrungs-
  432. // Einheiten von <King>'s Königreich.
  433. //
  434. // Antwort:
  435. // <King>'s Königreich akzeptiert/verweigert den Verkauf von
  436. // <amount> Nahrungs-Einheiten an Sie.
  437. //
  438. // Sie akzeptieren/verweigern den Verkauf von <amount>
  439. // Nahrungs-Einheiten an <King>'s Königreich.
  440. //
  441. //---------------------------------------------//
  442. if( reply_type == REPLY_WAITING || !should_disp_reply )
  443. {
  444. if( viewing_nation_recno == from_nation_recno )
  445. {
  446. str = "Sie bitten um Kauf von ";
  447. str += talk_para1;
  448. str += " Nahrungs-Einheiten von ";
  449. str += to_nation_name();
  450. str += ".";
  451. }
  452. else
  453. {
  454. str = from_nation_name();
  455. str += " erbittet Kauf von ";
  456. str += talk_para1;
  457. str += " Nahrungs-Einheiten von Ihnen.";
  458. }
  459. }
  460. else
  461. {
  462. if( viewing_nation_recno == from_nation_recno )
  463. {
  464. str = to_nation_name();
  465. if( reply_type == REPLY_ACCEPT )
  466. str += " akzeptiert";
  467. else
  468. str += " verweigert";
  469. str += " den Verkauf von ";
  470. str += talk_para1;
  471. str += " Nahrungs-Einheiten an Sie.";
  472. }
  473. else
  474. {
  475. if( reply_type == REPLY_ACCEPT )
  476. str = "Sie akzeptieren";
  477. else
  478. str = "Sie verweigern";
  479. str += " den Verkauf von ";
  480. str += talk_para1;
  481. str += " Nahrungs-Einheiten an ";
  482. str += from_nation_name();
  483. str += ".";
  484. }
  485. }
  486. }
  487. //------- End of function TalkMsg::request_buy_food ------//
  488. //----- Begin of function TalkMsg::declare_war ------//
  489. //
  490. void TalkMsg::declare_war()
  491. {
  492. //---------------------------------------------//
  493. //
  494. // Send:
  495. // <King>'s Kingdom declares war on you.
  496. // You declare war on <King>'s Kingdom.
  497. //
  498. //---------------------------------------------//
  499. //
  500. // Senden:
  501. // <King>'s Königreich erklärt Ihnen den Krieg.
  502. // Sie erklären <King>'s Königreich den Krieg.
  503. //
  504. //---------------------------------------------//
  505. if( viewing_nation_recno == from_nation_recno )
  506. {
  507. str = "Sie erklären ";
  508. str += to_nation_name();
  509. str += " den Krieg.";
  510. }
  511. else
  512. {
  513. str = from_nation_name();
  514. str += " erklärt Ihnen den Krieg.";
  515. }
  516. }
  517. //------- End of function TalkMsg::declare_war ------//
  518. //----- Begin of function TalkMsg::give_tribute ------//
  519. //
  520. // <char*> tributeStr - either "tribute" or "aid".
  521. //
  522. // talk_para1 - amount of the tribute.
  523. //
  524. void TalkMsg::give_tribute(char* tributeTypeStr)
  525. {
  526. //---------------------------------------------//
  527. //
  528. // Send:
  529. // <King>'s Kingdom offers you <$999> in aid/tribute.
  530. // You offer <King>'s Kingdom <$999> in aid/tribute.
  531. //
  532. // Reply:
  533. // <King>'s Kingdom accepts/rejects your aid/tribute of <$999>.
  534. // You accept/reject the <$999> in aid/tribute from <King>'s Kingdom.
  535. //
  536. //---------------------------------------------//
  537. //
  538. // Senden:
  539. // <King>'s Königreich bietet Ihnen <$999> Hilfe/Tribut an.
  540. // Sie bieten <King>'s Königreich <$999> Hilfe/Tribut an.
  541. //
  542. // Antwort:
  543. // <King>'s Königreich akzeptiert/verweigert Hilfe/Tribut von <$999>.
  544. // Sie akzeptieren/verweigern <$999> Hilfe/Tribut von <King>'s Königreich.
  545. //
  546. //---------------------------------------------//
  547. String tributeStr;
  548. tributeStr = translate.process(tributeTypeStr);
  549. if( reply_type == REPLY_WAITING || !should_disp_reply )
  550. {
  551. if( viewing_nation_recno == from_nation_recno )
  552. {
  553. str = "Sie bieten ";
  554. str += to_nation_name();
  555. str += " ";
  556. str += m.format(talk_para1, 2);
  557. str += " ";
  558. str += tributeStr;
  559. str += " an.";
  560. }
  561. else
  562. {
  563. str = from_nation_name();
  564. str += " bietet Ihnen ";
  565. str += m.format(talk_para1, 2);
  566. str += " ";
  567. str += tributeStr;
  568. str += " an.";
  569. }
  570. }
  571. else
  572. {
  573. if( viewing_nation_recno == from_nation_recno )
  574. {
  575. str = to_nation_name();
  576. if( reply_type == REPLY_ACCEPT )
  577. str += " akzeptiert ";
  578. else
  579. str += " verweigert ";
  580. str += tributeStr;
  581. str += " von ";
  582. str += m.format(talk_para1, 2);
  583. str += ".";
  584. }
  585. else
  586. {
  587. if( reply_type == REPLY_ACCEPT )
  588. str = "Sie akzeptieren ";
  589. else
  590. str = "Sie verweigern ";
  591. str += m.format(talk_para1, 2);
  592. str += " ";
  593. str += tributeStr;
  594. str += " von ";
  595. str += from_nation_name();
  596. str += ".";
  597. }
  598. }
  599. }
  600. //------- End of function TalkMsg::give_tribute ------//
  601. //----- Begin of function TalkMsg::demand_tribute ------//
  602. //
  603. // <int> isAid - 1 if it's a aid, 0 if it's a tribute.
  604. //
  605. // talk_para1 - the amount of the tribute.
  606. //
  607. void TalkMsg::demand_tribute(int isAid)
  608. {
  609. //---------------------------------------------//
  610. //
  611. // Send:
  612. // <King>'s Kingdom requests/demands <tribute amount> in aid/tribute
  613. // from you.
  614. //
  615. // You request/demand <tribute amount> in aid/tribute from
  616. // <King>'s Kingdom.
  617. //
  618. // Reply:
  619. // <King>'s Kingdom agrees/refuses to give/pay you <tribute amount>
  620. // in aid/tribute.
  621. //
  622. // You agree/refuse to give/pay <King>'s Kingdom <tribute amount>
  623. // in aid/tribute.
  624. //
  625. //---------------------------------------------//
  626. //
  627. // Senden:
  628. // <King>'s Königreich erbittet/verlangt <tribute amount> Hilfe/Tribut
  629. // von Ihnen.
  630. //
  631. // Sie erbitten/verlangen <tribute amount> Hilfe/Tribut von
  632. // <King>'s Königreich.
  633. //
  634. // Antwort:
  635. // <King>'s Königreich akzeptiert/verweigert Zahlung von <tribute amount>
  636. // Hilfe/Tribut an Sie. //CAUTION: No more alternating 'give/pay', just only: 'Zahlung'!
  637. //
  638. // Sie akzeptieren/verweigern Zahlung von <tribute amount> Hilfe/Tribut
  639. // an <King>'s Königreich. // The same here....
  640. //
  641. //---------------------------------------------//
  642. char* aidStr;
  643. if( isAid )
  644. aidStr = "Hilfe";
  645. else
  646. aidStr = "Tribut";
  647. if( reply_type == REPLY_WAITING || !should_disp_reply )
  648. {
  649. if( viewing_nation_recno == from_nation_recno )
  650. {
  651. if( isAid )
  652. str = "Sie erbitten ";
  653. else
  654. str = "Sie verlangen ";
  655. str += m.format(talk_para1,2);
  656. str += " ";
  657. str += aidStr;
  658. str += " von ";
  659. str += to_nation_name();
  660. str += ".";
  661. }
  662. else
  663. {
  664. str = from_nation_name();
  665. if( isAid )
  666. str += " erbittet ";
  667. else
  668. str += " verlangt ";
  669. str += m.format(talk_para1,2);
  670. str += " ";
  671. str += aidStr;
  672. str += " von Ihnen.";
  673. }
  674. }
  675. else
  676. {
  677. if( viewing_nation_recno == from_nation_recno )
  678. {
  679. str = to_nation_name();
  680. if( reply_type == REPLY_ACCEPT )
  681. str += " akzeptiert";
  682. else
  683. str += " verweigert Zahlung von ";
  684. str += m.format(talk_para1,2);
  685. str += " ";
  686. str += aidStr;
  687. str += ".";
  688. }
  689. else
  690. {
  691. if( reply_type == REPLY_ACCEPT )
  692. str = "Sie akzeptieren";
  693. else
  694. str = "Sie verweigern";
  695. str += " Zahlung von ";
  696. str += m.format(talk_para1,2);
  697. str += " ";
  698. str += aidStr;
  699. str += " an ";
  700. str += from_nation_name();
  701. str += ".";
  702. }
  703. }
  704. }
  705. //------- End of function TalkMsg::demand_tribute ------//
  706. //----- Begin of function TalkMsg::give_tech ------//
  707. //
  708. // talk_para1 - id. of the tech given.
  709. // talk_para2 - version of the tech.
  710. //
  711. void TalkMsg::give_tech()
  712. {
  713. //---------------------------------------------//
  714. //
  715. // Send:
  716. // <King>'s Kingdom offers <tech><version> technology to you.
  717. //
  718. // You offer <tech><version> technology to <King>'s Kingdom.
  719. //
  720. // Reply:
  721. // <King>'s Kingdom accepts/rejects your gift of <tech><version>
  722. // technology.
  723. //
  724. // You accept/reject the gift of <tech><version> technology
  725. // from <King>'s Kingdom.
  726. //
  727. //---------------------------------------------//
  728. //
  729. // Senden:
  730. // <King>'s Königreich bietet Ihnen die <tech><version> -Technologie an.
  731. //
  732. // Sie bieten <King>'s Königreich die <tech><version> -Technologie an.
  733. //
  734. // Antwort:
  735. // <King>'s Königreich akzeptiert/verweigert Ihr Angebot der <tech><version>
  736. // -Technologie.
  737. //
  738. // Sie akzeptieren/verweigern das Angebot der <tech><version> -Technologie
  739. // von <King>'s Königreich.
  740. //
  741. //---------------------------------------------//
  742. if( reply_type == REPLY_WAITING || !should_disp_reply )
  743. {
  744. if( viewing_nation_recno == from_nation_recno )
  745. {
  746. str = "Sie bieten ";
  747. str += to_nation_name();
  748. }
  749. else
  750. {
  751. str = from_nation_name();
  752. str += " bietet Ihnen";
  753. }
  754. str += " die ";
  755. // BUGHERE : Is technology description translated?
  756. str += tech_res[talk_para1]->tech_des();
  757. if( talk_para2 ) // Ships do not have different versions
  758. {
  759. str += " ";
  760. str += m.roman_number(talk_para2);
  761. }
  762. str += " -Technologie an.";
  763. }
  764. else
  765. {
  766. if( viewing_nation_recno == from_nation_recno )
  767. {
  768. str = to_nation_name();
  769. if( reply_type == REPLY_ACCEPT )
  770. str += " akzeptiert";
  771. else
  772. str += " verweigert";
  773. str += " Ihr Angebot der ";
  774. str += tech_res[talk_para1]->tech_des();
  775. if( talk_para2 ) // Ships do not have different versions
  776. {
  777. str += " ";
  778. str += m.roman_number(talk_para2);
  779. }
  780. str += " -Technologie.";
  781. }
  782. else
  783. {
  784. if( reply_type == REPLY_ACCEPT )
  785. str = "Sie akzeptieren";
  786. else
  787. str = "Sie verweigern";
  788. str += " das Angebot der ";
  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 += " -Technologie von ";
  796. str += from_nation_name();
  797. str += ".";
  798. }
  799. }
  800. }
  801. //------- End of function TalkMsg::give_tech ------//
  802. //----- Begin of function TalkMsg::demand_tech ------//
  803. //
  804. // Demand for the latest version of the technology.
  805. //
  806. // talk_para1 - id. of the tech demanded.
  807. // talk_para2 - version of the tech if the nation agrees to transfer
  808. // technology.
  809. //
  810. void TalkMsg::demand_tech()
  811. {
  812. //---------------------------------------------//
  813. //
  814. // Send:
  815. // <King>'s Kingdom demands/requests the latest
  816. // <tech> technology from you.
  817. //
  818. // You demand/request the latest <tech> technology from
  819. // <King>'s Kingdom.
  820. //
  821. // Reply:
  822. // <King>'s Kingdom agrees/refuses to transfer its latest <tech>
  823. // technology to you.
  824. //
  825. // You agree/refuse to transfer your <tech> technology to
  826. // <King>'s Kingdom.
  827. //
  828. //---------------------------------------------//
  829. //
  830. // Senden:
  831. // <King>'s Königreich verlangt/erbittet die neueste
  832. // <tech> -Technologie von Ihnen.
  833. //
  834. // Sie verlangen/erbitten die neueste <tech> -Technologie von
  835. // <King>'s Königreich.
  836. //
  837. // Antwort:
  838. // <King>'s Königreich akzeptiert/verweigert den Transfer seiner neuesten
  839. // <tech> -Technology an Sie.
  840. //
  841. // Sie akzeptieren/verweigern den Transfer der neuesten <tech> -Technologie
  842. // an <King>'s Königreich.
  843. //
  844. //---------------------------------------------//
  845. char friendRelation = ( nation_array[from_nation_recno]->get_relation_status(to_nation_recno)
  846. >= NATION_FRIENDLY );
  847. //------------------------------------------//
  848. if( reply_type == REPLY_WAITING || !should_disp_reply )
  849. {
  850. if( viewing_nation_recno == from_nation_recno )
  851. {
  852. if( friendRelation )
  853. str = "Sie erbitten";
  854. else
  855. str = "Sie verlangen";
  856. str += " die neueste ";
  857. str += tech_res[talk_para1]->tech_des();
  858. str += " -Technologie von ";
  859. str += to_nation_name();
  860. str += ".";
  861. }
  862. else
  863. {
  864. str = from_nation_name();
  865. if( friendRelation )
  866. str = " erbittet";
  867. else
  868. str = " verlangt";
  869. str += " die neueste ";
  870. str += tech_res[talk_para1]->tech_des();
  871. str += " -Technologie von Ihnen";
  872. }
  873. }
  874. else
  875. {
  876. if( viewing_nation_recno == from_nation_recno )
  877. {
  878. str = to_nation_name();
  879. if( reply_type == REPLY_ACCEPT )
  880. str += " akzeptiert";
  881. else
  882. str += " verweigert";
  883. str += " den Transfer seiner neuesten ";
  884. str += tech_res[talk_para1]->tech_des();
  885. str += " -Technology an Sie.";
  886. }
  887. else
  888. {
  889. if( reply_type == REPLY_ACCEPT )
  890. str = "Sie akzeptieren";
  891. else
  892. str = "Sie verweigern";
  893. str += " den Transfer der neuesten ";
  894. str += tech_res[talk_para1]->tech_des();
  895. str += " -Technologie an ";
  896. str += from_nation_name();
  897. str += ".";
  898. }
  899. }
  900. }
  901. //------- End of function TalkMsg::demand_tech ------//
  902. //----- Begin of function TalkMsg::request_military_aid ------//
  903. //
  904. void TalkMsg::request_military_aid()
  905. {
  906. //---------------------------------------------//
  907. //
  908. // Send:
  909. // <King>'s Kingdom requests immediate military aid from you.
  910. // You request immediate military aid from <King>'s Kingdom.
  911. //
  912. // Reply:
  913. // <King>'s Kingdom agrees to immediately send your requested
  914. // military aid.
  915. // <King>'s Kingdom denies you your requested military aid.
  916. //
  917. // You agree to immediately send military aid to <King>'s Kingdom.
  918. // You refuse to send military aid to <King>'s Kingdom.
  919. //
  920. //---------------------------------------------//
  921. //
  922. // Senden:
  923. // <King>'s Königreich erbittet militärische Soforthilfe von Ihnen.
  924. // Sie erbitten militärische Soforthilfe von <King>'s Königreich.
  925. //
  926. // Antwort:
  927. // <King>'s Königreich akzeptiert, sofort die erbetene militärische
  928. // Hilfe zu entsenden.
  929. // <King>'s Königreich verweigert die militärische Soforthilfe.
  930. //
  931. // Sie akzeptieren die Entsendung von militärischer Soforthilfe zu <King>'s Königreich.
  932. // Sie verweigern die Entsendung der militärischen Soforthilfe zu <King>'s Königreich.
  933. //
  934. //---------------------------------------------//
  935. if( reply_type == REPLY_WAITING || !should_disp_reply )
  936. {
  937. if( viewing_nation_recno == from_nation_recno )
  938. {
  939. str = "Sie erbitten militärische Soforthilfe von ";
  940. str += to_nation_name();
  941. str += ".";
  942. }
  943. else
  944. {
  945. str = from_nation_name();
  946. str += " erbittet militärische Soforthilfe von Ihnen.";
  947. }
  948. }
  949. else
  950. {
  951. if( viewing_nation_recno == from_nation_recno )
  952. {
  953. str = to_nation_name();
  954. if( reply_type == REPLY_ACCEPT )
  955. str += " akzeptiert, sofort die erbetene militärische Hilfe zu entsenden.";
  956. else
  957. str += " verweigert die militärische Soforthilfe.";
  958. }
  959. else
  960. {
  961. if( reply_type == REPLY_ACCEPT )
  962. str = "Sie akzeptieren die Entsendung von militärischer Soforthilfe zu ";
  963. else
  964. str = "Sie verweigern die Entsendung der militärischen Soforthilfe zu ";
  965. str += from_nation_name();
  966. str += ".";
  967. }
  968. }
  969. }
  970. //------- End of function TalkMsg::request_military_aid ------//
  971. //----- Begin of function TalkMsg::request_trade_embargo ------//
  972. //
  973. // talk_para1 - the nation to have a trade embargo on.
  974. //
  975. void TalkMsg::request_trade_embargo()
  976. {
  977. //---------------------------------------------//
  978. //
  979. // Send:
  980. // <King>'s Kingdom requests you to join an embargo on trade with
  981. // <King B>'s Kingdom.
  982. //
  983. // You request <King>'s Kingdom to join an embargo on trade with
  984. // <King B>'s Kingdom.
  985. //
  986. // Reply:
  987. // <King>'s Kingdom agrees/refuses to join an embargo on trade
  988. // with <King B>'s Kingdom.
  989. //
  990. // You agree/refuse to join an embargo on trade with <King B>'s Kingdom
  991. // as requested by <King>'s Kingdom.
  992. //
  993. //---------------------------------------------//
  994. //
  995. // Senden:
  996. // <King>'s Königreich bittet Sie, sich einem Handels-Embargo gegen
  997. // <King B>'s Königreich anzuschließen.
  998. //
  999. // Sie bitten <King>'s Königreich, sich einem Handels-Embargo gegen
  1000. // <King B>'s Königreich anzuschließen.
  1001. //
  1002. // Antwort:
  1003. // <King>'s Königreich akzeptiert/verweigert, sich dem Handels-Embargo gegen
  1004. // <King B>'s Königreich anzuschließen.
  1005. //
  1006. // Sie akzeptieren/verweigern, sich dem Handels-Embargo gegen <King B>'s
  1007. // Königreich anzuschließen, das von <King>'s Königreich erbeten wurde.
  1008. //
  1009. //---------------------------------------------//
  1010. if( reply_type == REPLY_WAITING || !should_disp_reply )
  1011. {
  1012. if( viewing_nation_recno == from_nation_recno )
  1013. {
  1014. str = "Sie bitten ";
  1015. str += to_nation_name();
  1016. }
  1017. else
  1018. {
  1019. str = from_nation_name();
  1020. str += " bittet Sie";
  1021. }
  1022. str += ", sich einem Handels-Embargo gegen ";
  1023. str += nation_array[talk_para1]->nation_name();
  1024. str += nation_color_code_str(talk_para1);
  1025. str += " anzuschließen.";
  1026. }
  1027. else
  1028. {
  1029. if( viewing_nation_recno == from_nation_recno )
  1030. {
  1031. str = to_nation_name();
  1032. if( reply_type == REPLY_ACCEPT )
  1033. str += " akzeptiert";
  1034. else
  1035. str += " verweigert";
  1036. str += ", sich dem Handels-Embargo gegen ";
  1037. str += nation_array[talk_para1]->nation_name();
  1038. str += nation_color_code_str(talk_para1);
  1039. str += " anzuschließen.";
  1040. }
  1041. else
  1042. {
  1043. if( reply_type == REPLY_ACCEPT )
  1044. str = "Sie akzeptieren";
  1045. else
  1046. str = "Sie verweigern";
  1047. str += ", sich dem Handels-Embargo gegen ";
  1048. str += nation_array[talk_para1]->nation_name();
  1049. str += nation_color_code_str(talk_para1);
  1050. str += " anzuschließen, das von ";
  1051. str += from_nation_name();
  1052. str += " erbeten wurde.";
  1053. }
  1054. }
  1055. }
  1056. //------- End of function TalkMsg::request_trade_embargo ------//
  1057. //----- Begin of function TalkMsg::request_surrender ------//
  1058. //
  1059. void TalkMsg::request_surrender()
  1060. {
  1061. //---------------------------------------------//
  1062. //
  1063. // Send:
  1064. //
  1065. // To unite our two Kingdoms under his rule, King
  1066. // <King name> offers <amount> for your throne.
  1067. //
  1068. // You offer <amount> for the throne of <King>'s
  1069. // Kingdom.
  1070. //
  1071. // Reply:
  1072. //
  1073. // King <king name> refuses to dishonor himself by
  1074. // selling his throne!
  1075. //
  1076. // King <king name> agrees to take your money in
  1077. // exchange for his throne.
  1078. //
  1079. // You refuse to dishonor yourself by selling your
  1080. // throne to <King>'s kingdom.
  1081. //
  1082. //---------------------------------------------//
  1083. //
  1084. // Senden:
  1085. //
  1086. // Um beide Königreiche zu vereinen, bietet Ihnen
  1087. // <King name> den Betrag von <amount> für Ihren Thron an.
  1088. //
  1089. // Sie bieten <amount> für den Thron von <King>'s
  1090. // Königreich.
  1091. //
  1092. // Antwort:
  1093. //
  1094. // <king name> verweigert, sich selbst zu entehren,
  1095. // indem er seinen Thron verkauft!
  1096. //
  1097. // <king name> akzeptiert Ihre Zahlung im Tausch
  1098. // für seinen Thron.
  1099. //
  1100. // Sie verweigen es, sich selbst zu entehren, indem Sie Ihren
  1101. // Thron an <King>'s Königreich verkaufen.
  1102. //
  1103. //---------------------------------------------//
  1104. if( reply_type == REPLY_WAITING || !should_disp_reply )
  1105. {
  1106. if( viewing_nation_recno == from_nation_recno )
  1107. {
  1108. str = "Sie bieten ";
  1109. str += talk_para1*10; // *10 to restore its original value.
  1110. str += " für den Thron von ";
  1111. str += to_nation_name();
  1112. str += ".";
  1113. }
  1114. else
  1115. {
  1116. str = "Um beide Königreiche zu vereinen, bietet Ihnen ";
  1117. str += from_king_name();
  1118. str += " den Betrag von ";
  1119. str += talk_para1*10; // *10 to restore its original value.
  1120. str += " für Ihren Thron an.";
  1121. }
  1122. }
  1123. else
  1124. {
  1125. if( viewing_nation_recno == from_nation_recno )
  1126. {
  1127. str = to_king_name();
  1128. if( reply_type == REPLY_ACCEPT )
  1129. str += " akzeptiert Ihre Zahlung im Tausch für seinen Thron.";
  1130. else
  1131. str += " verweigert, sich selbst zu entehren, indem er seinen Thron verkauft!";
  1132. }
  1133. else
  1134. {
  1135. if( reply_type == REPLY_ACCEPT )
  1136. {
  1137. // BUGHERE : not translated, but this message never appears
  1138. str = "You agree to take the money in exchange for your throne.";
  1139. }
  1140. else
  1141. {
  1142. str = "Sie verweigen es, sich selbst zu entehren, indem Sie Ihren Thron an ";
  1143. str += from_nation_name();
  1144. str += " verkaufen.";
  1145. }
  1146. }
  1147. }
  1148. }
  1149. //------- End of function TalkMsg::request_surrender ------//
  1150. //----- Begin of function TalkMsg::surrender ------//
  1151. //
  1152. void TalkMsg::surrender()
  1153. {
  1154. //---------------------------------------------//
  1155. //
  1156. // Send:
  1157. // <King>'s Kingdom offerrrendered to you.
  1158. // You have surrendered to <King>'s Kingdom.
  1159. //
  1160. //---------------------------------------------//
  1161. //
  1162. // Senden:
  1163. // <King>'s Königreich kapituliert vor Ihnen.
  1164. // Sie haben vor <King>'s Königreich kapituliert.
  1165. //
  1166. //---------------------------------------------//
  1167. if( viewing_nation_recno == from_nation_recno )
  1168. {
  1169. str = "Sie haben vor ";
  1170. str += to_nation_name();
  1171. str += " kapituliert.";
  1172. }
  1173. else
  1174. {
  1175. str = from_nation_name();
  1176. str += " kapituliert vor Ihnen.";
  1177. }
  1178. }
  1179. //------- End of function TalkMsg::surrender ------//
  1180. #endif