#include <hotspots.h>
Public Member Functions | |
| bool | load (const Common::Array< byte > &paletteMapBlock, const Common::Array< byte > &metadata, const Common::Array< byte > &stageSmallRows) |
| byte | resolveItemAt (const Graphics::Surface &savedFramebuffer, uint16 cursorX, uint16 cursorY, uint16 xOffset, uint16 yOffset) const |
| void | getHotspotPositions (Common::Array< Graphics::HotspotInfo > &hotspots, const Graphics::Surface &savedFramebuffer, uint16 xOffset, uint16 yOffset) const |
| byte | defaultStripForItem (byte itemId) const |
| bool | hasVerbAction (byte itemId, byte stripIndex) const |
| SceneVerbActionRecord | verbActionRecord (byte itemId, byte stripIndex) const |
| SceneVerbActionRecord | relationActionRecord (byte inventoryItemId, byte sceneItemId, byte relationMode) const |
| SceneActionTarget | actionTarget (byte itemId) const |
| void | setItemDefaultStrip (byte itemId, byte stripIndex) |
| void | setItemName (byte itemId, const Common::String &name) |
| void | setItemNames (const Common::Array< byte > &stageSmallRows) |
| void | setActionTarget (byte itemId, const ScenePoint &interactionPoint, const ScenePoint &approachPoint) |
| void | setActionInteraction (byte itemId, const ScenePoint &interactionPoint, byte facing) |
| void | addOverrideRectHotspot (byte itemId, const Common::Rect &bounds) |
| void | setOverrideRectHotspot (byte itemId, const Common::Rect &bounds) |
| void | addFallbackRectHotspot (byte itemId, const Common::Rect &bounds) |
| void | setVerbActionHandlerByGlobalRecordIndex (uint globalRecordIndex, uint16 actionHandlerId) |
| void | setVerbMovementModeByGlobalRecordIndex (uint globalRecordIndex, uint16 movementMode) |
| void | setRelationActionHandler (byte inventoryItemId, byte sceneItemId, byte relationMode, uint16 actionHandlerId) |
| void | setRelationMovementMode (byte inventoryItemId, byte sceneItemId, byte relationMode, uint16 movementMode) |
| Common::String | itemName (byte itemId) const |
Decodes scene hotspots, actions, approach targets, and names from resources.
Hit testing checks runtime override rectangles first, palette-mapped pixels next, and fallback rectangles last. The most recently added rectangle wins within its group.