#ifndef __CGENERALTEXTHANDLER_H__ #define __CGENERALTEXTHANDLER_H__ #include "../global.h" #include #include DLL_EXPORT void loadToIt(std::string &dest, std::string &src, int &iter, int mode); std::string readTo(std::string &in, unsigned 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 > 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]; std::string getTitle(std::string text); std::string getDescr(std::string text); void loadTexts(); void load(); }; #endif // __CGENERALTEXTHANDLER_H__