ScummVM API documentation
extra.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 MADS_FOREST_EXTRA_H
23 #define MADS_FOREST_EXTRA_H
24 
25 #include "mads/madsv2/core/general.h"
26 
27 namespace MADS {
28 namespace MADSV2 {
29 namespace Forest {
30 
31 // Interface sprites
32 enum {
33  fx_int_journal = 0,
34  fx_int_backpack = 1,
35  fx_int_candle = 2,
36  fx_int_exit = 3,
37  fx_int_dooropen = 4,
38  fx_int_candle_on = 5
39 };
40 
41 enum InterfaceButton {
42  JOURNAL_FLY = 1,
43  BP_FLY = 2,
44  CANDLE_FLY = 3,
45  DOOR_FLY = 4
46 };
47 
48 /************** NOTE: *********************/
51 #define JOURNAL_X 8 /* X for top left corner of JOURNAL */
52 #define JOURNAL_Y 3 /* Y for top left corner of JOURNAL */
53 #define BP_X 68 /* X for top left corner of BP */
54 #define BP_Y 1 /* Y for top left corner of BP */
55 #define CANDLE_X 194 /* X for top left corner of CANDLE */
56 #define CANDLE_Y 4 /* Y for top left corner of CANDLE */
57 #define DOOR_X 264 /* X for top left corner of DOOR */
58 #define DOOR_Y 2 /* Y for top left corner of DOOR */
59 
60 extern int int_sprite[6];
61 extern bool knuthole_flag;
62 extern int paul_object_showing;
63 
64 extern void init_extra();
65 
66 inline void extra_blank_knothole() {
67  knuthole_flag = 0;
68 }
69 
70 extern void clear_selected_item();
71 extern void display_inventory();
72 extern void solve_me_selected();
73 extern void door_selected();
74 
75 extern void load_interface();
76 extern void unload_interface();
77 extern void draw_interface();
78 extern void do_interface();
79 
80 extern void stamp_sprite_to_interface(int x, int y, int sprite, int series);
81 extern void delete_sprite_in_interface(int series);
82 extern void extra_change_animation(int handle, int x, int y, byte scale, byte depth);
83 extern void extra_shift_animation(int handle, int x, int y, byte scale);
84 extern void extra_blank_knothole();
85 extern void inter_update_series(int series_id);
86 extern void open_interface(InterfaceButton button);
87 extern void close_interface(InterfaceButton button);
88 
89 } // namespace Forest
90 } // namespace MADSV2
91 } // namespace MADS
92 
93 #endif
Definition: mps_installer.h:31