12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358 |
- /*
- * Seven Kingdoms: Ancient Adversaries
- *
- * Copyright 1997,1998 Enlight Software Ltd.
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- *
- */
- //Filename : OTALKFRE.CPP
- //Description : French version of the talk messages
- #if(defined(FRENCH))
- #include <OMOUSE.h>
- #include <OSYS.h>
- #include <OVGA.h>
- #include <OINFO.h>
- #include <OFONT.h>
- #include <OTECHRES.h>
- #include <OGAMESET.h>
- #include <ONEWS.h>
- #include <ONATION.h>
- #include <OTALKRES.h>
- //-------- define static vars --------//
- 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
- static short viewing_nation_recno;
- static char should_disp_reply;
- static char disp_second_line;
- //------- Begin of function TalkMsg::msg_str --------//
- //
- // Return the text of this message.
- //
- // <int> viewingNationRecno = the recno of the nation viewing this message
- // [int] dispReply = whether display the reply if there is one
- // (default: 1)
- // [int] dispSecondLine = whether should display the second line of the
- // message (default: 0)
- //
- char* TalkMsg::msg_str(int viewingNationRecno, int dispReply, int dispSecondLine)
- {
- viewing_nation_recno = viewingNationRecno;
- should_disp_reply = dispReply;
- disp_second_line = dispSecondLine;
- //-------- compose the message str -------//
- switch(talk_id)
- {
- case TALK_PROPOSE_TRADE_TREATY:
- propose_treaty("accord commercial");
- break;
- case TALK_PROPOSE_FRIENDLY_TREATY:
- propose_treaty("pacte de non-agression");
- break;
- case TALK_PROPOSE_ALLIANCE_TREATY:
- propose_treaty("traité d'alliance");
- break;
- case TALK_END_TRADE_TREATY:
- end_treaty("accord commercial");
- break;
- case TALK_END_FRIENDLY_TREATY:
- end_treaty("pacte de non-agression");
- break;
- case TALK_END_ALLIANCE_TREATY:
- end_treaty("traité d'alliance");
- break;
- case TALK_REQUEST_MILITARY_AID:
- request_military_aid();
- break;
- case TALK_REQUEST_TRADE_EMBARGO:
- request_trade_embargo();
- break;
- case TALK_REQUEST_CEASE_WAR:
- request_cease_war();
- break;
- case TALK_REQUEST_DECLARE_WAR:
- request_declare_war();
- break;
- case TALK_REQUEST_BUY_FOOD:
- request_buy_food();
- break;
- case TALK_DECLARE_WAR:
- declare_war();
- break;
- case TALK_GIVE_TRIBUTE:
- give_tribute("tribut");
- break;
- case TALK_DEMAND_TRIBUTE:
- demand_tribute(0); // 1-is tribute, not aid
- break;
- case TALK_GIVE_AID:
- give_tribute("aide");
- break;
- case TALK_DEMAND_AID:
- demand_tribute(1); // 1-is aid, not tribute
- break;
- case TALK_GIVE_TECH:
- give_tech();
- break;
- case TALK_DEMAND_TECH:
- demand_tech();
- break;
- case TALK_REQUEST_SURRENDER:
- request_surrender();
- break;
- case TALK_SURRENDER:
- surrender();
- break;
- default:
- err_here();
- }
- return str;
- }
- //-------- End of function TalkMsg::msg_str ---------//
- //----- Begin of function TalkMsg::propose_treaty ------//
- //
- // talk_para1 - duration of the treaty (no. of years).
- //
- void TalkMsg::propose_treaty(char* treatyTypeStr)
- {
- //---------------------------------------------//
- //
- // Send:
- //
- // <King>'s Kingdom proposes a/an friendly/alliance treaty to you.
- // You propose a/an friendly/alliance treaty to <King>'s Kingdom.
- //
- // Reply:
- //
- // <King>'s Kingdom accepts/rejects your proposed
- // friendly/alliance treaty.
- //
- // You accept/reject the friendly/alliance treaty
- // proposed by <King>'s Kingdom.
- //
- //---------------------------------------------//
- //
- // Envoyer:
- //
- // Le Royaume de <King> vous propose un pacte_de_non-agression/traité_d'alliance.
- //
- // Vous proposez un pacte_de_non-agression/traité_d'alliance au Royaume de
- // <King>.
- //
- // Répondre:
- //
- // Le Royaume de <King> accepte/rejette votre proposition de
- // pacte_de_non-agression/traité_d'alliance.
- //
- // Vous acceptez/rejetez le pacte_de_non-agression/traité_d'alliance
- // proposé par le Royaume de <King>.
- //
- //---------------------------------------------//
- //--------------------------------------//
- if( reply_type == REPLY_WAITING || !should_disp_reply )
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Vous proposez un ";
- str += treatyTypeStr;
- str += " au ";
- str += to_nation_name();
- str += ".";
- }
- else
- {
- str = "Le ";
- str += from_nation_name();
- str += " vous propose un ";
- str += treatyTypeStr;
- str += ".";
- }
- }
- else
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Le ";
- str += to_nation_name();
- if( reply_type == REPLY_ACCEPT )
- str += " accepte votre proposition de ";
- else
- str += " rejette votre proposition de ";
- str += treatyTypeStr;
- str += ".";
- }
- else
- {
- if( reply_type == REPLY_ACCEPT )
- str = "Vous acceptez le ";
- else
- str = "Vous acceptez le ";
- str += treatyTypeStr;
- str += " proposé par le ";
- str += from_nation_name();
- str += ".";
- }
- }
- }
- //------- End of function TalkMsg::propose_treaty ------//
- //----- Begin of function TalkMsg::end_treaty ------//
- //
- // talk_para1 - treaty type, NATION_FRIENDLY or NATION_ALLIANCE.
- //
- void TalkMsg::end_treaty(char* treatyTypeStr)
- {
- //---------------------------------------------//
- //
- // Send:
- // <King>'s Kingdom terminates its friendly/alliance treaty with you.
- // You terminate your friendly/alliance treaty with <King>'s Kingdom.
- //
- //---------------------------------------------//
- //
- // Envoyer:
- // Le Royaume de <King> met fin à son pacte_de_non-agression/traité_d'alliance
- // avec vous.
- //
- // Vous mettez fin au pacte_de_non-agression/traité_d'alliance
- // avec le Royaume de <King>.
- //
- //---------------------------------------------//
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Vous mettez fin au ";
- str += treatyTypeStr;
- str += " avec le ";
- str += to_nation_name();
- str += ".";
- }
- else
- {
- str = "Le ";
- str += from_nation_name();
- str += " met fin à son ";
- str += treatyTypeStr;
- str += " avec vous.";
- }
- }
- //------- End of function TalkMsg::end_treaty ------//
- //----- Begin of function TalkMsg::request_cease_war ------//
- //
- void TalkMsg::request_cease_war()
- {
- //---------------------------------------------//
- //
- // Send:
- // <King>'s Kingdom requests a cease-fire.
- // You request a cease-fire with <King>'s Kingdom.
- //
- // Reply:
- // <King>'s Kingdom agrees to a cease-fire.
- // <King>'s Kingdom refuses a cease-fire.
- // You agree to a cease-fire with <King>'s Kingdom.
- // You refuse a cease-fire with <King>'s Kingdom.
- //
- //---------------------------------------------//
- //
- // Envoyer:
- // Le Royaume de <King> demande un cessez-le-feu.
- // Vous demandez un cessez-le-feu au Royaume de <King>.
- //
- // Répondre:
- // Le Royaume de <King> accepte un cessez-le-feu.
- // Le Royaume de <King> refuse un cessez-le-feu.
- // Vous acceptez un cessez-le-feu avec le Royaume de <King>.
- // Vous refusez un cessez-le-feu avec le Royaume de <King>.
- //
- //---------------------------------------------//
- if( reply_type == REPLY_WAITING || !should_disp_reply )
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Vous demandez un cessez-le-feu au ";
- str += to_nation_name();
- str += ".";
- }
- else
- {
- str = "Le ";
- str += from_nation_name();
- str += " demande un cessez-le-feu.";
- }
- }
- else
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Le ";
- str += to_nation_name();
- if( reply_type == REPLY_ACCEPT )
- str += " accepte";
- else
- str += " refuse";
- str += " cessez-le-feu.";
- }
- else
- {
- if( reply_type == REPLY_ACCEPT )
- str = "Vous acceptez ";
- else
- str = "Vous refusez";
- str += " un cessez-le-feu avec le ";
- str += from_nation_name();
- str += ".";
- }
- }
- }
- //------- End of function TalkMsg::request_cease_war ------//
- //----- Begin of function TalkMsg::request_declare_war ------//
- //
- // talk_para1 - the recno of the nation to declare war with.
- //
- void TalkMsg::request_declare_war()
- {
- //---------------------------------------------//
- //
- // Send:
- // <King>'s Kingdom requests that you declare war on <King B>'s Kingdom.
- // You request <King>'s Kingdom to declare war on <King B>'s Kingdom.
- //
- // Reply:
- // <King>'s Kingdom agrees/refuses to declare war on <King B>'s Kingdom.
- // You agree/refuse to declare war on <King B>'s Kingdom.
- //
- //---------------------------------------------//
- //
- // Envoyer:
- // Le Royaume de <King> demande que vous déclariez la guerre au
- // Royaume de <King B>.
- //
- // Vous demandez au Royaume de <King> de déclarer la guerre au
- // Royaume de <King B>.
- //
- // Répondre:
- // Le Royaume de <King> accepte/refuse de déclarer la guerre au
- // Royaume de <King B>.
- //
- // Vous acceptez/refusez de déclarer la guerre au Royaume de <King B>.
- //
- //---------------------------------------------//
- if( reply_type == REPLY_WAITING || !should_disp_reply )
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Vous demandez au ";
- str += to_nation_name();
- str += " de";
- }
- else
- {
- str = "Le ";
- str += from_nation_name();
- str += " demande que vous";
- }
- str += " déclarer la guerre au ";
- str += nation_array[talk_para1]->nation_name();
- str += nation_color_code_str(talk_para1);
- str += ".";
- }
- else
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Le ";
- str += to_nation_name();
- if( reply_type == REPLY_ACCEPT )
- str += " accepte";
- else
- str += " refuse";
- }
- else
- {
- if( reply_type == REPLY_ACCEPT )
- str = "Vous acceptez";
- else
- str = "Vous refusez";
- }
- str += " de déclarer la guerre au ";
- str += nation_array[talk_para1]->nation_name();
- str += nation_color_code_str(talk_para1);
- str += ".";
- }
- }
- //------- End of function TalkMsg::request_declare_war ------//
- //----- Begin of function TalkMsg::request_buy_food ------//
- //
- // talk_para1 - the qty of food the nation wants to buy.
- // talk_para2 - price offered for 10 qty of food.
- //
- void TalkMsg::request_buy_food()
- {
- //---- display the second line in the reply question ----//
- //
- // <King>'s Kingdom offers $10 for 10 units of food.
- //
- //-------------------------------------------------------//
- //
- // Le Royaume de <King> vous offre $10 pour 10 unités de nourriture.
- //
- //-------------------------------------------------------//
- if( disp_second_line )
- {
- str = "Le ";
- str += from_nation_name();
- str += " vous offre ";
- str += m.format(talk_para2,2);
- str += " pour 10 unités de nourriture.";
- return;
- }
- //---------------------------------------------//
- //
- // Send:
- // <King>'s Kingdom requests to purchase <amount>
- // units of food from you.
- //
- // You request to purchase <amount> units of food
- // from <King>'s Kingdom.
- //
- // Reply:
- // <King>'s Kingdom agrees/refuses to sell <amount> units
- // of food to you.
- //
- // You agree/refuse to sell <amount> units of food to
- // <King>'s Kingdom.
- //
- //---------------------------------------------//
- //
- // Envoyer:
- // Le Royaume de <King> demande que vous lui vendiez <amount>
- // unités de nourriture.
- //
- // Vous demandez à acheter <amount> unités de nourriture
- // au Royaume de <King>.
- //
- // Répondre:
- // Le Royaume de <King> accepte/refuse de vous vendre <amount> unités
- // de nourriture.
- //
- // Vous acceptez/refusez de vendre <amount> unités de nourriture
- // au Royaume de <King>.
- //
- //---------------------------------------------//
- if( reply_type == REPLY_WAITING || !should_disp_reply )
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Vous demandez à acheter ";
- str += talk_para1;
- str += " unités de nourriture au ";
- str += to_nation_name();
- str += ".";
- }
- else
- {
- str = "Le ";
- str += from_nation_name();
- str += " demande que vous lui vendiez ";
- str += talk_para1;
- str += " unités de nourriture.";
- }
- }
- else
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Le ";
- str += to_nation_name();
- if( reply_type == REPLY_ACCEPT )
- str += " accepte";
- else
- str += " refuse";
- str += " de vous vendre ";
- str += talk_para1;
- str += " unités of de nourriture.";
- }
- else
- {
- if( reply_type == REPLY_ACCEPT )
- str = "Vous acceptez";
- else
- str = "Vous refusez";
- str += " de vendre ";
- str += talk_para1;
- str += " unités de nourriture au ";
- str += from_nation_name();
- str += ".";
- }
- }
- }
- //------- End of function TalkMsg::request_buy_food ------//
- //----- Begin of function TalkMsg::declare_war ------//
- //
- void TalkMsg::declare_war()
- {
- //---------------------------------------------//
- //
- // Send:
- // <King>'s Kingdom declares war on you.
- // You declare war on <King>'s Kingdom.
- //
- //---------------------------------------------//
- //
- // Envoyer:
- // Le Royaume de <King> vous déclare la guerre.
- // Vous déclarez la guerre au Royaume de <King>.
- //
- //---------------------------------------------//
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Vous déclarez la guerre au ";
- str += to_nation_name();
- str += ".";
- }
- else
- {
- str = "Le ";
- str += from_nation_name();
- str += " vous déclare la guerre.";
- }
- }
- //------- End of function TalkMsg::declare_war ------//
- //----- Begin of function TalkMsg::give_tribute ------//
- //
- // <char*> tributeStr - either "tribute" or "aid".
- //
- // talk_para1 - amount of the tribute.
- //
- void TalkMsg::give_tribute(char* tributeStr)
- {
- char *article = "un";
- char *verb = "paie";
- char *youVerb = "payez";
- if(tributeStr[0] == 'a') // aide
- {
- article = "une";
- verb = "offre";
- youVerb = "offrez";
- }
- //---------------------------------------------//
- //
- // Send:
- // <King>'s Kingdom offers you <$999> in aid/tribute.
- // You offer <King>'s Kingdom <$999> in aid/tribute.
- //
- // Reply:
- // <King>'s Kingdom accepts/rejects your aid/tribute of <$999>.
- // You accept/reject the <$999> in aid/tribute from <King>'s Kingdom.
- //
- //---------------------------------------------//
- //
- // Envoyer:
- // Le Royaume de <King> vous offre/paie une/un aide/tribut de <$999>.
- // Vous offrez/payez une/un aide/tribut de <$999> au Royaume de <King>.
- //
- // Répondre:
- // Le Royaume de <King> accepte/refuse votre aide/tribut de <$999>.
- //
- // Vous acceptez/refusez une/un aide/tribut de <$999> de la part du
- // Royaume de <King>.
- //
- //---------------------------------------------//
- if( reply_type == REPLY_WAITING || !should_disp_reply )
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Vous ";
- str += youVerb;
- str += " ";
- str += article;
- str += " ";
- str += tributeStr;
- str += " de ";
- str += m.format(talk_para1, 2);
- str += " au ";
- str += to_nation_name();
- str += ".";
- }
- else
- {
- str = "Le ";
- str += from_nation_name();
- str += " vous ";
- str += verb;
- str += " ";
- str += article;
- str += " ";
- str += tributeStr;
- str += " de ";
- str += m.format(talk_para1, 2);
- str += ".";
- }
- }
- else
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Le ";
- str += to_nation_name();
- if( reply_type == REPLY_ACCEPT )
- str += " accepte votre ";
- else
- str += " refuse votre ";
- str += tributeStr;
- str += " de ";
- str += m.format(talk_para1, 2);
- str += ".";
- }
- else
- {
- if( reply_type == REPLY_ACCEPT )
- str = "Vous acceptez ";
- else
- str = "Vous refusez ";
- str += article;
- str += " ";
- str += tributeStr;
- str += " de ";
- str += m.format(talk_para1, 2);
- str += " de la part du ";
- str += from_nation_name();
- str += ".";
- }
- }
- }
- //------- End of function TalkMsg::give_tribute ------//
- //----- Begin of function TalkMsg::demand_tribute ------//
- //
- // <int> isAid - 1 if it's a aid, 0 if it's a tribute.
- //
- // talk_para1 - the amount of the tribute.
- //
- void TalkMsg::demand_tribute(int isAid)
- {
- //---------------------------------------------//
- //
- // Send:
- // <King>'s Kingdom requests/demands <tribute amount> in aid/tribute
- // from you.
- //
- // You request/demand <tribute amount> in aid/tribute from
- // <King>'s Kingdom.
- //
- // Reply:
- // <King>'s Kingdom agrees/refuses to give/pay you <tribute amount>
- // in aid/tribute.
- //
- // You agree/refuse to give/pay <King>'s Kingdom <tribute amount>
- // in aid/tribute.
- //
- //---------------------------------------------//
- //
- // Envoyer:
- // Le Royaume de <King> demande/exige une/un aide/tribut de
- // <tribute amount> de votre part.
- //
- // Vous demandez/exigez une/un aide/tribut de <tribute amount> de la
- // part du Royaume de <King>.
- //
- // Répondre:
- // Le Royaume de <King> accepte/refuse de vous donner/payer une/un
- // aide/tribut de <tribute amount>.
- //
- // Vous acceptez/refusez de donner/payer une/un aide/tribut de
- // <tribute amount> au Royaume de <King>.
- //
- //---------------------------------------------//
- // char* aidStr;
- // if( isAid )
- // aidStr = "aid";
- // else
- // aidStr = "tribute";
- if( reply_type == REPLY_WAITING || !should_disp_reply )
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- if( isAid )
- str = "Vous demandez une aide de ";
- else
- str = "Vous exigez un tribut de ";
- str += m.format(talk_para1,2);
- str += " de la part du ";
- str += to_nation_name();
- str += ".";
- }
- else
- {
- str = "Le ";
- str += from_nation_name();
- if( isAid )
- str += " demande une aide de ";
- else
- str += " exige un tribut de ";
- str += m.format(talk_para1,2);
- str += " de votre part.";
- }
- }
- else
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Le ";
- str += to_nation_name();
- if( reply_type == REPLY_ACCEPT )
- str += " accepte";
- else
- str += " refuse";
- if( isAid )
- str += " de vous donner une aide de ";
- else
- str += " de vous payer un tribut de ";
- str += m.format(talk_para1,2);
- str += ".";
- }
- else
- {
- if( reply_type == REPLY_ACCEPT )
- str = "Vous acceptez";
- else
- str = "Vous refusez";
- if( isAid )
- str += " de donner une adie de ";
- else
- str += " de payer un tribut de ";
- str += m.format(talk_para1,2);
- str += " au ";
- str += from_nation_name();
- str += ".";
- }
- }
- }
- //------- End of function TalkMsg::demand_tribute ------//
- //----- Begin of function TalkMsg::give_tech ------//
- //
- // talk_para1 - id. of the tech given.
- // talk_para2 - version of the tech.
- //
- void TalkMsg::give_tech()
- {
- //---------------------------------------------//
- //
- // Send:
- // <King>'s Kingdom offers <tech><version> technology to you.
- //
- // You offer <tech><version> technology to <King>'s Kingdom.
- //
- // Reply:
- // <King>'s Kingdom accepts/rejects your gift of <tech><version>
- // technology.
- //
- // You accept/reject the gift of <tech><version> technology
- // from <King>'s Kingdom.
- //
- //---------------------------------------------//
- //
- // Envoyer:
- // Le Royaume de <King> vous offre la technologie <tech><version>.
- //
- // Vous offrez la technologie <tech><version> au Royaume de <King>.
- //
- // Répondre:
- // Le Royaume de <King> accepte/refuse votre offre de la technologie
- // <tech><version>.
- //
- // Vous acceptez/refusez l'offre du Royaume de <King> concernant la
- // technologie <tech><version>.
- //
- //---------------------------------------------//
- if( reply_type == REPLY_WAITING || !should_disp_reply )
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Vous offrez la technologie ";
- str += tech_res[talk_para1]->tech_des();
- if( talk_para2 ) // Ships do not have different versions
- {
- str += " ";
- str += m.roman_number(talk_para2);
- }
- str += " au ";
- str += to_nation_name();
- str += ".";
- }
- else
- {
- str = "Le ";
- str += from_nation_name();
- str += " vous offre la technologie ";
- str += tech_res[talk_para1]->tech_des();
- if( talk_para2 ) // Ships do not have different versions
- {
- str += " ";
- str += m.roman_number(talk_para2);
- }
- str += ".";
- }
- }
- else
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Le ";
- str += to_nation_name();
- if( reply_type == REPLY_ACCEPT )
- str += " accepte";
- else
- str += " refuse";
- str += " votre offre de la technologie ";
- str += tech_res[talk_para1]->tech_des();
- if( talk_para2 ) // Ships do not have different versions
- {
- str += " ";
- str += m.roman_number(talk_para2);
- }
- str += ".";
- }
- else
- {
- if( reply_type == REPLY_ACCEPT )
- str = "Vous acceptez l'offre du ";
- else
- str = "Vous refusez l'offre du ";
- str += from_nation_name();
- str += " concernant la technologie ";
- str += tech_res[talk_para1]->tech_des();
- if( talk_para2 ) // Ships do not have different versions
- {
- str += " ";
- str += m.roman_number(talk_para2);
- }
- str += ".";
- }
- }
- }
- //------- End of function TalkMsg::give_tech ------//
- //----- Begin of function TalkMsg::demand_tech ------//
- //
- // Demand for the latest version of the technology.
- //
- // talk_para1 - id. of the tech demanded.
- // talk_para2 - version of the tech if the nation agrees to transfer
- // technology.
- //
- void TalkMsg::demand_tech()
- {
- //---------------------------------------------//
- //
- // Send:
- // <King>'s Kingdom demands/requests the latest
- // <tech> technology from you.
- //
- // You demand/request the latest <tech> technology from
- // <King>'s Kingdom.
- //
- // Reply:
- // <King>'s Kingdom agrees/refuses to transfer its latest <tech>
- // technology to you.
- //
- // You agree/refuse to transfer your <tech> technology to
- // <King>'s Kingdom.
- //
- //---------------------------------------------//
- //
- // Envoyer:
- // Le Royaume de <King> exige/demande votre dernière version de
- // <tech>.
- //
- // Vous exigez/demandez sa dernière version de <tech> au
- // Royaume de <King>.
- //
- // Répondre:
- // Le Royaume de <King> accepte/refuse de vous livrer sa dernière version
- // de <tech>.
- //
- // Vous acceptez/refusez de livrer votre dernière version de <tech> au
- // Royaume de <King>.
- //
- //---------------------------------------------//
- char* requestStr;
- if( nation_array[from_nation_recno]->get_relation_status(to_nation_recno)
- >= NATION_FRIENDLY )
- {
- requestStr = "demande";
- }
- else
- {
- requestStr = "exige";
- }
- //------------------------------------------//
- if( reply_type == REPLY_WAITING || !should_disp_reply )
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Vous ";
- str += requestStr;
- str += "z sa dernière version de ";
- str += tech_res[talk_para1]->tech_des();
- str += " au ";
- str += to_nation_name();
- str += ".";
- }
- else
- {
- str = "Le ";
- str += from_nation_name();
- str += " ";
- str += requestStr;
- str += " votre dernière version de ";
- str += tech_res[talk_para1]->tech_des();
- str += ".";
- }
- }
- else
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Le ";
- str += to_nation_name();
- if( reply_type == REPLY_ACCEPT )
- str += " accepte";
- else
- str += " refuse";
- str += " de vous livrer sa dernière version de ";
- str += tech_res[talk_para1]->tech_des();
- str += ".";
- }
- else
- {
- if( reply_type == REPLY_ACCEPT )
- str = "Vous acceptez";
- else
- str = "Vous refusez";
- str += " de livrer votre dernière version de ";
- str += tech_res[talk_para1]->tech_des();
- str += " au ";
- str += from_nation_name();
- str += ".";
- }
- }
- }
- //------- End of function TalkMsg::demand_tech ------//
- //----- Begin of function TalkMsg::request_military_aid ------//
- //
- void TalkMsg::request_military_aid()
- {
- //---------------------------------------------//
- //
- // Send:
- // <King>'s Kingdom requests immediate military aid from you.
- // You request immediate military aid from <King>'s Kingdom.
- //
- // Reply:
- // <King>'s Kingdom agrees to immediately send your requested
- // military aid.
- // <King>'s Kingdom denies you your requested military aid.
- //
- // You agree to immediately send military aid to <King>'s Kingdom.
- // You refuse to send military aid to <King>'s Kingdom.
- //
- //---------------------------------------------//
- //
- // Envoyer:
- // Le Royaume de <King> vous demande un soutien militaire immédiat.
- // Vous demandez un soutien militaire immédiat au Royaume de <King>.
- //
- // Répondre:
- // Le Royaume de <King> vous apporte un soutien militaire immédiat.
- // Le Royaume de <King> refuse de vous apporter un soutien militaire
- // immédiat.
- //
- // Vous apportez un soutien militaire immédiat au Royaume de <King>.
- // Vous refusez d'apporter un soutien militaire immédiat au Royaume de
- // <King>.
- //
- //---------------------------------------------//
- if( reply_type == REPLY_WAITING || !should_disp_reply )
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Vous demandez un soutien militaire immédiat au ";
- str += to_nation_name();
- str += ".";
- }
- else
- {
- str = "Le ";
- str += from_nation_name();
- str += " vous demande un soutien militaire immédiat.";
- }
- }
- else
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Le ";
- str += to_nation_name();
- if( reply_type == REPLY_ACCEPT )
- str += " vous apporte un soutien militaire immédiat.";
- else
- str += " refuse de vous apporter un soutien militaire immédiat.";
- }
- else
- {
- if( reply_type == REPLY_ACCEPT )
- str = "Vous apportez un soutien militaire immédiat au ";
- else
- str = "Vous refusez d'apporter un soutien militaire immédiat au ";
- str += from_nation_name();
- str += ".";
- }
- }
- }
- //------- End of function TalkMsg::request_military_aid ------//
- //----- Begin of function TalkMsg::request_trade_embargo ------//
- //
- // talk_para1 - the nation to have a trade embargo on.
- //
- void TalkMsg::request_trade_embargo()
- {
- //---------------------------------------------//
- //
- // Send:
- // <King>'s Kingdom requests you to join an embargo on trade with
- // <King B>'s Kingdom.
- //
- // You request <King>'s Kingdom to join an embargo on trade with
- // <King B>'s Kingdom.
- //
- // Reply:
- // <King>'s Kingdom agrees/refuses to join an embargo on trade
- // with <King B>'s Kingdom.
- //
- // You agree/refuse to join an embargo on trade with <King B>'s Kingdom
- // as requested by <King>'s Kingdom.
- //
- //---------------------------------------------//
- //
- // Envoyer:
- // Le Royaume de <King> demande que vous preniez part à un embargo
- // commercial contre le Royaume de <King B>.
- //
- // Vous demandez au Royaume de <King> de prendre part à un embargo
- // commercial contre le Royaume de <King B>.
- //
- // Répondre:
- // Le Royaume de <King> accepte/refuse de prendre part à un embargo
- // commercial contre le Royaume de <King B>.
- //
- // Vous acceptez/refusez de prendre part à l'embargo commercial contre
- // le Royaume de <King B>, organisé par le Royaume de <King>.
- //
- //---------------------------------------------//
- if( reply_type == REPLY_WAITING || !should_disp_reply )
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Vous demandez au ";
- str += to_nation_name();
- str += " de prendre part";
- }
- else
- {
- str = "Le ";
- str += from_nation_name();
- str += " demande que vous preniez part";
- }
- str += " à un embargo commercial contre le ";
- str += nation_array[talk_para1]->nation_name();
- str += nation_color_code_str(talk_para1);
- str += ".";
- }
- else
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Le ";
- str += to_nation_name();
- if( reply_type == REPLY_ACCEPT )
- str += " accepte";
- else
- str += " refuse";
- str += " de prendre part à un embargo commercial contre le ";
- str += nation_array[talk_para1]->nation_name();
- str += nation_color_code_str(talk_para1);
- str += ".";
- }
- else
- {
- if( reply_type == REPLY_ACCEPT )
- str = "Vous acceptez";
- else
- str = "Vous refusez";
- str += " de prendre part à l'embargo commercial contre le ";
- str += nation_array[talk_para1]->nation_name();
- str += nation_color_code_str(talk_para1);
- str += ", organisé par le ";
- str += from_nation_name();
- str += ".";
- }
- }
- }
- //------- End of function TalkMsg::request_trade_embargo ------//
- //----- Begin of function TalkMsg::request_surrender ------//
- //
- void TalkMsg::request_surrender()
- {
- //---------------------------------------------//
- //
- // Send:
- //
- // To unite our two Kingdoms under his rule, King
- // <King name> offers <amount> for your throne.
- //
- // You offer <amount> for the throne of <King>'s
- // Kingdom.
- //
- // Reply:
- //
- // King <king name> refuses to dishonor himself by
- // selling his throne!
- //
- // King <king name> agrees to take your money in
- // exchange for his throne.
- //
- // You refuse to dishonor yourself by selling your
- // throne to <King>'s kingdom.
- //
- //---------------------------------------------//
- //
- // Envoyer:
- //
- // Afin d'unifier vos deux Royaumes sous son règne, le Roi <King name>
- // vous offre <amount> pour votre trône.
- //
- // Vous offrez <amount> pour régner sur le Royaume de <King>.
- //
- // Répondre:
- //
- // Le Roi <king name> refuse de se déshonorer en bradant son trône !
- //
- // Le Roi <king name> accepte votre or en échange de son trône.
- //
- // Vous refusez de vous déshonorer en bradant votre trône au Royaume de
- // <King>.
- //
- //---------------------------------------------//
- if( reply_type == REPLY_WAITING || !should_disp_reply )
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Vous offrez ";
- str += talk_para1*10; // *10 to restore its original value.
- str += " pour régner sur le ";
- str += to_nation_name();
- str += ".";
- }
- else
- {
- str = "Afin d'unifier vos deux Royaumes sous son règne, le Roi ";
- str += from_king_name();
- str += " vous offre ";
- str += talk_para1*10; // *10 to restore its original value.
- str += " pour votre trône.";
- }
- }
- else
- {
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Le Roi ";
- str += to_king_name();
- if( reply_type == REPLY_ACCEPT )
- str += " accepte votre or en échange de son trône.";
- else
- str += " refuse de se déshonorer en bradant son trône !";
- }
- else
- {
- if( reply_type == REPLY_ACCEPT )
- {
- str = "You agree to take the money in exchange for your throne.";
- }
- else
- {
- str = "Vous refusez de vous déshonorer en bradant votre trône au ";
- str += from_nation_name();
- str += ".";
- }
- }
- }
- }
- //------- End of function TalkMsg::request_surrender ------//
- //----- Begin of function TalkMsg::surrender ------//
- //
- void TalkMsg::surrender()
- {
- //---------------------------------------------//
- //
- // Send:
- // <King>'s Kingdom offerrrendered to you.
- // You have surrendered to <King>'s Kingdom.
- //
- //---------------------------------------------//
- //
- // Envoyer:
- // Le Royaume de <King> s'est soumis à vous.
- // Vous abandonnez votre Royaume au Royaume de <King>.
- //
- //---------------------------------------------//
- if( viewing_nation_recno == from_nation_recno )
- {
- str = "Vous abandonnez votre Royaume au ";
- str += to_nation_name();
- str += ".";
- }
- else
- {
- str = "Le ";
- str += from_nation_name();
- str += " s'est soumis à vous.";
- }
- }
- //------- End of function TalkMsg::surrender ------//
- #endif
|