ScummVM API documentation
dungeon_special.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 ULTIMA3_VIEWS_INTERACTIONS_DUNGEON_SPECIAL_H
23#define ULTIMA3_VIEWS_INTERACTIONS_DUNGEON_SPECIAL_H
24
25#include "ultima/ultima3/views/interactions/interaction.h"
26
27namespace Ultima {
28namespace Ultima3 {
29namespace Views {
30namespace Interactions {
31
37private:
38 byte _kind;
39 bool _finished = false;
40 bool _waiting = false;
41 PlayerChooser _chooser;
42
46 void showScene(const char *filename);
47 void hideScene();
48
49 void askWhoDrinks();
50 void drink(int slot);
51 void touchRod(int slot);
52 void trap();
53 void gremlins();
54
55public:
56 DungeonSpecial(byte kind);
57 ~DungeonSpecial() override;
58
59 bool isFinished() const override {
60 return _finished;
61 }
62
63 bool keypress(const KeypressMessage &msg) override;
64};
65
66} // namespace Interactions
67} // namespace Views
68} // namespace Ultima3
69} // namespace Ultima
70
71#endif
bool keypress(const KeypressMessage &msg) override
bool isFinished() const override
Definition: dungeon_special.h:59
Definition: messages.h:54