ScummVM API documentation
level.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 GOT_DATA_LEVEL_H
23#define GOT_DATA_LEVEL_H
24
25#include "common/serializer.h"
26
27namespace Got {
28
29#define OBJECTS_COUNT 30
30
31struct Level {
32private:
33 void sync(Common::Serializer &s);
34
35public:
36 byte _iconGrid[12][20] = {}; // Grid of icons
37 byte _backgroundColor = 0; // Background color
38 byte _music = 0; // Music
39 byte _actorType[16] = {}; // Type of enemies (12 max)
40 byte _actorLoc[16] = {}; // Location of enemies
41 byte _actorValue[16] = {}; // Pass value
42 byte _palColors[3] = {}; // Change 251,253,254 to these three
43 byte _actorInvis[16] = {};
44 byte _extra[13] = {};
45
46 byte _staticObject[OBJECTS_COUNT] = {}; // Static objects (treasure, keys,etc)
47 int _staticX[OBJECTS_COUNT] = {}; // X coordinates of static objects
48 int _staticY[OBJECTS_COUNT] = {}; // Y coordinates of static objects
49 byte _newLevel[10] = {}; // Level jump for icon 200-204
50 byte _newLevelLocation[10] = {}; // Grid location to jump in to
51 byte _area = 0; // Game area (1=forest,etc)
52 byte _actorDir[16] = {}; // Initial _dir
53 byte _filler[3] = {};
57 void load(int level);
58
62 void save(int level);
63};
64
65} // namespace Got
66
67#endif
Definition: serializer.h:80
Definition: level.h:31
void load(int level)
void save(int level)