CGeneralTextHandler.h 1002 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef CGENERALTEXTHANDLER_H
  2. #define CGENERALTEXTHANDLER_H
  3. #include "../global.h"
  4. #include <string>
  5. #include <vector>
  6. DLL_EXPORT void loadToIt(std::string &dest, std::string &src, int &iter, int mode);
  7. class DLL_EXPORT CGeneralTextHandler //Handles general texts
  8. {
  9. public:
  10. class HeroTexts
  11. {
  12. public:
  13. std::string bonusName, shortBonus, longBonus; //for special abilities
  14. std::string biography; //biography, of course
  15. };
  16. std::vector<HeroTexts> hTxts;
  17. std::vector<std::string> allTexts;
  18. std::vector<std::string> arraytxt;
  19. std::vector<std::string> primarySkillNames;
  20. std::vector<std::string> jktexts;
  21. std::vector<std::string> heroscrn;
  22. std::vector<std::string> artifEvents;
  23. std::vector<std::pair<std::string,std::string> > zelp;
  24. std::string lossCondtions[4];
  25. std::string victoryConditions[14];
  26. std::string getTitle(std::string text);
  27. std::string getDescr(std::string text);
  28. void loadTexts();
  29. void load();
  30. };
  31. #endif //CGENERALTEXTHANDLER_H