ScummVM API documentation
walker.h
1 
2 /* ScummVM - Graphic Adventure Engine
3  *
4  * ScummVM is the legal property of its developers, whose names
5  * are too numerous to list here. Please refer to the COPYRIGHT
6  * file distributed with this source distribution.
7  *
8  * This program is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef M4_RIDDLE_WALKER_H
24 #define M4_RIDDLE_WALKER_H
25 
26 #include "common/array.h"
27 #include "m4/adv_r/adv_walk.h"
28 
29 namespace M4 {
30 namespace Riddle {
31 
32 // These are the walker types
33 enum {
34  WALKER_PLAYER = 0,
35  WALKER_ALT = 1
36 };
37 
38 // These are the shadow types
39 enum {
40  SHADOW_PLAYER = 0,
41  SHADOW_ALT = 1
42 };
43 
44 class Walker : public M4::Walker {
45 private:
49  static void player_walker_callback(frac16 myMessage, machine *sender);
50 
51 public:
52  ~Walker() override {}
53 
54  bool walk_load_walker_and_shadow_series() override;
55  machine *walk_initialize_walker() override;
56 
57  void reset_walker_sprites();
58  static void unloadSprites();
59 
60  bool ripley_said(const char *const list[][2]);
61 };
62 
63 void enable_player();
64 void disable_player();
65 void wilbur_abduct(int trigger);
66 void player_walk_to(int32 x, int32 y, int32 facing_x, int32 facing_y, int trigger = -1);
67 void player_walk_to(int32 x, int32 y, int trigger = -1);
68 
69 } // namespace Riddle
70 } // namespace M4
71 
72 #endif
Definition: ws_machine.h:130
Definition: adv_walk.h:32
intptr frac16
Definition: m4_types.h:46
Definition: database.h:28
Definition: walker.h:44