ScummVM API documentation
walker.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 M4_RIDDLE_WALKER_H
23#define M4_RIDDLE_WALKER_H
24
25#include "m4/adv_r/adv_walk.h"
26
27namespace M4 {
28namespace Riddle {
29
30extern const int16 RIPLEY_SERIES_DIRS[];
31extern const int16 RIPLEY_SHADOWS_DIRS[6];
32
33// These are the walker types
34enum {
35 WALKER_PLAYER = 0,
36 WALKER_ALT = 1
37};
38
39// These are the shadow types
40enum {
41 SHADOW_PLAYER = 0,
42 SHADOW_ALT = 1
43};
44
45class Walker : public M4::Walker {
46public:
47 ~Walker() override {}
48
52 static void player_walker_callback(frac16 myMessage, machine *sender);
53
54 void walk_load_walker_and_shadow_series() override;
55 machine *walk_initialize_walker() override;
56
57 static void unloadSprites();
58
59 bool ripley_said(const char *const list[][2]);
60};
61
62void enable_player();
63void disable_player();
64
65} // namespace Riddle
66} // namespace M4
67
68#endif
Definition: walker.h:45
static void player_walker_callback(frac16 myMessage, machine *sender)
Definition: adv_walk.h:31
Definition: database.h:28
intptr frac16
Definition: m4_types.h:45
Definition: ws_machine.h:156