ScummVM API documentation
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
31namespace Tinsel {
32
33struct INT_CONTEXT;
34
36 uint32 processId; // ID of process
37 SCNHANDLE hProcessCode; // handle to actor script
38};
39
40//----------------- FUNCTION PROTOTYPES --------------------
41
42void SceneProcesses(uint32 numProcess, SCNHANDLE hProcess);
43void KillSceneProcess(uint32 procID);
44void SceneProcessEvent(CORO_PARAM, uint32 procID, TINSEL_EVENT event, bool bWait,
45 int myEscape, bool *result = NULL);
46void RestoreSceneProcess(INT_CONTEXT *pic);
47
48void GlobalProcesses(uint32 numProcess, byte *pProcess);
49void xKillGlobalProcess(uint32 procID);
50bool GlobalProcessEvent(CORO_PARAM, uint32 procID, TINSEL_EVENT event, bool bWait, int myEscape);
51void RestoreGlobalProcess(INT_CONTEXT *pic);
52void KillGlobalProcesses();
53void FreeGlobalProcesses();
54
55} // End of namespace Tinsel
56
57#endif // TINSEL_SCHED_H
#define CORO_PARAM
Definition: coroutines.h:107
Definition: actors.h:36
uint32 SCNHANDLE
Definition: dw.h:31
TINSEL_EVENT
Definition: events.h:91
Definition: pcode.h:54
Definition: sched.h:35