#include <riven_card.h>
Classes | |
| struct | Picture |
Public Member Functions | |
| RivenCard (MohawkEngine_Riven *vm, uint16 id) | |
| void | enter (bool unkMovies) |
| void | leave () |
| void | runScript (uint16 scriptType) |
| uint16 | getId () const |
| Picture | getPicture (uint16 index) const |
| void | drawPicture (uint16 index, bool queue=false) |
| void | playSound (uint16 index, bool queue=false) |
| SLSTRecord | getSound (uint16 index) const |
| void | overrideSound (uint16 index, uint16 withIndex) |
| void | playMovie (uint16 index, bool queue=false) |
| MLSTRecord | getMovie (uint16 index) const |
| void | drawHotspotRects () |
| void | initializeZipMode () |
| RivenHotspot * | getHotspotContainingPoint (const Common::Point &point) const |
| RivenHotspot * | getHotspotByName (const Common::String &name, bool optional=false) const |
| RivenHotspot * | findEnabledHotspotByName (const char **names) const |
| RivenHotspot * | getHotspotByBlstId (const uint16 blstId) const |
| RivenHotspot * | getCurHotspot () const |
| Common::Array< RivenHotspot * > | getHotspots () const |
| void | activateHotspotEnableRecord (uint16 index) |
| void | activateWaterEffect (uint16 index) |
| RivenScriptPtr | onMouseDown (const Common::Point &mouse) |
| RivenScriptPtr | onMouseUp (const Common::Point &mouse) |
| RivenScriptPtr | onMouseMove (const Common::Point &mouse) |
| RivenScriptPtr | onKeyAction (RivenAction keyAction) |
| RivenScriptPtr | onFrame () |
| RivenScriptPtr | onMouseUpdate () |
| RivenScriptPtr | onMouseDragUpdate () |
| void | dump () const |
A game view
The names Card and Stack are legacy from the HyperCard engine used in the original mac version of Myst.
Cards contain hotspots, scripts, and resource lists.
| void Mohawk::RivenCard::enter | ( | bool | unkMovies | ) |
Initialization routine used to draw a card for the first time or to refresh it
| void Mohawk::RivenCard::leave | ( | ) |
Run the card's leave scripts
| void Mohawk::RivenCard::runScript | ( | uint16 | scriptType | ) |
Run one of the card's scripts
| uint16 Mohawk::RivenCard::getId | ( | ) | const |
Get the id of the card in the stack
| Picture Mohawk::RivenCard::getPicture | ( | uint16 | index | ) | const |
Get the card's picture with the specified index
| void Mohawk::RivenCard::drawPicture | ( | uint16 | index, |
| bool | queue = false |
||
| ) |
Draw one of the card's pictures synchronously or asynchronously
| void Mohawk::RivenCard::playSound | ( | uint16 | index, |
| bool | queue = false |
||
| ) |
Play the card's ambient sounds with the specified index
| SLSTRecord Mohawk::RivenCard::getSound | ( | uint16 | index | ) | const |
Get the card's sound description with the specified index
| void Mohawk::RivenCard::overrideSound | ( | uint16 | index, |
| uint16 | withIndex | ||
| ) |
Replace an ambient sound list with another one
| void Mohawk::RivenCard::playMovie | ( | uint16 | index, |
| bool | queue = false |
||
| ) |
Play the card's movie with the specified index
| MLSTRecord Mohawk::RivenCard::getMovie | ( | uint16 | index | ) | const |
Get the card's movie description with the specified index
| void Mohawk::RivenCard::drawHotspotRects | ( | ) |
Draw borders for all the hotspots in the card
| void Mohawk::RivenCard::initializeZipMode | ( | ) |
Enable the zip hotspots if they match to already visited locations
| RivenHotspot* Mohawk::RivenCard::getHotspotContainingPoint | ( | const Common::Point & | point | ) | const |
Get the hotspot containing the specified point
| RivenHotspot* Mohawk::RivenCard::getHotspotByName | ( | const Common::String & | name, |
| bool | optional = false |
||
| ) | const |
Get the hotspot with the specified name
| RivenHotspot* Mohawk::RivenCard::findEnabledHotspotByName | ( | const char ** | names | ) | const |
Find an enabled hotspot with a name matching one of the arguments
| RivenHotspot* Mohawk::RivenCard::getHotspotByBlstId | ( | const uint16 | blstId | ) | const |
Get the hotspot with the specified BLST id
| RivenHotspot* Mohawk::RivenCard::getCurHotspot | ( | ) | const |
Get the currently hovered hotspot if any
| Common::Array<RivenHotspot *> Mohawk::RivenCard::getHotspots | ( | ) | const |
Get all the hotspots in the card. To be used for debugging features only
| void Mohawk::RivenCard::activateHotspotEnableRecord | ( | uint16 | index | ) |
Activate a hotspot using a hotspot enable list entry
| void Mohawk::RivenCard::activateWaterEffect | ( | uint16 | index | ) |
Activate a water effect list entry
| RivenScriptPtr Mohawk::RivenCard::onMouseDown | ( | const Common::Point & | mouse | ) |
Handle a mouse down event
| RivenScriptPtr Mohawk::RivenCard::onMouseUp | ( | const Common::Point & | mouse | ) |
Handle a mouse up event
| RivenScriptPtr Mohawk::RivenCard::onMouseMove | ( | const Common::Point & | mouse | ) |
Handle a mouse move event
| RivenScriptPtr Mohawk::RivenCard::onKeyAction | ( | RivenAction | keyAction | ) |
Handle a keyboard action
| RivenScriptPtr Mohawk::RivenCard::onFrame | ( | ) |
General frame update handler
| RivenScriptPtr Mohawk::RivenCard::onMouseUpdate | ( | ) |
Frame update handler for the mouse cursor
| RivenScriptPtr Mohawk::RivenCard::onMouseDragUpdate | ( | ) |
Frame update handler for mouse dragging
| void Mohawk::RivenCard::dump | ( | ) | const |
Write all of the card's data to standard output