25#include "mohawk/riven_scripts.h"
26#include "mohawk/riven_sound.h"
28#include "common/rect.h"
29#include "common/system.h"
146 void loadCardResource(uint16
id);
147 void loadHotspots(uint16
id);
148 void loadCardPictureList(uint16
id);
149 void loadCardSoundList(uint16
id);
150 void loadCardMovieList(uint16
id);
151 void loadCardHotspotEnableList(uint16
id);
152 void loadCardWaterEffectList(uint16
id);
153 void applyPatches(uint16
id);
154 void applyPropertiesPatchE2E(uint32 globalId);
155 void applyPropertiesPatch1518D(uint32 globalId);
156 void applyPropertiesPatch8EB7(uint32 globalId,
const Common::String &var, uint16 hotspotId);
157 void applyPropertiesPatch2E76(uint32 globalId);
158 void applyPropertiesPatch22118(uint32 globalId);
159 void applyPropertiesPatch2B414(uint32 globalId);
160 void setCurrentCardVariable();
162 void moveHotspot(uint16 blstId,
const Common::Rect &position);
163 void addMenuHotspot(uint16 blstId,
const Common::Rect &position, uint16 index,
164 uint16 externalCommandNameId,
const char *externalCommandName);
167 void defaultLoadScript();
169 void updateMouseCursor();
171 struct HotspotEnableRecord {
177 struct WaterEffectRecord {
183 MohawkEngine_Riven *_vm;
188 uint16 _zipModePlace;
189 RivenScriptList _scripts;
192 RivenHotspot *_hoveredHotspot;
193 RivenHotspot *_pressedHotspot;
211 uint16 highBoundTime;
295 int16 _transitionOffset;
Definition: riven_card.h:44
RivenHotspot * getHotspotByName(const Common::String &name, bool optional=false) const
void drawPicture(uint16 index, bool queue=false)
void activateWaterEffect(uint16 index)
RivenScriptPtr onMouseDown(const Common::Point &mouse)
RivenScriptPtr onMouseUpdate()
RivenScriptPtr onKeyAction(RivenAction keyAction)
Common::Array< RivenHotspot * > getHotspots() const
void playSound(uint16 index, bool queue=false)
RivenHotspot * getHotspotByBlstId(const uint16 blstId) const
RivenScriptPtr onMouseMove(const Common::Point &mouse)
void activateHotspotEnableRecord(uint16 index)
MLSTRecord getMovie(uint16 index) const
void runScript(uint16 scriptType)
RivenScriptPtr onMouseUp(const Common::Point &mouse)
void overrideSound(uint16 index, uint16 withIndex)
SLSTRecord getSound(uint16 index) const
RivenHotspot * getCurHotspot() const
RivenHotspot * findEnabledHotspotByName(const char **names) const
RivenScriptPtr onMouseDragUpdate()
Picture getPicture(uint16 index) const
void playMovie(uint16 index, bool queue=false)
void enter(bool unkMovies)
RivenHotspot * getHotspotContainingPoint(const Common::Point &point) const
Definition: riven_card.h:223
int16 getTransitionOffset() const
Common::Rect getRect() const
Common::String getName() const
void applyScriptPatches(uint32 cardGlobalId)
void applyPropertiesPatches(uint32 cardGlobalId)
RivenScriptPtr getScript(uint16 scriptType) const
void setRect(const Common::Rect &rect)
uint16 getMouseCursor() const
bool containsPoint(const Common::Point &point) const
RivenAction
Definition: riven_actions.h:28
Definition: riven_card.h:203
Definition: riven_card.h:52
Definition: riven_sound.h:42