ScummVM API documentation
room.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 M4_RIDDLE_ROOMS_ROOM_H
23
#define M4_RIDDLE_ROOMS_ROOM_H
24
25
#include "m4/core/rooms.h"
26
#include "m4/adv_r/conv_io.h"
27
#include "m4/core/imath.h"
28
#include "m4/graphics/gr_series.h"
29
#include "m4/adv_r/adv_hotspot.h"
30
#include "m4/riddle/triggers.h"
31
32
namespace
M4
{
33
namespace
Riddle {
34
namespace
Rooms {
35
36
#define HAS(ITEM) (player_said(ITEM) && inv_player_has(ITEM))
37
#define HERE(ITEM) (player_said(ITEM) && inv_object_is_here(ITEM))
38
39
class
Room
:
public
M4::Room
{
40
private
:
41
static
int
_ripSketching;
42
43
protected
:
44
void
restoreAutosave();
45
51
int
checkFlags
(
bool
flag);
52
53
void
setFlag45();
54
58
int
getNumKeyItemsPlaced
()
const
;
59
60
bool
setItemsPlacedFlags();
61
const
char
*getItemsPlacedDigi()
const
;
62
66
void
disableHotspots
();
67
71
void
enableHotspots
();
72
73
bool
checkStrings()
const
;
74
75
public
:
76
Room
() :
M4
::
Room
() {}
77
~Room
()
override
{}
78
79
void
preload()
override
;
80
};
81
82
}
// namespace Rooms
83
}
// namespace Riddle
84
}
// namespace M4
85
86
#endif
M4::Riddle::Rooms::Room
Definition:
room.h:39
M4::Riddle::Rooms::Room::disableHotspots
void disableHotspots()
M4::Riddle::Rooms::Room::checkFlags
int checkFlags(bool flag)
M4::Riddle::Rooms::Room::enableHotspots
void enableHotspots()
M4::Riddle::Rooms::Room::getNumKeyItemsPlaced
int getNumKeyItemsPlaced() const
M4::Room
Definition:
rooms.h:31
M4
Definition:
database.h:28
engines
m4
riddle
rooms
room.h
Generated on Sun Nov 22 2026 09:23:39 for ScummVM API documentation by
1.9.4