ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sched.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  * Data structures used by the process scheduler
21  */
22 
23 #ifndef TINSEL_SCHED_H // prevent multiple includes
24 #define TINSEL_SCHED_H
25 
26 #include "common/coroutines.h"
27 #include "tinsel/dw.h" // new data types
28 #include "tinsel/events.h"
29 #include "tinsel/tinsel.h"
30 
31 namespace Tinsel {
32 
33 struct INT_CONTEXT;
34 
35 struct PROCESS_STRUC {
36  uint32 processId; // ID of process
37  SCNHANDLE hProcessCode; // handle to actor script
38 };
39 
40 //----------------- FUNCTION PROTOTYPES --------------------
41 
42 void SceneProcesses(uint32 numProcess, SCNHANDLE hProcess);
43 void KillSceneProcess(uint32 procID);
44 void SceneProcessEvent(CORO_PARAM, uint32 procID, TINSEL_EVENT event, bool bWait,
45  int myEscape, bool *result = NULL);
46 void RestoreSceneProcess(INT_CONTEXT *pic);
47 
48 void GlobalProcesses(uint32 numProcess, byte *pProcess);
49 void xKillGlobalProcess(uint32 procID);
50 bool GlobalProcessEvent(CORO_PARAM, uint32 procID, TINSEL_EVENT event, bool bWait, int myEscape);
51 void RestoreGlobalProcess(INT_CONTEXT *pic);
52 void KillGlobalProcesses();
53 void FreeGlobalProcesses();
54 
55 } // End of namespace Tinsel
56 
57 #endif // TINSEL_SCHED_H
uint32 SCNHANDLE
Definition: dw.h:31
Definition: sched.h:35
TINSEL_EVENT
Definition: events.h:91
#define CORO_PARAM
Definition: coroutines.h:107
Definition: actors.h:36
Definition: pcode.h:54