ScummVM API documentation
resources.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 ACCESS_RESOURCES_H
23
#define ACCESS_RESOURCES_H
24
25
#include "common/scummsys.h"
26
#include "common/array.h"
27
#include "common/language.h"
28
#include "common/path.h"
29
#include "common/rect.h"
30
#include "common/str-array.h"
31
#include "common/stream.h"
32
33
namespace
Access
{
34
35
extern
const
byte INITIAL_PALETTE[18 * 3];
36
37
extern
const
char
*
const
GENERAL_MESSAGES[];
38
extern
const
char
*
const
ESP_GENERAL_MESSAGES[];
39
40
extern
const
int
INVCOORDS[][4];
41
42
class
AccessEngine;
43
44
class
Resources
{
45
struct
DATEntry {
46
byte _gameId;
47
byte _discType;
48
byte _demoType;
49
Common::Language
_language;
50
uint _fileOffset;
51
};
52
struct
DeathEntry {
53
byte _screenId;
54
Common::String
_msg;
55
};
56
struct
InventoryEntry {
57
Common::String
_desc;
58
int
_combo[4];
59
};
60
protected
:
61
struct
RoomEntry
{
62
Common::String
_desc;
63
Common::Point
_travelPos;
64
Common::Array<byte>
_data;
65
};
66
67
AccessEngine
*_vm;
68
Common::Array<DATEntry>
_datIndex;
69
73
uint
findEntry
(byte gameId, byte discType, byte demoType,
Common::Language
language);
74
78
virtual
void
load
(
Common::SeekableReadStream
&s);
79
public
:
80
Common::Array<Common::Path>
FILENAMES;
81
Common::Array< Common::Array<byte>
> CHARTBL;
82
Common::Array<RoomEntry>
ROOMTBL;
83
Common::Array<DeathEntry>
DEATHS;
84
Common::Array<InventoryEntry>
INVENTORY;
85
Common::String
CANT_GET_THERE;
86
public
:
87
Resources
(
AccessEngine
*vm) : _vm(vm) {}
88
virtual
~
Resources
() {}
89
static
Resources
*init(
AccessEngine
*vm);
90
94
bool
load
(
Common::U32String
&errorMessage);
95
99
virtual
const
byte *
getCursor
(
int
num)
const
= 0;
100
104
virtual
const
char
*
getEgoName
()
const
= 0;
105
109
virtual
int
getRMouse
(
int
i,
int
j)
const
= 0;
110
115
virtual
int
inButtonXRange
(
int
x)
const
= 0;
116
};
117
118
}
// End of namespace Access
119
120
#endif
/* ACCESS_RESOURCES_H */
Access::Resources
Definition:
resources.h:44
Common::String
Definition:
str.h:59
Access::AccessEngine
Definition:
access.h:139
Access::Resources::inButtonXRange
virtual int inButtonXRange(int x) const =0
Common::Array< byte >
Common::SeekableReadStream
Definition:
stream.h:745
Access::Resources::getCursor
virtual const byte * getCursor(int num) const =0
Access::Resources::findEntry
uint findEntry(byte gameId, byte discType, byte demoType, Common::Language language)
Common::U32String
Definition:
ustr.h:57
Access::Resources::getEgoName
virtual const char * getEgoName() const =0
Common::Point
Definition:
rect.h:144
Access::Resources::RoomEntry
Definition:
resources.h:61
Access::Resources::load
virtual void load(Common::SeekableReadStream &s)
Access::Resources::getRMouse
virtual int getRMouse(int i, int j) const =0
Access
Definition:
access.h:62
Common::Language
Language
Definition:
language.h:45
engines
access
resources.h
Generated on Tue Oct 21 2025 09:09:20 for ScummVM API documentation by
1.8.13