22 #ifndef NGI_MESSAGEQUEUE_H 23 #define NGI_MESSAGEQUEUE_H 25 #include "ngi/utils.h" 26 #include "ngi/inventory.h" 28 #include "ngi/sound.h" 29 #include "ngi/scene.h" 56 Message(int16 parentId,
int messageKind,
int x,
int y,
int a6,
int a7,
int sceneClickX,
int sceneClickY,
int a10);
68 ExCommand(int16 parentId,
int messageKind,
int messageNum,
int x,
int y,
int a7,
int a8,
int sceneClickX,
int sceneClickY,
int a11);
132 int getFlags() {
return _flags; }
133 void setFlags(
int flags) { _flags = flags; }
135 uint getCount() {
return _exCommands.
size(); }
139 void insertExCommandAt(
int pos,
ExCommand *ex);
140 ExCommand *getExCommandByIndex(uint idx);
141 void deleteExCommandByIndex(uint idx,
bool doFree);
145 void setParamInt(
int key1,
int key2);
150 void sendNextCommand();
153 void messageQueueCallback1(
int par);
155 bool checkGlobalExCommandList1();
156 bool checkGlobalExCommandList2();
159 void changeParam28ForObjectId(
int objId,
int oldParam28,
int newParam28);
161 int activateExCommandsByKind(
int kind);
167 void deleteQueueById(
int id);
168 void removeQueueById(
int id);
169 void disableQueueById(
int id);
185 bool removeMessageHandler(int16
id,
int pos);
187 void addMessageHandler(
int (*callback)(
ExCommand *), int16
id);
190 int getMessageHandlersCount();
191 bool addMessageHandlerByIndex(
int (*callback)(
ExCommand *),
int index, int16
id);
192 bool insertMessageHandler(
int (*callback)(
ExCommand *),
int index, int16
id);
193 void clearMessageHandlers();
194 void processMessages();
195 void updateGlobalMessageQueue(
int id,
int objid);
196 void clearMessages();
197 void clearGlobalMessageQueueList();
198 void clearGlobalMessageQueueList1();
200 bool chainQueue(
int queueId,
int flags);
202 void postExCommand(
int parentId,
int keyCode,
int x,
int y,
int f20,
int f16);
Definition: messages.h:177
size_type size() const
Definition: list.h:198
Definition: messages.h:108
Definition: messages.h:37
Definition: messages.h:164
Definition: statics.h:172
Definition: messages.h:59
Definition: anihandler.h:25
Definition: messages.h:84
Definition: messages.h:94