ScummVM API documentation
view_game.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 ULTIMA_ULTIMA1_GFX_VIEW_GAME_H
23#define ULTIMA_ULTIMA1_GFX_VIEW_GAME_H
24
25#include "ultima/shared/gfx/visual_container.h"
26#include "ultima/shared/gfx/bitmap.h"
27
28namespace Ultima {
29
30namespace Shared {
31class Info;
32class ViewportDungeon;
33
34namespace Actions {
35class Action;
36} // End of namespace Actions
37} // End of namespace Shared
38
39namespace Ultima1 {
40namespace U1Gfx {
41
42class Status;
43class ViewportMap;
44using Shared::CShowMsg;
45using Shared::CEndOfTurnMsg;
46using Shared::CFrameMsg;
47using Shared::CCharacterInputMsg;
48
54 DECLARE_MESSAGE_MAP;
55 bool ShowMsg(CShowMsg *msg);
56 bool EndOfTurnMsg(CEndOfTurnMsg *msg);
57 bool FrameMsg(CFrameMsg *msg);
58 bool CharacterInputMsg(CCharacterInputMsg *msg);
59private:
60 Shared::Info *_info;
61 Shared::ViewportDungeon *_viewportDungeon;
62 ViewportMap *_viewportMap;
63 Status *_status;
65 int _frameCtr;
66private:
70 void drawIndicators();
71
75 bool checkMovement(const Common::KeyState &keyState);
76public:
77 CLASSDEF;
78 ViewGame(TreeItem *parent = nullptr);
79 ~ViewGame() override;
80
84 void draw() override;
85};
86
87} // End of namespace U1Gfx
88} // End of namespace Shared
89} // End of namespace Ultima
90
91#endif
Definition: array.h:52
Definition: messages.h:290
Definition: messages.h:402
Definition: messages.h:225
Definition: messages.h:280
Definition: visual_container.h:32
Definition: info.h:41
Definition: viewport_dungeon.h:32
Definition: status.h:36
Definition: view_game.h:53
Definition: viewport_map.h:34
Definition: keyboard.h:294