AdventureMapShortcuts.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * AdventureMapShortcuts.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. VCMI_LIB_NAMESPACE_BEGIN
  12. class Point;
  13. VCMI_LIB_NAMESPACE_END
  14. enum class EShortcut;
  15. class CAdventureMapInterface;
  16. /// Class that contains list of functions for shortcuts available from adventure map
  17. class AdventureMapShortcuts
  18. {
  19. CAdventureMapInterface & owner;
  20. void showOverview();
  21. void worldViewBack();
  22. void worldViewScale1x();
  23. void worldViewScale2x();
  24. void worldViewScale4x();
  25. void switchMapLevel();
  26. void showQuestlog();
  27. void toggleSleepWake();
  28. void setHeroSleeping();
  29. void setHeroAwake();
  30. void moveHeroAlongPath();
  31. void showSpellbook();
  32. void adventureOptions();
  33. void systemOptions();
  34. void nextHero();
  35. void endTurn();
  36. void showThievesGuild();
  37. void showScenarioInfo();
  38. void saveGame();
  39. void loadGame();
  40. void digGrail();
  41. void viewPuzzleMap();
  42. void viewWorldMap();
  43. void restartGame();
  44. void visitObject();
  45. void openObject();
  46. void abortSpellcasting();
  47. void showMarketplace();
  48. void nextTown();
  49. void nextObject();
  50. void moveHeroDirectional(const Point & direction);
  51. public:
  52. explicit AdventureMapShortcuts(CAdventureMapInterface & owner);
  53. std::map<EShortcut, std::function<void()>> getFunctors();
  54. };