27 #include "common/list.h" 39 kEvFSignaled = 0x8000,
40 kEvFNoDestory = 0x4000
60 kPsychicProfileBgEvent
89 kEventClearStatus = 4,
90 kEventSetFadeMode = 5,
91 kEventRestoreMode = 6,
96 kEventExecBlocking = 1,
97 kEventExecNonBlocking = 2,
102 kEventSetNormalCursor = 3,
103 kEventSetBusyCursor = 4,
110 kEventPalToBlack = 1,
111 kEventBlackToPal = 2,
115 kEventDissolveBGMask = 2,
118 kEventShowCutawayBg = 2
142 memset(
this, 0,
sizeof(*
this));
150 #define EVENT_WARNINGCOUNT 1000 151 #define EVENT_MASK 0x00FF 153 enum EventStatusCode {
154 kEvStInvalidCode = 0,
164 void handleEvents(
long msec);
165 void clearList(
bool playQueuedMusic =
true);
170 EventColumns *queue(
const Event &event) {
171 return chain(NULL, event);
176 EventColumns *queueMusic(
long musicId,
bool loop =
false,
long time = 0) {
177 return chainMusic(NULL, musicId, loop, time);
181 EventColumns *chain(EventColumns *eventColumns,
const Event &event);
184 EventColumns *chainMusic(EventColumns *eventColumns,
long musicId,
bool loop =
false,
long time = 0);
187 int handleContinuous(
Event *event);
188 int handleOneShot(
Event *event);
189 int handleInterval(
Event *event);
190 int handleImmediate(
Event *event);
191 void processEventTime(
long msec);
192 void initializeEvent(
Event &event);
197 EventList _eventList;