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 
27 namespace M4 {
28 namespace Riddle {
29 
30 extern const int16 RIPLEY_SERIES_DIRS[];
31 extern const int16 RIPLEY_SHADOWS_DIRS[6];
32 
33 // These are the walker types
34 enum {
35  WALKER_PLAYER = 0,
36  WALKER_ALT = 1
37 };
38 
39 // These are the shadow types
40 enum {
41  SHADOW_PLAYER = 0,
42  SHADOW_ALT = 1
43 };
44 
45 class Walker : public M4::Walker {
46  // Strangerke : I turned the callback from private to public as it's called by room 803. TODO: Check if it's correct, then update the description accordingly
47 public:
51  static void player_walker_callback(frac16 myMessage, machine *sender);
52 
53 public:
54  ~Walker() override {}
55 
56  bool walk_load_walker_and_shadow_series() override;
57  machine *walk_initialize_walker() override;
58 
59  static void unloadSprites();
60 
61  bool ripley_said(const char *const list[][2]);
62 };
63 
64 void enable_player();
65 void disable_player();
66 
67 } // namespace Riddle
68 } // namespace M4
69 
70 #endif
Definition: ws_machine.h:155
Definition: adv_walk.h:32
static void player_walker_callback(frac16 myMessage, machine *sender)
intptr frac16
Definition: m4_types.h:46
Definition: database.h:28
Definition: walker.h:45