22 #ifndef TSAGE_CONVERSE_H 23 #define TSAGE_CONVERSE_H 25 #include "tsage/core.h" 26 #include "tsage/dialogs.h" 27 #include "tsage/sound.h" 33 virtual void stripCallback(
int v) = 0;
36 typedef void (*SequenceCallback)(
int v1,
int v2);
41 uint16 getNextValue();
42 void setMessage(
int resNum,
int lineNum,
int color,
const Common::Point &pt,
int width);
43 void setMessage(
int resNum,
int lineNum,
int fontNum,
int color1,
int color2,
int color3,
58 SequenceCallback _onCallback;
62 Common::String getClassName()
override {
return "SequenceManager"; }
64 void remove()
override;
65 void signal()
override;
66 void process(
Event &event)
override;
85 int _color1, _color2, _color3;
92 void remove()
override;
93 virtual void startSpeaking(
Action *action);
95 virtual void removeText();
96 virtual void stopSpeaking() {}
105 Common::String getClassName()
override {
return "SpeakerGameText"; }
114 Common::String getClassName()
override {
return "ScreenSpeaker"; }
120 void signal()
override;
122 Common::String getClassName()
override {
return "SpeakerAction"; }
131 Common::String getClassName()
override {
return "AnimatedSpeaker"; }
132 void removeText()
override;
149 int textLeft()
const;
150 int textMaxWidth()
const;
151 int numberLeft()
const;
157 int _savedFontNumber;
163 void setColors(
int stdColor,
int highlightColor) {
164 _stdColor = stdColor;
165 _highlightColor = highlightColor;
167 void setFontNumber(
int fontNum) { _fontNumber = fontNum; }
170 void draw()
override;
179 s.syncAsSint32LE(_id);
180 s.syncAsUint32LE(_scriptOffset);
184 #define OBJ44_LIST_SIZE 5 185 #define OBJ0A_LIST_SIZE ((g_vm->getGameID() == GType_Ringworld2) ? 8 : 5) 190 int _callbackId[OBJ44_LIST_SIZE];
196 int _lookupValue, _lookupIndex, _exitMode;
200 void load(
const byte *dataP);
204 typedef void (*StripProc)();
210 Speaker *getSpeaker(
const char *speakerName);
211 int getNewIndex(
int newId);
238 void remove()
override;
239 void dispatch()
override;
240 void signal()
override;
241 void process(
Event &event)
override;
244 void start3(
int stripNum,
EventHandler *owner, byte *lookupList);
245 void setCallback(
StripCallback *callback) { _callbackObject = callback; }
246 void setColors(
int stdColor,
int highlightColor) { _choiceDialog.setColors(stdColor, highlightColor); }
247 void setFontNumber(
int fontNum) { _choiceDialog.setFontNumber(fontNum); }
248 void addSpeaker(
Speaker *speaker);
Definition: converse.h:147
Definition: converse.h:118
Definition: saveload.h:84
Definition: converse.h:187
Definition: converse.h:71
Definition: converse.h:135
Definition: converse.h:31
Definition: converse.h:125
Definition: converse.h:101
Definition: converse.h:173
Definition: blueforce_dialogs.h:30
Definition: saveload.h:63
Definition: converse.h:108
Definition: converse.h:206
Definition: graphics.h:40
Definition: converse.h:38