ScummVM API documentation
Hadesch::VideoRoom Class Reference

Public Member Functions

 VideoRoom (const Common::String &dir, const Common::String &pod, const Common::String &assetMapFile)
 
void nextFrame (Common::SharedPtr< GfxContext > context, int time, bool stopVideo)
 
uint getWidth ()
 
uint getHeight ()
 
int getCursor ()
 
void setHotzoneEnabled (const Common::String &name, bool enabled)
 
void enableHotzone (const Common::String &name)
 
void disableHotzone (const Common::String &name)
 
void pushHotZones (const Common::String &hotzoneFile, bool enable=true, Common::Point offset=Common::Point(0, 0))
 
void popHotZones ()
 
void loadHotZones (const Common::String &hotzoneFile, bool enable=true, Common::Point offset=Common::Point(0, 0))
 
void computeHotZone (int time, Common::Point mousePos)
 
Common::String getHotZone ()
 
void setHotZoneOffset (const Common::String &name, Common::Point offset)
 
Common::String mapClick (Common::Point mousePos)
 
void enableMouse ()
 
void disableMouse ()
 
bool isMouseEnabled ()
 
int getCursorAnimationFrame (int time)
 
void setLayerEnabled (const LayerId &name, bool enabled)
 
void setLayerParallax (const LayerId &name, int val)
 
void setColorScale (const LayerId &name, int val)
 
void setScale (const LayerId &name, int val)
 
int getNumFrames (const LayerId &animName)
 
void playAnimWithSpeech (const LayerId &animName, const TranscribedSound &sound, int zValue, PlayAnimParams params, EventHandlerWrapper callbackEvent=EventHandlerWrapper(), Common::Point offset=Common::Point(0, 0))
 
void playAnimWithSFX (const LayerId &animName, const Common::String &soundName, int zValue, PlayAnimParams params, EventHandlerWrapper callbackEvent=EventHandlerWrapper(), Common::Point offset=Common::Point(0, 0))
 
void playAnimWithMusic (const LayerId &animName, const Common::String &soundName, int zValue, PlayAnimParams params, EventHandlerWrapper callbackEvent=EventHandlerWrapper(), Common::Point offset=Common::Point(0, 0))
 
void playAnim (const LayerId &animName, int zValue, PlayAnimParams params, EventHandlerWrapper callbackEvent=EventHandlerWrapper(), Common::Point offset=Common::Point(0, 0))
 
void stopAnim (const LayerId &animName)
 
void purgeAnim (const LayerId &animName)
 
bool isAnimationFinished (const LayerId &name, int time)
 
void addStaticLayer (const LayerId &name, int zValue, Common::Point offset=Common::Point(0, 0))
 
void selectFrame (const LayerId &name, int zValue, int val, Common::Point offset=Common::Point(0, 0))
 
bool doesLayerExist (const LayerId &name)
 
PodImage getLayerFrame (const LayerId &name)
 
int getAnimFrameNum (const LayerId &name)
 
void dumpLayers ()
 
void playAnimLoop (const LayerId &animName, int zValue, Common::Point offset=Common::Point(0, 0))
 
void playAnimKeepLastFrame (const LayerId &animName, int zValue, EventHandlerWrapper callbackEvent=EventHandlerWrapper(), Common::Point offset=Common::Point(0, 0))
 
void playVideo (const Common::String &name, int zValue, EventHandlerWrapper callbackEvent=EventHandlerWrapper(), Common::Point offset=Common::Point(0, 0))
 
void cancelVideo ()
 
bool isVideoPlaying ()
 
void panLeftAnim (EventHandlerWrapper callbackEvent=EventHandlerWrapper())
 
void panRightAnim (EventHandlerWrapper callbackEvent=EventHandlerWrapper())
 
void panRightInstant ()
 
void setPannable (bool pannable)
 
void setUserPanCallback (EventHandlerWrapper leftStart, EventHandlerWrapper leftEnd, EventHandlerWrapper rightStart, EventHandlerWrapper rightEnd)
 
bool isPanLeft ()
 
bool isPanRight ()
 
void enableHeroBelt ()
 
void disableHeroBelt ()
 
bool isHeroBeltEnabled ()
 
void renderString (const Common::String &font, const Common::U32String &str, Common::Point startPos, int zVal, int fontDelta=0, const Common::String &extraId="letter")
 
void renderStringCentered (const Common::String &font, const Common::U32String &str, Common::Point centerPos, int zVal, int fontDelta=0, const Common::String &extraId="letter")
 
void hideString (const Common::String &font, size_t maxLen, const Common::String &extraId="letter")
 
int computeStringWidth (const Common::String &font, const Common::U32String &str, int fontDelta=0)
 
void playSFX (const Common::String &soundName, EventHandlerWrapper callbackEvent=EventHandlerWrapper())
 
void playMusic (const Common::String &soundName, EventHandlerWrapper callbackEvent=EventHandlerWrapper())
 
void playSFXLoop (const Common::String &soundName)
 
void playMusicLoop (const Common::String &soundName)
 
void playSpeech (const TranscribedSound &sound, EventHandlerWrapper callbackEvent=EventHandlerWrapper())
 
void playStatueSMK (StatueId id, const LayerId &animName, int zValue, const Common::Array< Common::String > &smkNames, int startOfLoop, int startOfEnd, Common::Point offset=Common::Point(0, 0))
 
Common::SeekableReadStreamopenFile (const Common::String &name)
 
void fadeOut (int ms, const EventHandlerWrapper &callback)
 
void resetFade ()
 
void resetLayers ()
 
void drag (const Common::String &name, int frame, Common::Point hotspot)
 
PodImagegetDragged ()
 
void clearDrag ()
 
void pause ()
 
void unpause ()
 
void finish ()
 
void cancelAllSubtitles ()
 
void setViewportOffset (Common::Point vp)
 

The documentation for this class was generated from the following file: