22 #ifndef MADS_MESSAGES_H 23 #define MADS_MESSAGES_H 25 #include "common/scummsys.h" 26 #include "common/array.h" 27 #include "mads/action.h" 28 #include "mads/font.h" 29 #include "mads/msurface.h" 33 #define KERNEL_MESSAGES_SIZE 10 34 #define INDEFINITE_TIMEOUT 9999999 35 #define TEXT_DISPLAY_SIZE 40 36 #define RANDOM_MESSAGE_SIZE 4 38 enum KernelMessageFlags {
39 KMSG_QUOTED = 1, KMSG_PLAYER_TIMEOUT = 2, KMSG_SEQ_ENTRY = 4, KMSG_SCROLL = 8,
40 KMSG_RIGHT_ALIGN = 0x10, KMSG_CENTER_ALIGN = 0x20, KMSG_EXPIRE = 0x40,
41 KMSG_ACTIVE = 0x80, KMSG_ANIM = 0x100
53 int _textDisplayIndex;
60 TriggerMode _abortMode;
101 int add(
const Common::Point &pt, uint fontColor, uint8 flags,
int endTrigger,
103 int addQuote(
int quoteId,
int endTrigger, uint32 timeout);
104 void scrollMessage(
int msgIndex,
int numTicks,
bool quoted);
105 void setSeqIndex(
int msgIndex,
int seqIndex);
106 void setAnim(
int msgId,
int seqId,
int val3);
107 void remove(
int msgIndex);
110 void processText(
int msgIndex);
111 void delay(uint32 priorFrameTime, uint32 currentTime);
112 void setQuoted(
int msgIndex,
int numTicks,
bool quoted);
114 void initRandomMessages(
int maxSimultaneousMessages,
115 const Common::Rect &bounds,
int minYSpacing,
int scrollRate,
116 int color,
int duration,
int quoteId, ...);
131 bool generateRandom(
int major,
int minor);
148 #define TEXT_DISPLAY_SIZE 40 159 void expire(
int idx);
161 int add(
int xp,
int yp, uint fontColor,
int charSpacing,
const Common::String &,
Font *font);
177 void setDirtyAreas();
182 void setDirtyAreas2();
Definition: msurface.h:55
Definition: messages.h:67
Definition: messages.h:74
Definition: messages.h:134
Definition: messages.h:150
Definition: messages.h:46
Definition: messages.h:87