ScummVM API documentation
sysvar.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 * System variable handling.
21 */
22
23#ifndef TINSEL_SYSVAR_H // prevent multiple includes
24#define TINSEL_SYSVAR_H
25
26namespace Tinsel {
27
28typedef enum { SV_DEFAULT_INV,
29
30 SV_CONV_TOPY, // Y-offset of Conversation(TOP)
31 SV_CONV_BOTY, // Y-offset of Conversation(BOT)
32 SV_CONV_MINX, // Minimum distance from side
33 SV_CONV_MINY, // Minimum distance from top
34 SV_CONV_ABOVE_Y, // Distance above actor
35 SV_CONV_BELOW_Y, // Distance below actor
36
37 SV_LANGUAGE,
38 SV_SAMPLE_LANGUAGE,
39 SV_SUBTITLES,
40 SV_SAVED_GAME_EXISTS,
41
42 SV_CONVERSATIONWAITS, // } Do they wait for
43 SV_SPEECHWAITS, // } scrolls to complete?
44
45 SV_ENABLEPOINTTAG, // Enable PointTag()
46 SV_ENABLEPRINTCURSOR, // Enable cursor with PrintCursor()
47
48 SV_SCROLL_XTRIGGER, // }
49 SV_SCROLL_XDISTANCE, // }
50 SV_SCROLL_XSPEED, // } Scroll parameters!
51 SV_SCROLL_YTRIGGERTOP, // }
52 SV_SCROLL_YTRIGGERBOT, // }
53 SV_SCROLL_YDISTANCE, // }
54 SV_SCROLL_YSPEED, // }
55
56 SV_SPEECHDELAY, // Delay 'twixt text/animation and sample
57 SV_MUSICDIMFACTOR, // dimVolume = volume - volume/SV_MDF
58
59 SV_TAGCOLOR, // if set, default actor's text color gets poked in here
60
61 SV_USER1,
62 SV_USER2,
63 SV_USER3,
64 SV_USER4,
65 SV_USER5,
66 SV_USER6,
67
68 SV_MinimumXoffset,
69 SV_MaximumXoffset,
70 SV_MinimumYoffset,
71 SV_MaximumYoffset,
72 // dimVolume = volume - volume/DF
73 SYS_DefaultFxDimFactor, // To this at start of scene
74 SYS_SceneFxDimFactor, // Alter within scene
75
76 SYS_HighlightRGB,
77 SYS_Platform, // Hardware platform **READ ONLY**
78 SYS_Debug, // TRUE for debug build/'cheat'**READ ONLY**
79
80 ISV_DIVERT_ACTOR_T2 = 0x28,
81 ISV_NO_BLOCKING_T2 = 0x29,
82 ISV_GHOST_ACTOR_T2 = 0x2A,
83 ISV_GHOST_BASE_T2 = 0x2B,
84 ISV_GHOST_COLOR_T2 = 0x2C,
85
86 SV_TOPVALID_T2 = 0x2D,
87
88 SV_SPRITER_SCENE_ID = 0x2F, // Noir, loaded scene
89 ISV_DIVERT_ACTOR_T3 = 0x32,
90 ISV_NO_BLOCKING_T3 = 0x33,
91 ISV_GHOST_ACTOR_T3 = 0x34,
92 ISV_GHOST_BASE_T3 = 0x35,
93 ISV_GHOST_COLOR_T3 = 0x36,
94 SV_SPRITER_SCALE = 0x37, // Noir, scale used for 3D rendering
95 SV_SPRITER_OVERLAY = 0x38, // Noir, if additional model is loaded
96
97 SV_TOPVALID_T3 } SYSVARS;
98
99#define ISV_DIVERT_ACTOR ((TinselVersion == 3) ? ISV_DIVERT_ACTOR_T3 : ISV_DIVERT_ACTOR_T2)
100#define ISV_NO_BLOCKING ((TinselVersion == 3) ? ISV_NO_BLOCKING_T3 : ISV_NO_BLOCKING_T2)
101#define ISV_GHOST_ACTOR ((TinselVersion == 3) ? ISV_GHOST_ACTOR_T3 : ISV_GHOST_ACTOR_T2)
102#define ISV_GHOST_BASE ((TinselVersion == 3) ? ISV_GHOST_BASE_T3 : ISV_GHOST_BASE_T2)
103#define ISV_GHOST_COLOR ((TinselVersion == 3) ? ISV_GHOST_COLOR_T3 : ISV_GHOST_COLOR_T2)
104#define SV_TOPVALID ((TinselVersion == 3) ? SV_TOPVALID_T3 : SV_TOPVALID_T2)
105
106typedef enum {
107
108 // Main Menu
109 SS_LOAD_OPTION, //
110 SS_SAVE_OPTION, //
111 SS_RESTART_OPTION, //
112 SS_SOUND_OPTION, //
113 SS_CONTROL_OPTION, //
114 SS_SUBTITLES_OPTION, //
115 SS_QUIT_OPTION, //
116 SS_RESUME_OPTION, //
117
118 SS_LOAD_HEADING,
119 SS_SAVE_HEADING,
120 SS_RESTART_HEADING,
121 SS_QUIT_HEADING,
122
123 SS_MVOL_SLIDER,
124 SS_SVOL_SLIDER,
125 SS_VVOL_SLIDER,
126
127 SS_DCLICK_SLIDER,
128 SS_DCLICK_TEST,
129 SS_SWAP_TOGGLE,
130
131 SS_TSPEED_SLIDER,
132 SS_STITLE_TOGGLE,
133
134 SS_HOPPER1, // Hopper scene menu heading
135
136 SS_SOUND_HEADING,
137 SS_CONTROLS_HEADING,
138 SS_LANGUAGE_SELECT,
139
140 // Noir only:
141 SS_NOIR1,
142 SS_NOIR2,
143 SS_NOIR3,
144 SS_NOIR4,
145
146 SS_MAX_VALID
147} BOLLOX;
148
149void InitSysVars();
150
151void SetSysVar(int varId, int newValue);
152
153int SysVar(int varId);
154
155void SaveSysVars(int *pSv);
156void RestoreSysVars(int *pSv);
157
158void SetSysString(int number, SCNHANDLE hString);
159
160SCNHANDLE SysString(int number);
161
162bool GetNoBlocking();
163
164void SetNoBlocking(bool flag);
165
166} // End of namespace Tinsel
167
168#endif
Definition: actors.h:36
uint32 SCNHANDLE
Definition: dw.h:31