| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- /*
- * AdventureMapShortcuts.h, part of VCMI engine
- *
- * Authors: listed in file AUTHORS in main folder
- *
- * License: GNU General Public License v2.0 or later
- * Full text of license available in license.txt file, in main folder
- *
- */
- #pragma once
- VCMI_LIB_NAMESPACE_BEGIN
- class Point;
- VCMI_LIB_NAMESPACE_END
- enum class EShortcut;
- class CAdventureMapInterface;
- struct AdventureMapShortcutState
- {
- EShortcut shortcut;
- bool isEnabled;
- std::function<void()> callback;
- };
- /// Class that contains list of functions for shortcuts available from adventure map
- class AdventureMapShortcuts
- {
- CAdventureMapInterface & owner;
- void showOverview();
- void worldViewBack();
- void worldViewScale1x();
- void worldViewScale2x();
- void worldViewScale4x();
- void switchMapLevel();
- void showQuestlog();
- void toggleSleepWake();
- void setHeroSleeping();
- void setHeroAwake();
- void moveHeroAlongPath();
- void showSpellbook();
- void adventureOptions();
- void systemOptions();
- void nextHero();
- void endTurn();
- void showThievesGuild();
- void showScenarioInfo();
- void saveGame();
- void loadGame();
- void digGrail();
- void viewPuzzleMap();
- void restartGame();
- void visitObject();
- void openObject();
- void abortSpellcasting();
- void showMarketplace();
- void nextTown();
- void nextObject();
- void moveHeroDirectional(const Point & direction);
- public:
- explicit AdventureMapShortcuts(CAdventureMapInterface & owner);
- std::vector<AdventureMapShortcutState> getShortcuts();
- bool optionHasQuests();
- bool optionHasUnderground();
- bool optionMapLevelSurface();
- bool optionHeroSleeping();
- bool optionHeroSelected();
- bool optionHeroCanMove();
- bool optionHasNextHero();
- bool optionSpellcasting();
- bool optionDefault();
- };
|