CArtifactsOfHeroMain.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * CArtifactsOfHeroMain.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 "CArtifactsOfHeroBase.h"
  12. class CArtifactsOfHeroMain : public CArtifactsOfHeroBase
  13. {
  14. public:
  15. CArtifactsOfHeroMain(const Point & position);
  16. ~CArtifactsOfHeroMain() override;
  17. void keyPressed(EShortcut key) override;
  18. void keyReleased(EShortcut key) override;
  19. private:
  20. static constexpr std::array costumeSaveShortcuts = {
  21. EShortcut::HERO_COSTUME_SAVE_0,
  22. EShortcut::HERO_COSTUME_SAVE_1,
  23. EShortcut::HERO_COSTUME_SAVE_2,
  24. EShortcut::HERO_COSTUME_SAVE_3,
  25. EShortcut::HERO_COSTUME_SAVE_4,
  26. EShortcut::HERO_COSTUME_SAVE_5,
  27. EShortcut::HERO_COSTUME_SAVE_6,
  28. EShortcut::HERO_COSTUME_SAVE_7,
  29. EShortcut::HERO_COSTUME_SAVE_8,
  30. EShortcut::HERO_COSTUME_SAVE_9
  31. };
  32. static constexpr std::array costumeLoadShortcuts = {
  33. EShortcut::HERO_COSTUME_LOAD_0,
  34. EShortcut::HERO_COSTUME_LOAD_1,
  35. EShortcut::HERO_COSTUME_LOAD_2,
  36. EShortcut::HERO_COSTUME_LOAD_3,
  37. EShortcut::HERO_COSTUME_LOAD_4,
  38. EShortcut::HERO_COSTUME_LOAD_5,
  39. EShortcut::HERO_COSTUME_LOAD_6,
  40. EShortcut::HERO_COSTUME_LOAD_7,
  41. EShortcut::HERO_COSTUME_LOAD_8,
  42. EShortcut::HERO_COSTUME_LOAD_9
  43. };
  44. };