ScummVM API documentation
old_game_setup_struct.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 AGS_SHARED_AC_OLD_GAME_SETUP_STRUCT_H
23#define AGS_SHARED_AC_OLD_GAME_SETUP_STRUCT_H
24
25#if defined (OBSOLETE)
26
27#include "ags/shared/ac/character_info.h" // OldCharacterInfo, CharacterInfo
28#include "ags/shared/ac/event_block.h" // EventBlock
29#include "ags/shared/ac/interface_element.h" // InterfaceElement
30#include "ags/shared/ac/inventory_item_info.h" // InventoryItemInfo
31#include "ags/shared/ac/mouse_cursor.h" // MouseCursor
32#include "ags/shared/ac/words_dictionary.h" // WordsDictionary
33#include "ags/shared/script/cc_script.h" // ccScript
34
35namespace AGS3 {
36
37struct OriGameSetupStruct {
38 char gamename[30];
39 int8 options[20];
40 unsigned char paluses[256];
41 RGB defpal[256];
42 InterfaceElement iface[10];
43 int numiface;
44 int numviews;
45 MouseCursor mcurs[10];
46 char *globalscript;
47 int numcharacters;
48 OldCharacterInfo *chars;
49#if defined (OBSOLETE)
50 EventBlock __charcond[50];
51 EventBlock __invcond[100];
52#endif
53 ccScript *compiled_script;
54 int playercharacter;
55 unsigned char __old_spriteflags[2100];
56 int totalscore;
57 short numinvitems;
58 InventoryItemInfo invinfo[100];
59 int numdialog, numdlgmessage;
60 int numfonts;
61 int color_depth; // in bytes per pixel (ie. 1 or 2)
62 int target_win;
63 int dialog_bullet; // 0 for none, otherwise slot num of bullet point
64 short hotdot, hotdotouter; // inv cursor hotspot dot
65 int uniqueid; // random key identifying the game
66 int reserved[2];
67 short numlang;
68 char langcodes[MAXLANGUAGE][3];
69 char *messages[MAXGLOBALMES];
70};
71
72struct OriGameSetupStruct2 : public OriGameSetupStruct {
73 unsigned char fontflags[10];
74 int8 fontoutline[10];
75 int numgui;
76 WordsDictionary *dict;
77 int reserved2[8];
78};
79
80struct OldGameSetupStruct : public OriGameSetupStruct2 {
81 unsigned char spriteflags[LEGACY_MAX_SPRITES_V25];
82};
83
84} // namespace AGS3
85
86#endif
87
88#endif