#ifndef __CGENERALTEXTHANDLER_H__ #define __CGENERALTEXTHANDLER_H__ #include "../global.h" #include #include /* * CGeneralTextHandler.h, part of VCMI engine * * Authors: listed in file AUTHORS in main folder * * License: GNU General Public License v2.0 or later * Full text of license available in license.txt file, in main folder * */ DLL_EXPORT void loadToIt(std::string &dest, std::string &src, int &iter, int mode); std::string readTo(std::string &in, int &it, char end); class DLL_EXPORT CGeneralTextHandler //Handles general texts { public: class HeroTexts { public: std::string bonusName, shortBonus, longBonus; //for special abilities std::string biography; //biography, of course }; std::vector hTxts; std::vector allTexts; std::vector arraytxt; std::vector primarySkillNames; std::vector jktexts; std::vector heroscrn; //artifacts std::vector artifEvents; std::vector artifNames; std::vector artifDescriptions; //towns std::vector tcommands, hcommands; //texts for town screen and town hall screen std::vector tavernInfo; std::vector > townNames; //[type id] => vec of names of instances std::vector townTypes; //castle, rampart, tower, etc std::map > > buildings; //map[town id][building id] => pair std::vector > zelp; std::string lossCondtions[4]; std::string victoryConditions[14]; //objects std::vector names; //vector of objects; i-th object in vector has subnumber i std::vector creGens; //names of creatures' generators std::vector advobtxt; std::vector xtrainfo; std::vector restypes; std::vector randsign; std::vector > mines; //first - name; second - event description //sec skills std::vector skillName; std::vector > skillInfoTexts; //[id][level] : level 0 - basic; 2 - advanced std::vector levels; std::string getTitle(std::string text); std::string getDescr(std::string text); void load(); CGeneralTextHandler(); }; #endif // __CGENERALTEXTHANDLER_H__