ScummVM API documentation
thorinfo.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_THORINFO_H
23#define GOT_DATA_THORINFO_H
24
25#include "common/serializer.h"
26
27namespace Got {
28
29struct ThorInfo {
30 byte _magic = 0;
31 byte _keys = 0;
32 int _jewels = 0;
33 byte _lastArea = 0;
34 byte _lastScreen = 0;
35 byte _lastIcon = 0;
36 byte _lastDir = 0;
37 int _inventory = 0;
38 byte _selectedItem = 0; //currently selected item
39 byte _lastHealth = 0;
40 byte _lastMagic = 0;
41 int _lastJewels = 0;
42 byte _lastKeys = 0;
43 byte _lastItem = 0;
44 int _lastInventory = 0;
45 byte _level = 0; //current level (1,2,3)
46 long _score = 0;
47 long _lastScore = 0;
48 byte _object = 0;
49 const char *_objectName = nullptr;
50 byte _lastObject = 0;
51 const char *_lastObjectName = nullptr;
52 byte _armor = 0;
53 byte _filler[65] = {};
54#ifdef USE_TTS
55 int _previousJewels = -1;
56 int _previousScore = -1;
57 int _previousKeys = -1;
58#endif
59
60 void clear();
61 void sync(Common::Serializer &s);
62};
63
64} // namespace Got
65
66#endif
Definition: serializer.h:80
Definition: thorinfo.h:29