CArtifactsOfHeroMain.h 975 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. #include "../gui/Shortcut.h"
  13. class CArtifactsOfHeroMain : public CArtifactsOfHeroBase, public CKeyShortcut
  14. {
  15. public:
  16. CArtifactsOfHeroMain(const Point & position);
  17. ~CArtifactsOfHeroMain() override;
  18. void enableArtifactsCostumeSwitcher();
  19. void keyPressed(EShortcut key) override;
  20. void keyReleased(EShortcut key) override;
  21. private:
  22. const std::vector<EShortcut> costumesSwitcherHotkeys =
  23. {
  24. EShortcut::HERO_COSTUME_0,
  25. EShortcut::HERO_COSTUME_1,
  26. EShortcut::HERO_COSTUME_2,
  27. EShortcut::HERO_COSTUME_3,
  28. EShortcut::HERO_COSTUME_4,
  29. EShortcut::HERO_COSTUME_5,
  30. EShortcut::HERO_COSTUME_6,
  31. EShortcut::HERO_COSTUME_7,
  32. EShortcut::HERO_COSTUME_8,
  33. EShortcut::HERO_COSTUME_9
  34. };
  35. };