22 #ifndef DRAGONS_TALK_H 23 #define DRAGONS_TALK_H 25 #include "common/str.h" 26 #include "dragons/scriptopcodes.h" 38 byte *scriptCodeStartPtr;
39 byte *scriptCodeEndPtr;
51 uint32 _dat_8008e7e8_dialogBox_x1;
52 uint32 _dat_8008e844_dialogBox_y1;
53 uint32 _dat_8008e848_dialogBox_x2;
54 uint32 _dat_8008e874_dialogBox_y2;
59 uint32 _defaultResponseTbl[45];
61 uint8 _dat_800726ec_tfont_field0;
62 uint8 _dat_800726f0_tfont_field2;
64 uint8 _dat_800633f8_talkDialogFlag;
69 bool loadText(uint32 textIndex, uint16 *textBuffer, uint16 bufferLength);
70 void printWideText(byte *text);
72 void talkFromIni(uint32 iniId, uint32 textIndex);
73 void flickerRandomDefaultResponse();
75 void loadAndDisplayDialogAroundPoint(uint32 textId, uint16 x, uint16 y, uint16 param_4, int16 param_5);
76 uint32 displayDialogAroundINI(uint32 iniId, uint16 *dialogText, uint32 textIndex);
77 void displayDialogAroundPoint(uint16 *dialogText, uint16 x, uint16 y, uint16 param_4, int16 param_5, uint32 textId);
78 void displayDialogAroundActor(
Actor *actor, uint16 param_2, uint16 *dialogText, uint32 textIndex);
80 void FUN_8003239c(uint16 *dialog, int16 x, int16 y, int32 param_4, uint16 param_5,
Actor *actor, uint16 startSequenceId, uint16 endSequenceId, uint32 textId);
82 uint8 conversation_related_maybe(uint16 *dialogText, uint16 x, uint16 y, uint16 param_4, int16 param_5, uint32 textId, int16 param_7);
85 void clearDialogEntries();
89 uint somethingTextAndSpeechAndAnimRelated(
Actor *actor, int16 sequenceId1, int16 sequenceId2, uint32 textIndex, uint16 param_5);
90 void FUN_8001a7c4_clearDialogBoxMaybe();
92 void playDialogAudioDontWait(uint32 textIndex);
95 void copyTextToBuffer(uint16 *destBuffer, byte *src, uint32 destBufferLength);
96 uint32 wideStrLen(uint16 *text);
99 uint32 getDefaultResponseTextIndex();
100 void initDefaultResponseTable();
101 uint32 strlenUTF16(uint16 *text);
102 uint16 *findCharInU16Str(uint16 *text, uint16 chr);
103 void drawDialogBox(uint32 x1, uint32 y1, uint32 x2, uint32 y2, uint16 unk);
104 uint16 *UTF16ToUTF16Z(uint16 *dest, uint16 *src);
105 uint16 findLastPositionOf5cChar(uint16 *text);
106 uint32 truncateDialogText(uint16 *srcText, uint16 *destText, uint32 srcLength, uint16 destLength);
108 uint32 extractTextIndex(
Common::File *fd, uint16 offset);
113 #endif //DRAGONS_TALK_H
Definition: scriptopcodes.h:34
Definition: dragons.h:167