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
32namespace M4 {
33namespace Riddle {
34namespace 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
39class Room : public M4::Room {
40private:
41 static int _ripSketching;
42
43protected:
44 void restoreAutosave();
45
51 int checkFlags(bool flag);
52
53 void setFlag45();
54
59
60 bool setItemsPlacedFlags();
61 const char *getItemsPlacedDigi() const;
62
67
72
73 bool checkStrings() const;
74
75public:
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
Definition: room.h:39
int checkFlags(bool flag)
int getNumKeyItemsPlaced() const
Definition: rooms.h:31
Definition: database.h:28