ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ids.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 TWP_IDS_H
23 #define TWP_IDS_H
24 
25 #define ALL 1
26 #define HERE 0
27 #define GONE 4
28 #define OFF 0
29 #define ON 1
30 #define FULL 0
31 #define EMPTY 1
32 #define OPEN 1
33 #define CLOSED 0
34 #define FALSE 0
35 #define TRUE 1
36 #define MOUSE 1
37 #define CONTROLLER 2
38 #define DIRECTDRIVE 3
39 #define TOUCH 4
40 #define REMOTE 5
41 #define FADE_IN 0
42 #define FADE_OUT 1
43 #define FADE_WOBBLE 2
44 #define FADE_WOBBLE_TO_SEPIA 3
45 #define FACE_FLIP 16
46 #define DIR_FRONT 4
47 #define DIR_BACK 8
48 #define DIR_LEFT 2
49 #define DIR_RIGHT 1
50 #define LINEAR 0
51 #define EASE_IN 1
52 #define EASE_INOUT 2
53 #define EASE_OUT 3
54 #define SLOW_EASE_IN 4
55 #define SLOW_EASE_OUT 5
56 #define LOOPING 0x10
57 #define SWING 0X20
58 #define STOP_LOOPING 0X40
59 #define ALIGN_LEFT 0x0000000010000000
60 #define ALIGN_CENTER 0x0000000020000000
61 #define ALIGN_RIGHT 0x0000000040000000
62 #define ALIGN_TOP 0xFFFFFFFF80000000
63 #define ALIGN_BOTTOM 0x0000000001000000
64 #define LESS_SPACING 0x0000000000200000
65 #define EX_ALLOW_SAVEGAMES 0x01
66 #define EX_POP_CHARACTER_SELECTION 0x02
67 #define EX_CAMERA_TRACKING 0x03
68 #define EX_BUTTON_HOVER_SOUND 0x04
69 #define EX_RESTART 0x06
70 #define EX_IDLE_TIME 0x07
71 #define EX_AUTOSAVE 0x08
72 #define EX_AUTOSAVE_STATE 0x09
73 #define EX_DISABLE_SAVESYSTEM 0x0A
74 #define EX_SHOW_OPTIONS 11
75 #define EX_OPTIONS_MUSIC 12
76 #define EX_FORCE_TALKIE_TEXT 13
77 #define EX_SCREEN_SIZE 14
78 #define GRASS_BACKANDFORTH 0x00
79 #define DOOR 0x40
80 #define DOOR_LEFT 0x140
81 #define DOOR_RIGHT 0x240
82 #define DOOR_BACK 0x440
83 #define DOOR_FRONT 0x840
84 #define FAR_LOOK 0x8
85 #define USE_WITH 2
86 #define USE_ON 4
87 #define USE_IN 32
88 #define GIVEABLE 0x1000
89 #define TALKABLE 0x2000
90 #define IMMEDIATE 0x4000
91 #define FEMALE 0x80000
92 #define MALE 0x100000
93 #define PERSON 0x200000
94 #define REACH_HIGH 0x8000
95 #define REACH_MED 0x10000
96 #define REACH_LOW 0x20000
97 #define REACH_NONE 0x40000
98 #define VERB_WALKTO 1
99 #define VERB_LOOKAT 2
100 #define VERB_TALKTO 3
101 #define VERB_PICKUP 4
102 #define VERB_OPEN 5
103 #define VERB_CLOSE 6
104 #define VERB_PUSH 7
105 #define VERB_PULL 8
106 #define VERB_GIVE 9
107 #define VERB_USE 10
108 #define VERB_DIALOG 13
109 #define VERBFLAG_INSTANT 1
110 #define TWP_NO 0
111 #define TWP_YES 1
112 #define TEMP_UNSELECTABLE 2
113 #define TEMP_SELECTABLE 3
114 #define MAC 1
115 #define WIN 2
116 #define LINUX 3
117 #define XBOX 4
118 #define IOS 5
119 #define ANDROID 6
120 #define SWITCH 7
121 #define PS4 8
122 #define EFFECT_NONE 0
123 #define EFFECT_SEPIA 1
124 #define EFFECT_EGA 2
125 #define EFFECT_VHS 3
126 #define EFFECT_GHOST 4
127 #define EFFECT_BLACKANDWHITE 5
128 #define UI_INPUT_ON 1
129 #define UI_INPUT_OFF 2
130 #define UI_VERBS_ON 4
131 #define UI_VERBS_OFF 8
132 #define UI_HUDOBJECTS_ON 0x10
133 #define UI_HUDOBJECTS_OFF 0x20
134 #define UI_CURSOR_ON 0x40
135 #define UI_CURSOR_OFF 0x80
136 
137 // these codes corresponds to SDL key codes used in TWP
138 #define KEY_UP 0x40000052
139 #define KEY_RIGHT 0x4000004F
140 #define KEY_DOWN 0x40000051
141 #define KEY_LEFT 0x40000050
142 #define KEY_PAD1 0x40000059
143 #define KEY_PAD2 0x4000005A
144 #define KEY_PAD3 0x4000005B
145 #define KEY_PAD4 0x4000005C
146 #define KEY_PAD5 0x4000005D
147 #define KEY_PAD6 0x4000005E
148 #define KEY_PAD7 0x4000005F
149 #define KEY_PAD8 0x40000056
150 #define KEY_PAD9 0x40000061
151 #define KEY_ESCAPE 0x08
152 #define KEY_TAB 0x09
153 #define KEY_RETURN 0x0D
154 #define KEY_BACKSPACE 0x1B
155 #define KEY_SPACE 0X20
156 #define KEY_A 0x61
157 #define KEY_B 0x62
158 #define KEY_C 0x63
159 #define KEY_D 0x64
160 #define KEY_E 0x65
161 #define KEY_F 0x66
162 #define KEY_G 0x67
163 #define KEY_H 0x68
164 #define KEY_I 0x69
165 #define KEY_J 0x6A
166 #define KEY_K 0x6B
167 #define KEY_L 0x6C
168 #define KEY_M 0x6D
169 #define KEY_N 0x6E
170 #define KEY_O 0x6F
171 #define KEY_P 0x70
172 #define KEY_Q 0x71
173 #define KEY_R 0x72
174 #define KEY_S 0x73
175 #define KEY_T 0x74
176 #define KEY_U 0x75
177 #define KEY_V 0x76
178 #define KEY_W 0x77
179 #define KEY_X 0x78
180 #define KEY_Y 0x79
181 #define KEY_Z 0x7A
182 #define KEY_0 0x30
183 #define KEY_1 0x31
184 #define KEY_2 0x32
185 #define KEY_3 0x33
186 #define KEY_4 0x34
187 #define KEY_5 0x35
188 #define KEY_6 0x36
189 #define KEY_7 0x37
190 #define KEY_8 0x38
191 #define KEY_9 0x39
192 #define KEY_F1 0x4000003A
193 #define KEY_F2 0x4000003B
194 #define KEY_F3 0x4000003C
195 #define KEY_F4 0x4000003D
196 #define KEY_F5 0x4000003E
197 #define KEY_F6 0x4000003F
198 #define KEY_F7 0x40000040
199 #define KEY_F8 0x40000041
200 #define KEY_F9 0x40000042
201 #define KEY_F10 0x40000043
202 #define KEY_F11 0x40000044
203 #define KEY_F12 0x40000045
204 
205 #define BUTTON_A 0x3E8
206 #define BUTTON_B 0x3E9
207 #define BUTTON_X 0x3EA
208 #define BUTTON_Y 0x3EB
209 #define BUTTON_START 0x3EC
210 #define BUTTON_BACK 0x3EC
211 #define BUTTON_MOUSE_LEFT 0x3ED
212 #define BUTTON_MOUSE_RIGHT 0x3EE
213 
214 #endif