ScummVM API documentation
actor_types.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#ifndef HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_ACTOR_TYPES_H
23#define HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_ACTOR_TYPES_H
24
25#include "common/types.h"
26
27namespace Hollywood {
28
29// Decoded actor sprite metadata from RESOURCE.000.
31 uint32 runStreamOffset;
32 uint32 opaqueRunCount;
33 // Header-only palette-remap runs drawn after opaque pixels; used for actor shadows.
34 uint32 paletteRunCount;
35 int16 anchorX;
36 int16 anchorY;
37 uint16 width;
38 uint16 height;
39};
40
41// Smaller overlay actor descriptors used by talking/idling secondary actors.
43 uint32 runStreamOffset;
44 uint32 runCount;
45 int16 anchorX;
46 int16 anchorY;
47};
48
49// One rendered step in the active actor walking queue.
51 byte drawOrderMode;
52 byte facing;
53 byte cel;
54 int16 worldX;
55 int16 worldY;
56};
57
58// Mutable route builder state while expanding palette-region paths.
60 byte drawOrderMode;
61 byte facing;
62 byte cel;
63 int x;
64 int y;
65};
66
67} // End of namespace Hollywood
68
69#endif
Definition: actor_types.h:30
Definition: actor_types.h:59
Definition: actor_types.h:50
Definition: actor_types.h:42