1 //=============================================================================
2 //
3 // Adventure Game Studio (AGS)
4 //
5 // Copyright (C) 1999-2011 Chris Jones and 2011-20xx others
6 // The full list of copyright holders can be found in the Copyright.txt
7 // file, which is part of this source code distribution.
8 //
9 // The AGS source code is provided under the Artistic License 2.0.
10 // A copy of this license can be found in the file License.txt and at
11 // http://www.opensource.org/licenses/artistic-license-2.0.php
12 //
13 //=============================================================================
14 
15 #ifndef __AC_RUNTIMEDEFINES_H
16 #define __AC_RUNTIMEDEFINES_H
17 
18 // Max script string length
19 #define MAX_MAXSTRLEN 200
20 #define MAXGLOBALVARS 50
21 
22 #define INVALID_X  30000
23 #define MAXGSVALUES 500
24 #define MAXGLOBALSTRINGS 51
25 #define MAX_INVORDER 500
26 #define SCALIGN_LEFT     1
27 #define SCALIGN_CENTRE   2
28 #define SCALIGN_RIGHT    3
29 #define DIALOG_NONE      0
30 #define DIALOG_RUNNING   1
31 #define DIALOG_STOP      2
32 #define DIALOG_NEWROOM   100
33 #define DIALOG_NEWTOPIC  12000
34 #define MAX_TIMERS       21
35 #define MAX_PARSED_WORDS 15
36 #define MAXSAVEGAMES     50
37 #define MAX_QUEUED_MUSIC 10
38 #define GLED_INTERACTION 1
39 #define GLED_EFFECTS     2
40 #define QUEUED_MUSIC_REPEAT 10000
41 #define PLAYMP3FILE_MAX_FILENAME_LEN 50
42 #define MAX_AUDIO_TYPES  30
43 
44 const int LegacyMusicMasterVolumeAdjustment = 60;
45 const int LegacyRoomVolumeFactor            = 30;
46 
47 // These numbers were chosen arbitrarily -- the idea is
48 // to make sure that the user gets the parameters the right way round
49 #define ANYWHERE       304
50 #define WALKABLE_AREAS 305
51 #define BLOCKING       919
52 #define IN_BACKGROUND  920
53 #define FORWARDS       1062
54 #define BACKWARDS      1063
55 #define STOP_MOVING    1
56 #define KEEP_MOVING    0
57 
58 #define SCR_NO_VALUE   31998
59 #define SCR_COLOR_TRANSPARENT -1
60 
61 
62 
63 #define NUM_DIGI_VOICES     16
64 #define NUM_MOD_DIGI_VOICES 12
65 
66 #define DEBUG_CONSOLE_NUMLINES 6
67 #define TXT_SCOREBAR        29
68 #define MAXSCORE play.totalscore
69 #define CHANIM_REPEAT    2
70 #define CHANIM_BACKWARDS 4
71 #define ANIM_BACKWARDS 10
72 #define ANIM_ONCE      1
73 #define ANIM_REPEAT    2
74 #define ANIM_ONCERESET 3
75 #define FONT_STATUSBAR  0
76 #define FONT_NORMAL     play.normal_font
77 //#define FONT_SPEECHBACK 1
78 #define FONT_SPEECH     play.speech_font
79 #define MODE_WALK 0
80 #define MODE_LOOK 1
81 #define MODE_HAND 2
82 #define MODE_TALK 3
83 #define MODE_USE  4
84 #define MODE_PICKUP 5
85 #define CURS_ARROW  6
86 #define CURS_WAIT   7
87 #define MODE_CUSTOM1 8
88 #define MODE_CUSTOM2 9
89 
90 #define OVER_TEXTMSG  1
91 #define OVER_COMPLETE 2
92 #define OVER_PICTURE  3
93 #define OVER_CUSTOM   100
94 #define OVR_AUTOPLACE 30000
95 #define FOR_ANIMATION 1
96 #define FOR_SCRIPT    2
97 #define FOR_EXITLOOP  3
98 #define opts usetup
99 #define CHMLSOFFS (MAX_INIT_SPR+1)    // reserve this many movelists for objects & stuff
100 #define MAX_SCREEN_OVERLAYS 20
101 #define abort_all_conditions restrict_until
102 #define MAX_SCRIPT_AT_ONCE 10
103 #define EVENT_NONE       0
104 #define EVENT_INPROGRESS 1
105 #define EVENT_CLAIMED    2
106 
107 #define SKIP_AUTOTIMER  1
108 #define SKIP_KEYPRESS   2
109 #define SKIP_MOUSECLICK 4
110 
111 #define UNTIL_ANIMEND   1
112 #define UNTIL_MOVEEND   2
113 #define UNTIL_CHARIS0   3
114 #define UNTIL_NOOVERLAY 4
115 #define UNTIL_NEGATIVE  5
116 #define UNTIL_INTIS0    6
117 #define UNTIL_SHORTIS0  7
118 #define UNTIL_INTISNEG  8
119 #define MANOBJNUM 99
120 
121 #define STD_BUFFER_SIZE 3000
122 
123 #define TURNING_AROUND     1000
124 #define TURNING_BACKWARDS 10000
125 
126 #define MAX_PLUGIN_OBJECT_READERS 50
127 
128 #define NEXT_ITERATION() play.gamestep++
129 
130 #ifndef MAX_PATH
131 #define MAX_PATH 260
132 #endif
133 
134 #if !defined (WINDOWS_VERSION)
135 #define HWND long
136 #endif
137 
138 #define BASEWIDTH play.native_size.Width
139 #define BASEHEIGHT play.native_size.Height
140 #define TRANS_ALPHA_CHANNEL 20000
141 #define TRANS_OPAQUE        20001
142 #define TRANS_RUN_PLUGIN    20002
143 
144 
145 #define LOCTYPE_HOTSPOT 1
146 #define LOCTYPE_CHAR 2
147 #define LOCTYPE_OBJ  3
148 
149 #define MAX_DYNAMIC_SURFACES 20
150 
151 #define MAX_ANIMATING_BUTTONS 15
152 #define RESTART_POINT_SAVE_GAME_NUMBER 999
153 
154 #define MAX_OPEN_SCRIPT_FILES 10
155 
156 #include "ac/common_defines.h"
157 
158 #endif // __AC_RUNTIMEDEFINES_H
159