ScummVM API documentation
dungeon.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 ULTIMA0_VIEWS_DUNGEON_H
23 #define ULTIMA0_VIEWS_DUNGEON_H
24 
25 #include "ultima/ultima0/views/view.h"
26 #include "ultima/ultima0/views/status.h"
27 
28 namespace Ultima {
29 namespace Ultima0 {
30 namespace Views {
31 
32 class Dungeon : public View {
33 private:
34  DungeonStatus _status = DungeonStatus(this);
35 
36  void drawMinimap(Graphics::ManagedSurface &mapArea);
37  void moveForward();
38  void interact();
39  void endOfTurn();
40  void showMessage(const Common::String &msg) {
41  _status.send(GameMessage("MSG", msg));
42  }
43  void showLines(const Common::String &msg) {
44  _status.send(GameMessage("LINES", msg));
45  }
46 
47 public:
48  Dungeon();
49  ~Dungeon() override {}
50 
51  bool msgFocus(const FocusMessage &msg) override;
52  bool msgUnfocus(const UnfocusMessage &msg) override;
53  void draw() override;
54  bool msgAction(const ActionMessage &msg) override;
55  bool msgKeypress(const KeypressMessage &msg) override;
56  bool msgGame(const GameMessage &msg) override;
57  void timeout() override;
58 };
59 
60 } // namespace Views
61 } // namespace Ultima0
62 } // namespace Ultima
63 
64 #endif
Definition: managed_surface.h:51
Definition: str.h:59
Definition: dungeon.h:32
Definition: messages.h:37
Definition: messages.h:46
Definition: detection.h:27
Definition: messages.h:122
Definition: messages.h:94
Definition: view.h:42
Definition: messages.h:50