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