22#ifndef HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE2030_H
23#define HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE2030_H
25#include "hollywood/monsters/scenes/playable/playable_scene.h"
41 void initializeCustomPreviewState()
override;
42 void runCustomEntrySequence()
override;
43 void runExitSideEffectsAfterLoop()
override;
44 void prepareCustomGameplayLoop()
override;
45 void advanceCustomGameplayLoop(uint32 delta)
override;
46 void advanceTransitionAnimation(uint32 delta)
override;
47 void realtimeSpeechEnded(
byte speechId,
bool completed)
override;
48 bool dispatchCustomSceneAction(uint16 handlerId)
override;
49 byte primarySpeechAnimationBaseFrame(
byte animationGroup)
const override;
50 uint32 primarySpeechAnimationFrameMillis(
byte animationGroup)
const override;
51 byte primarySpeechVolumePercent(
byte animationGroup)
const override;
52 void setPrimarySpeechAnimationFrame(
byte animationGroup,
byte frameIndex)
override;
55 void resetMerchantLayers();
56 void advanceMerchantLayers(uint32 delta);
57 void advanceLeftMerchantTick();
58 void advanceRightMerchantTick();
59 void updateRandomMerchantCallouts(uint32 delta);
60 bool startMerchantCalloutSpeech(
bool rightMerchant);
61 void stopMerchantCalloutSpeech();
62 void resetMerchantCalloutState();
63 void openMerchantForInteraction(
bool rightMerchant);
64 void closeMerchantAfterInteraction(
bool rightMerchant);
65 void waitForMerchantState(
bool rightMerchant,
byte targetState);
66 void beginSecondarySpeechLineAndOpenMerchant(uint16 rowIndex,
byte frameIndex,
bool rightMerchant);
67 void runMerchantPrimarySpeechLine(uint16 rowIndex,
byte frameIndex,
bool rightMerchant);
68 bool merchantSpeechGroupIsRight(
byte animationGroup)
const;
69 bool merchantSpeechGroupIsLeft(
byte animationGroup)
const;
70 void runEntryFromChapterStart();
71 void runEntryFromPyramid();
72 void runEntryFromSphinx();
73 void runEntryPathWithFade(
int startX,
int startY,
byte startFacing,
int targetX,
int targetY);
74 void runSphinxExitTransition();
75 void runTransitionClip(uint chunkIndex,
bool includeActiveActor,
bool fadeIn);
76 void drawTransitionClipFrame(uint chunkIndex,
byte frameIndex,
Graphics::Surface &transitionBackground);
77 void drawClipFrameDeltaToSurface(uint chunkIndex, uint tableEntryCount,
byte frameIndex,
Graphics::Surface &destination);
78 void runMerchantShopDialogue();
81 byte enabled,
byte nextNodeIndex,
byte transitionMode,
byte playerTextRowId,
82 byte responseFrameIndex,
byte disableAfterUse)
const;
83 uint16 merchantShopProductPrice(
byte productRowId)
const;
84 void runLeftMerchantPurchase(
byte productRowId);
85 void subtractEgyptianMoney(uint16 amount);
86 void runRightMerchantTalkSequence();
87 void runRightMerchantRejectedTradeSequence();
88 void runRightStallTradeOverlay();
89 void runRightMerchantBuyItemOverlay();
90 void runSynchronizedMerchantOverlay(uint chunkIndex, uint descriptorCount,
91 const byte *overlayFrameMap,
const byte *merchantFrameMap, uint frameCount,
93 void runRightMerchantSaleSequence(
byte soldItemId, uint16 moneyAmount,
byte merchantFrameIndex,
byte secondaryFrameIndex);
94 void addEgyptianMoney(uint16 amount);
96 ResourceSpriteLayer &rightMerchantLayer() {
return _sceneLayers.layer(kRightMerchantLayer); }
100 byte _leftMerchantState;
101 byte _rightMerchantState;
102 byte _merchantCalloutSide;
103 bool _merchantInteractionActive;
104 bool _leftMerchantSequenceLocked;
105 bool _rightMerchantSequenceLocked;
106 uint32 _merchantCalloutTimerAccumulator;
Definition: hollywood.h:47
Definition: playable_scene.h:84
Definition: scene2030.h:31
Definition: ambient_audio.h:44
Definition: animation_layers.h:33
Definition: animation_channels.h:34