ScummVM API documentation
database.h
1
2/* ScummVM - Graphic Adventure Engine
3 *
4 * ScummVM is the legal property of its developers, whose names
5 * are too numerous to list here. Please refer to the COPYRIGHT
6 * file distributed with this source distribution.
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 *
21 */
22
23#ifndef M4_ADV_DB_R_DATABASE_H
24#define M4_ADV_DB_R_DATABASE_H
25
26#include "m4/m4_types.h"
27
28namespace M4 {
29
30#define STR_DB_TREE "db tree node"
31#define STR_DB_TOKEN "db token"
32#define STR_DB_STRING "db string"
33#define STR_GENERICLIST "GenericList"
34
35#define NOTHING 0
36#define INTEGER 1
37#define FLOAT 2
38#define DELIMITER 3
39#define IDENTIFIER 4
40#define STRING 5
41#define COMMENT 6
42#define OPERATOR 7
43#define MATH 8
44#define BITWISE 9
45#define LOGICAL 10
46#define DUMMY 11
47
48#define OPENB 400
49#define CLOSEB 401
50#define O_BRACE 408
51#define C_BRACE 409
52#define COMMA 414
53#define COLON 479
54
55#define _T_SCENEFILE 101
56#define _T_VERSION 102
57#define _T_SCENE 103
58#define _T_ARTBASE 104
59#define _T_HOTSPOTS 105
60#define _T_VERB 107
61#define _T_SYNTAX 108
62#define _T_FACING 109
63#define _T_FEETX 110
64#define _T_FEETY 111
65#define _T_CURSOR 112
66#define _T_FRONTSCALE 113
67#define _T_BACKSCALE 114
68#define _T_FRONTY 115
69#define _T_BACKY 116
70#define _T_RAILS 117
71#define _T_DEPTHS 118
72#define _T_PREP 123
73#define _T_PARALLAX 124
74#define _T_SPRITE 125
75#define _T_PROPS 126
76
77#define PR_ERR_PARSE -1
78#define _T_NAME 146
79#define _T_ARTIST 103
80#define _T_ITEM 107
81#define _T_TITLE 108
82#define _T_NEXTASSET 109
83#define _T_BACKGROUNDS 110
84#define _T_SPRITES 111
85#define _T_CONVERSATIONS 112
86#define _T_ANIMATIONS 144
87#define _T_SOUNDS 113
88#define _T_MUSICSCORES 114
89#define _T_CODE 115
90#define _T_ROOM 116
91#define _T_ASSET 118
92#define _T_OPENBRACE 119
93#define _T_CLOSEBRACE 120
94#define _T_OPENBRACKET 121
95#define _T_CLOSE_BRACKET 122
96#define _T_ROOMPATH 123
97#define _T_STARTTIME 124
98#define _T_LASTMODIFIED 125
99#define _T_APPROVEDTIME 126
100#define _T_COMMENTS 127
101#define _T_PRIORITY 128
102#define _T_STATUS 129
103#define _T_SECRETTAG 130
104#define _T_PATH 131
105#define _T_WALK 141
106#define _T_DEPTH 142
107#define _T_SPECIAL 143
108#define _T_VOLUME 145
109#define _T_TASK_APPROVALS 132
110#define _T_DEPTHCODES 133
111#define _T_WALKCODES 134
112#define _T_SPECIALCODES 135
113
114
115#define name_size 20
116#define num_reserved_words 10
117#define string_size 1024
118
119struct tree {
120 int n;
121 int index;
122 int seen;
123 int line_num;
124 char *label;
125 token *data;
126 tree *left, *right;
127 tree *parent;
128};
129
130struct treeclass {
131 tree *t;
132 tree *r;
133};
134
135} // End of namespace M4
136
137#endif
Definition: database.h:28
Definition: m4_types.h:72
Definition: database.h:119
Definition: database.h:130