2007-06-12 18:17:33 +00:00
# ifndef CPREGAMETEXTHANDLER_H
# define CPREGAMETEXTHANDLER_H
# include <string>
class CPreGameTextHandler //handles pre - game texts
{
public :
std : : string mainNewGame , mainLoadGame , mainHighScores , mainCredits , mainQuit ; //right - click texts in main menu
2007-06-27 20:17:58 +00:00
2007-06-13 20:17:48 +00:00
std : : string ngSingleScenario , ngCampain , ngMultiplayer , ngTutorial , ngBack ; //right - click texts in new game menu
2007-06-27 20:17:58 +00:00
2007-06-14 17:07:26 +00:00
std : : string singleChooseScenario , singleSetAdvOptions , singleRandomMap , singleScenarioName , singleDescriptionTitle , singleDescriptionText , singleEasy , singleNormal , singleHard , singleExpert , singleImpossible ; //main single scenario texts
std : : string singleAllyFlag [ 8 ] , singleEnemyFlag [ 8 ] ;
std : : string singleViewHideScenarioList , singleViewHideAdvOptions , singlePlayRandom , singleChatDesc , singleMapDifficulty , singleRating , singleMapPossibleDifficulties , singleVicCon , singleLossCon ;
std : : string singleSFilter , singleMFilter , singleLFilter , singleXLFilter , singleAllFilter ;
2007-06-19 19:36:50 +00:00
std : : string singleScenarioNameNr [ 18 ] , singleEntryScenarioNameNr [ 18 ] ;
std : : string singleTurnDuration , singleChatText , singleChatEntry , singleChatPlug , singleChatPlayer , singleChatPlayerSlider , singleRollover , singleNext , singleBegin , singleBack , singleSSExit , singleWhichMap , singleSortNumber , singleSortSize , singleSortVersion , singleSortAlpha , singleSortVictory , singleSortLoss , singleBriefing , singleSSHero , singleGoldpic ;
std : : string singleHumanCPU [ 8 ] , singleHandicap [ 8 ] , singleTownLeft [ 8 ] , singleTownRite [ 8 ] , singleHeroLeft [ 8 ] , singleHeroRite [ 8 ] , singleResLeft [ 8 ] , singleResRite [ 8 ] , singleHeroSetting [ 8 ] , singleTownSetting [ 8 ] ;
std : : string singleConstCreateMap , singleConstMapSizeLabel , singleConstSmallMap , singleConstMediumMap , singleConstLargeMap , singleConstHugeMap , singleConstMapLevels , singleConstHumanPositionsLabel ;
std : : string singleConstNHumans [ 8 ] ;
std : : string singleConstRandomHumans , singleConstHumanTeamsLabel , singleConstNoHumanTeams ;
std : : string singleConstNHumanTeams [ 7 ] ;
2007-06-19 20:16:14 +00:00
std : : string singleConstRandomHumanTeams , singleConstComputerPositionsLabel , singleConstNoComputers ;
std : : string singleConstNComputers [ 7 ] ;
std : : string singleConstRandomComputers , singleConstComputerTeamsLabel , singleConstNoComputerTeams ;
std : : string singleConstNComputerTeams [ 6 ] ;
std : : string singleConstRandomComputerTeams , singleConstWaterLabel , singleConstNoWater , singleConstNormalWater , singleConstIslands , singleConstRandomWater , singleConstMonsterStrengthLabel , singleConstWeakMonsters , singleConstNormalMonsters , singleConstStrongMonsters , singleConstRandomMonsters , singleConstShowSavedRandomMaps , singleSliderChatWindow , singleSliderFileMenu , singleSliderDuration ;
std : : string singlePlayerHandicapHeaderID , singleTurnDurationHeaderID , singleStartingTownHeaderID , singleStartingTownHeaderWConfluxID , singleStartingHeroHeaderID , singleStartingBonusHeaderID ;
2007-06-22 13:50:16 +00:00
std : : string multiOnlineService , multiHotSeat , multiIPX , multiTCPIP , multiModem , multiDirectConnection , multiHostGame , multiJoinGame , multiSearchGame ;
std : : string multiGameNo [ 12 ] ;
std : : string multiScrollGames , multiCancel ;
2007-06-27 20:17:58 +00:00
std : : string lossCondtions [ 4 ] ;
std : : string victoryConditions [ 14 ] ;
2007-06-13 14:02:43 +00:00
std : : string getTitle ( std : : string text ) ;
std : : string getDescr ( std : : string text ) ;
2007-08-06 04:03:34 +00:00
std : : pair < std : : string , std : : string > //first is statusbar text, second right-click help; they're all for adventure map interface
2007-10-13 21:27:03 +00:00
advKingdomOverview , advSurfaceSwitch , advQuestlog , advSleepWake , advMoveHero , advCastSpell , advAdvOptions , advSystemOptions , advNextHero , advEndTurn , advHListUp , advHListDown , advHPortrait , advTListUp , advTListDown , advTPortrait , //buttons
advRGold , advRWood , advRMercury , advROre , advRSulfur , advRCrystal , advRGems , //resources
advDate , advWorldMap , advStatusWindow1 ;
2007-08-06 04:03:34 +00:00
2007-06-12 18:17:33 +00:00
void loadTexts ( ) ;
2007-10-15 20:59:17 +00:00
static void loadToIt ( std : : string & dest , std : : string & src , int & iter , int mode = 0 ) ; //mode 0 - dump to tab, dest to tab, dump to eol //mode 1 - dump to tab, src to eol //mode 2 - copy to tab, dump to eol //mode 3 - copy to eol //mode 4 - copy to tab
2007-06-27 20:17:58 +00:00
void loadVictoryConditions ( ) ;
void loadLossConditions ( ) ;
2007-06-12 18:17:33 +00:00
} ;
# endif //CPREGAMETEXTHANDLER_H