22#ifndef HOLLYWOOD_MONSTERS_GAMEPLAY_HOTSPOTS_H
23#define HOLLYWOOD_MONSTERS_GAMEPLAY_HOTSPOTS_H
25#include "common/array.h"
26#include "common/rect.h"
27#include "common/str.h"
28#include "common/types.h"
30#include "hollywood/monsters/scenes/scene_data.h"
40struct HollywoodGameStrings;
42Common::String inventoryActionCaption(
const HollywoodGameStrings &strings,
byte stripIndex);
45 uint16 actionHandlerId;
67 byte resolveItemAt(
const Graphics::Surface &savedFramebuffer, uint16 cursorX, uint16 cursorY,
68 uint16 xOffset, uint16 yOffset)
const;
71 byte defaultStripForItem(
byte itemId)
const;
72 bool hasVerbAction(
byte itemId,
byte stripIndex)
const;
74 SceneVerbActionRecord relationActionRecord(
byte inventoryItemId,
byte sceneItemId,
byte relationMode)
const;
76 void setItemDefaultStrip(
byte itemId,
byte stripIndex);
79 void setActionTarget(
byte itemId,
const ScenePoint &interactionPoint,
const ScenePoint &approachPoint);
80 void setActionInteraction(
byte itemId,
const ScenePoint &interactionPoint,
byte facing);
82 void addOverrideRectHotspot(
byte itemId,
const Common::Rect &bounds);
84 void setOverrideRectHotspot(
byte itemId,
const Common::Rect &bounds);
86 void addFallbackRectHotspot(
byte itemId,
const Common::Rect &bounds);
87 void setVerbActionHandlerByGlobalRecordIndex(uint globalRecordIndex, uint16 actionHandlerId);
88 void setVerbMovementModeByGlobalRecordIndex(uint globalRecordIndex, uint16 movementMode);
89 void setRelationActionHandler(
byte inventoryItemId,
byte sceneItemId,
90 byte relationMode, uint16 actionHandlerId);
91 void setRelationMovementMode(
byte inventoryItemId,
byte sceneItemId,
byte relationMode, uint16 movementMode);
123 void setCurrentStrip(
byte stripIndex);
124 void setRelationContext(
byte relationMode,
byte primaryInventoryItem,
const Common::String &primaryItemName);
126 uint16 cursorX, uint16 cursorY, uint16 xOffset, uint16 yOffset);
129 uint16 xOffset, uint16 yOffset);
134 byte currentStrip()
const {
return _currentStrip; }
135 byte requestedStrip()
const {
return _requestedStrip; }
136 byte resolvedItem()
const {
return _resolvedItem; }
144 byte relationTextIndex;
146 byte secondItemSourceKind;
150 uint16 cursorX, uint16 cursorY, uint16 xOffset, uint16 yOffset,
bool force);
151 bool descriptorChanged(
const Descriptor &descriptor)
const;
155 Descriptor _descriptor;
156 Descriptor _lastDescriptor;
162 byte _primaryInventoryItem;
164 byte _requestedStrip;
166 bool _hasLastDescriptor;
Definition: hotspots.h:62
Definition: hotspots.h:118
Definition: formatinfo.h:28
Definition: game_strings.h:40
Definition: hotspots.h:49
Definition: scene_data.h:29
Definition: hotspots.h:44