ScummVM API documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
defines.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_DEFINES_H
23
#define GOT_DATA_DEFINES_H
24
25
#include "common/scummsys.h"
26
#include "common/serializer.h"
27
#include "got/data/actor.h"
28
29
namespace
Got
{
30
31
struct
Header
{
32
long
_offset = 0;
33
long
_length = 0;
34
35
void
load(
Common::SeekableReadStream
*src) {
36
_offset = src->
readUint32LE
();
37
_length = src->
readUint32LE
();
38
}
39
};
40
41
//==========================================================================
42
// Defines
43
44
#define MAX_ACTORS 35
45
#define MAX_ENEMIES 16
46
#define STAMINA 20
47
48
#define _Z 44
49
#define _B 48
50
#define TMP_SIZE 5800
51
52
#define GAME1 (_G(area) == 1)
53
#define GAME2 (_G(area) == 2)
54
#define GAME3 (_G(area) == 3)
55
56
#define APPLE_MAGIC 1
57
#define LIGHTNING_MAGIC 2
58
#define BOOTS_MAGIC 4
59
#define WIND_MAGIC 8
60
#define SHIELD_MAGIC 16
61
#define THUNDER_MAGIC 32
62
63
#define BOSS_LEVEL1 59
64
#define BOSS_LEVEL2 60
65
#define BOSS_LEVEL3 95
66
#define ENDING_SCREEN 106
67
68
#define DEMO_LEN 3600
69
70
}
// namespace Got
71
72
#endif
Got::Header
Definition:
defines.h:31
Common::ReadStream::readUint32LE
uint32 readUint32LE()
Definition:
stream.h:473
Common::SeekableReadStream
Definition:
stream.h:745
Got
Definition:
console.h:28
engines
got
data
defines.h
Generated on Sun Apr 6 2025 09:10:11 for ScummVM API documentation by
1.8.13