22 #ifndef ILLUSIONS_THREAD_H 23 #define ILLUSIONS_THREAD_H 25 #include "common/list.h" 29 class IllusionsEngine;
35 kTTAbortableThread = 4,
51 virtual int onUpdate();
52 virtual void onSuspend();
53 virtual void onNotify();
54 virtual void onPause();
55 virtual void onUnpause();
56 virtual void onResume();
57 virtual void onTerminated();
58 virtual void onKill();
59 virtual uint32 sendMessage(
int msgNum, uint32 msgValue);
75 uint32 _callingThreadId;
83 void startThread(
Thread *thread);
85 Thread *findThread(uint32 threadId);
86 void suspendId(uint32 threadId);
87 void notifyId(uint32 threadId);
88 void notifyTimerThreads(uint32 callingThreadId);
89 void suspendTimerThreads(uint32 callingThreadId);
90 void terminateThreads(uint32 threadId);
91 void terminateActiveThreads(uint32 threadId);
92 void terminateThreadsBySceneId(uint32 sceneId, uint32 threadId);
93 void suspendThreadsBySceneId(uint32 sceneId, uint32 threadId);
94 void notifyThreads(uint32 threadId);
95 void notifyThreadsBySceneId(uint32 sceneId, uint32 threadId);
96 void pauseThreads(uint32 threadId);
97 void unpauseThreads(uint32 threadId);
98 void suspendThreads(uint32 threadId);
99 void resumeThreads(uint32 threadId);
100 void endTalkThreads();
101 void endTalkThreadsNoNotify();
102 void terminateThreadChain(uint32 threadId);
103 void killThread(uint32 threadId);
104 void setThreadSceneId(uint32 threadId, uint32 sceneId);
105 uint32 getThreadSceneId(uint32 threadId);
106 bool isActiveThread(
int msgNum);
117 #endif // ILLUSIONS_THREAD_H
Definition: list_intern.h:51
Definition: illusions.h:92