ScummVM API documentation
tasks.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 */
21
22/* The task loading works as follows:
23 * - the task has a constructor MyPrivateTask(Process &, Serializer &)
24 * - DECLARE_TASK implements a global function to call that constructor
25 * void constructTask_MyPrivateTask(Process &, Serializer
26 * - in Process::syncGame we first forward-declare that function
27 * - we go through every task to compare task name and call the factory
28 */
29
30#ifndef DEFINE_TASK
31#define DEFINE_TASK(TaskName)
32#endif
33
34DEFINE_TASK(CamLerpPosTask)
35DEFINE_TASK(CamLerpScaleTask)
36DEFINE_TASK(CamLerpPosScaleTask)
37DEFINE_TASK(CamLerpRotationTask)
38DEFINE_TASK(CamShakeTask)
39DEFINE_TASK(CamWaitToStopTask)
40DEFINE_TASK(CamSetInactiveAttributeTask)
41DEFINE_TASK(CamV1DisguiseTask)
42DEFINE_TASK(SayTextTask)
43DEFINE_TASK(AnimateCharacterTask)
44DEFINE_TASK(LerpLodBiasTask)
45DEFINE_TASK(ArriveTask)
46DEFINE_TASK(DialogMenuTask)
47DEFINE_TASK(AnimateTask)
48DEFINE_TASK(CenterBottomTextTask)
49DEFINE_TASK(FadeTask)
50DEFINE_TASK(DoorTask)
51DEFINE_TASK(ScriptTimerTask)
52DEFINE_TASK(ScriptTask)
53DEFINE_TASK(WaitForInputTask)
54DEFINE_TASK(PlaySoundTask)
55DEFINE_TASK(WaitForMusicTask)
56DEFINE_TASK(DelayTask)
57
58#undef DEFINE_TASK