22 #ifndef NANCY_ACTION_CONVERSATION_H 23 #define NANCY_ACTION_CONVERSATION_H 25 #include "engines/nancy/action/actionrecord.h" 26 #include "engines/nancy/video.h" 49 void execute()
override;
51 virtual bool isVideoDonePlaying() {
return true; }
52 bool isViewportRelative()
const override {
return true; }
61 bool isSatisfied()
const;
69 bool isSatisfied()
const;
73 enum AddRule { kAddIfNotFound, kRemoveAndAddToEnd, kRemove };
78 byte addRule = kAddIfNotFound;
82 bool isOnScreen =
false;
95 static const byte kDefaultNextSceneEnabled = 1;
96 static const byte kDefaultNextSceneDisabled = 2;
98 static const byte kPopNextScene = 1;
99 static const byte kNoPopNextScene = 2;
101 Common::String getRecordTypeName()
const override {
return "ConversationSound"; }
113 void addConditionalDialogue();
121 byte _conditionalResponseCharacterID;
122 byte _goodbyeResponseCharacterID;
123 byte _defaultNextScene = kDefaultNextSceneEnabled;
124 byte _popNextScene = kNoPopNextScene;
131 bool _hasDrawnTextbox;
132 int16 _pickedResponse;
134 const byte _noResponse;
140 void init()
override;
141 void updateGraphics()
override;
142 void onPause(
bool pause)
override;
146 bool isVideoDonePlaying()
override;
153 uint _videoFormat = kLargeVideoFormat;
154 uint16 _firstFrame = 0;
155 int16 _lastFrame = 0;
159 class ConversationCelLoader;
168 void init()
override;
169 void registerGraphics()
override;
170 void updateGraphics()
override;
175 uint getCurFrame()
const {
return _curFrame; }
178 Common::String getRecordTypeName()
const override {
return "ConversationCel"; }
189 bool isViewportRelative()
const override {
return true; }
192 static const byte kCelOverrideTreeRectsOff = 1;
193 static const byte kCelOverrideTreeRectsOn = 2;
195 bool isVideoDonePlaying()
override;
203 uint16 _frameTime = 0;
204 uint _videoFormat = kLargeVideoFormat;
205 uint16 _firstFrame = 0;
206 uint16 _lastFrame = 0;
215 uint32 _nextFrameTime = 0;
226 Common::String getRecordTypeName()
const override {
return "ConversationSoundT"; }
235 Common::String getRecordTypeName()
const override {
return "ConversationCelT"; }
247 Common::String getRecordTypeName()
const override {
return "ConversationSoundTerse"; }
256 Common::String getRecordTypeName()
const override {
return "ConversationCelTerse"; }
262 #endif // NANCY_ACTION_CONVERSATION_H Definition: managed_surface.h:51
Definition: conversation.h:180
Definition: commontypes.h:152
Definition: conversation.h:55
Definition: conversation.h:138
Definition: conversation.h:42
Definition: conversation.h:90
Definition: actionrecord.h:152
Definition: renderobject.h:36
Definition: conversation.h:242
Definition: conversation.h:65
Definition: conversation.h:251
Definition: conversation.h:72
Definition: conversation.h:163
Definition: conversation.h:85
Definition: conversation.h:186
Definition: commontypes.h:255
Definition: conversation.h:224
Definition: conversation.h:233
Definition: commontypes.h:167
Definition: actionmanager.h:32