2
0

CHeroOverview.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * CHeroOverview.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. #include "../windows/CWindowObject.h"
  12. class CLabel;
  13. class CMultiLineLabel;
  14. class CFilledTexture;
  15. class CAnimImage;
  16. class CComponentBox;
  17. class CTextBox;
  18. class CHeroOverview : public CWindowObject
  19. {
  20. const HeroTypeID & hero;
  21. int heroIndex;
  22. std::shared_ptr<CFilledTexture> backgroundTexture;
  23. std::shared_ptr<CPicture> backgroundShapes;
  24. std::shared_ptr<CLabel> labelTitle;
  25. std::shared_ptr<CAnimImage> imageHero;
  26. std::shared_ptr<CLabel> labelHeroName;
  27. std::shared_ptr<CMultiLineLabel> labelHeroBiography;
  28. std::shared_ptr<CLabel> labelHeroClass;
  29. std::shared_ptr<CLabel> labelHeroSpeciality;
  30. std::shared_ptr<CAnimImage> imageSpeciality;
  31. std::vector<std::shared_ptr<CLabel>> labelSkillHeader;
  32. std::vector<std::shared_ptr<CAnimImage>> imageSkill;
  33. std::vector<std::shared_ptr<CLabel>> labelSkillFooter;
  34. std::shared_ptr<CLabel> labelSpecialityName;
  35. std::shared_ptr<CMultiLineLabel> labelSpecialityDescription;
  36. std::shared_ptr<CLabel> labelArmyTitle;
  37. std::vector<std::shared_ptr<CAnimImage>> imageArmy;
  38. std::vector<std::shared_ptr<CLabel>> labelArmyCount;
  39. std::shared_ptr<CLabel> labelWarMachineTitle;
  40. std::vector<std::shared_ptr<CAnimImage>> imageWarMachine;
  41. std::shared_ptr<CLabel> labelSpellBookTitle;
  42. std::shared_ptr<CAnimImage> imageSpellBook;
  43. std::vector<std::shared_ptr<CAnimImage>> imageSpells;
  44. std::vector<std::shared_ptr<CLabel>> labelSpellsNames;
  45. void genHeader();
  46. void genHeroWindow();
  47. public:
  48. CHeroOverview(const HeroTypeID & h);
  49. };