ScummVM API documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
map_main.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 SCUMM_HE_MOONBASE_MAP_MAIN_H
23
#define SCUMM_HE_MOONBASE_MAP_MAIN_H
24
25
#ifdef ENABLE_HE
26
27
#include "common/random.h"
28
#include "common/stream.h"
29
30
#include "engines/scumm/he/moonbase/map_mif.h"
31
32
#define SPIFF_GEN 1
33
#define KATTON_GEN 2
34
35
namespace
Scumm
{
36
37
class
Map {
38
public
:
39
Map(ScummEngine_v100he *vm);
40
~Map();
41
42
bool
generateNewMap();
43
bool
generateMapWithInfo(
Common::String
encodedMap, uint8 generator,
int
seed,
int
mapSize,
int
tileset,
int
energy,
int
terrain,
int
water);
44
Common::SeekableReadStream
*substituteFile(
const
byte *fileName);
45
46
void
deleteMap();
47
48
uint8 getGenerator()
const
{
49
return
_generator;
50
}
51
52
int
getSize()
const
{
53
return
_size;
54
}
55
56
int
getSeed()
const
{
57
return
_seed;
58
}
59
60
int
getTileset()
const
{
61
return
_tileset;
62
}
63
64
int
getEnergy()
const
{
65
return
_energy;
66
}
67
68
int
getTerrain()
const
{
69
return
_terrain;
70
}
71
72
int
getWater()
const
{
73
return
_water;
74
}
75
76
bool
mapGenerated()
const
{
77
return
_mapGenerated;
78
}
79
80
Common::String
getEncodedMap()
const
{
81
return
_encodedMap;
82
}
83
84
private
:
85
ScummEngine_v100he *_vm;
86
87
// We require our own random number generator
88
// so we can send and set seeds from online players to ensure
89
// they're playing on the same generated map.
90
Common::RandomSource
_rnd;
91
92
uint8 _generator;
93
int
_size;
94
int
_seed;
95
int
_tileset;
96
int
_energy;
97
int
_terrain;
98
int
_water;
99
100
bool
_mapGenerated;
101
MapFile *_generatedMap;
102
Common::String
_encodedMap;
103
104
Common::SeekableReadStream
*makeWiz();
105
};
106
107
}
// End of namespace Scumm
108
109
110
#endif // ENABLE_HE
111
112
#endif // SCUMM_HE_MOONBASE_MAP_MAIN_H
Common::String
Definition:
str.h:59
Common::RandomSource
Definition:
random.h:44
Common::SeekableReadStream
Definition:
stream.h:745
Scumm
Definition:
actor.h:30
engines
scumm
he
moonbase
map_main.h
Generated on Thu Apr 10 2025 09:19:38 for ScummVM API documentation by
1.8.13