25 #include "common/keyboard.h" 26 #include "common/hash-str.h" 27 #include "common/ptr.h" 28 #include "common/rect.h" 29 #include "common/str-array.h" 31 #include "mohawk/riven_actions.h" 32 #include "mohawk/riven_graphics.h" 36 class MohawkEngine_Riven;
39 enum RivenNameResource {
42 kExternalCommandNames = 3,
108 int16 getIdFromName(RivenNameResource nameResource,
const Common::String &name)
const;
114 uint16 getCardStackId(uint32 globalId)
const;
117 uint32 getCurrentCardGlobalId()
const;
120 uint32 getCardGlobalId(uint16 cardId)
const;
129 virtual void installCardTimer();
148 void queueMouseCursorRefresh();
154 bool mouseIsDown()
const;
175 void xflies(
const ArgumentArray &args);
178 uint16 getComboDigit(uint32 correctCombo, uint32 digit);
179 void runDemoBoundaryDialog();
180 void runEndGame(uint16 videoCode, uint32 delay, uint32 videoFrameCountOverride);
181 void runCredits(uint16 video, uint32 delay, uint32 videoFrameCountOverride);
183 void pageTurn(RivenTransition transition);
184 bool keepTurningPages();
185 void waitForPageTurnSound();
193 void registerCommand(
const Common::String &name, ExternalCommand *command);
196 void installTimer(TimerProc *proc, uint32 time);
201 #define REGISTER_COMMAND(cls, method) \ 203 #method, new Common::Functor1Mem<const Common::Array<uint16> &, void, cls>(this, &cls::method) \ 206 #define TIMER(cls, method) \ 207 new Common::Functor0Mem<void, cls>(this, &cls::method) 209 void loadResourceNames();
210 void loadCardIdMap();
211 void setCurrentStackVariable();
225 CommandsMap _commands;
232 bool _shouldRefreshMouseCursor;
239 namespace RivenStacks {
241 const char *
getName(uint16 stackId);
244 uint16 getId(
const char *stackName);
Definition: riven_stack.h:50
int16 getNameId(const Common::String &name) const
RivenAction
Definition: riven_actions.h:28
void registerName(uint16 nameId, const Common::String &name)
Definition: riven_stack.h:89
Common::String getName(uint16 nameID) const
Definition: hash-str.h:49
Definition: hash-str.h:45