25 #include "mohawk/riven_scripts.h" 26 #include "mohawk/riven_sound.h" 28 #include "common/rect.h" 29 #include "common/system.h" 59 void enter(
bool unkMovies);
77 void playSound(uint16 index,
bool queue =
false);
86 void playMovie(uint16 index,
bool queue =
false);
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 {
188 uint16 _zipModePlace;
211 uint16 highBoundTime;
234 bool isEnabled()
const;
249 uint16 getMouseCursor()
const;
255 int16 getNameId()
const;
258 uint16 getIndex()
const;
261 uint16 getBlstId()
const;
268 int16 getTransitionOffset()
const;
274 void applyScriptPatches(uint32 cardGlobalId);
277 void applyPropertiesPatches(uint32 cardGlobalId);
295 int16 _transitionOffset;
void runScript(uint16 scriptType)
Definition: riven_sound.h:42
Common::Array< RivenHotspot * > getHotspots() const
void playMovie(uint16 index, bool queue=false)
Picture getPicture(uint16 index) const
void activateWaterEffect(uint16 index)
RivenAction
Definition: riven_actions.h:28
RivenHotspot * findEnabledHotspotByName(const char **names) const
RivenScriptPtr onMouseUpdate()
RivenScriptPtr onMouseMove(const Common::Point &mouse)
RivenScriptPtr onMouseDragUpdate()
void overrideSound(uint16 index, uint16 withIndex)
MLSTRecord getMovie(uint16 index) const
Definition: riven_card.h:223
RivenHotspot * getHotspotContainingPoint(const Common::Point &point) const
RivenScriptPtr onKeyAction(RivenAction keyAction)
RivenHotspot * getCurHotspot() const
RivenHotspot * getHotspotByBlstId(const uint16 blstId) const
void enter(bool unkMovies)
RivenHotspot * getHotspotByName(const Common::String &name, bool optional=false) const
Definition: riven_card.h:203
void drawPicture(uint16 index, bool queue=false)
Definition: riven_card.h:52
RivenScriptPtr onMouseUp(const Common::Point &mouse)
Definition: riven_card.h:44
void activateHotspotEnableRecord(uint16 index)
void playSound(uint16 index, bool queue=false)
RivenScriptPtr onMouseDown(const Common::Point &mouse)
SLSTRecord getSound(uint16 index) const