ScummVM API documentation
view_title.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_MAP_H
23#define ULTIMA_ULTIMA1_GFX_VIEW_MAP_H
24
25#include "ultima/shared/gfx/visual_container.h"
26#include "ultima/shared/gfx/bitmap.h"
27#include "graphics/managed_surface.h"
28
29namespace Ultima {
30namespace Ultima1 {
31namespace U1Gfx {
32
33using Shared::CShowMsg;
34using Shared::CKeypressMsg;
35using Shared::CFrameMsg;
36
42 DECLARE_MESSAGE_MAP;
43 bool ShowMsg(CShowMsg *msg);
44 bool KeypressMsg(CKeypressMsg *msg);
45 bool FrameMsg(CFrameMsg *msg);
46private:
47 Graphics::ManagedSurface _logo, _castle;
49 enum TitleMode { TITLEMODE_COPYRIGHT, TITLEMODE_PRESENTS, TITLEMODE_CASTLE, TITLEMODE_TRADEMARKS, TITLEMODE_MAIN_MENU };
50 TitleMode _mode;
51 uint32 _expiryTime;
52 int _counter;
53private:
57 void drawCopyrightView();
58
62 void drawPresentsView();
63
67 void drawCastleView();
68
72 void drawCastleFlag(Shared::Gfx::VisualSurface &s, int xp);
73
77 void drawTrademarksView();
78
82 void drawMainMenu();
83
87 void setCastlePalette();
88
92 void setTitlePalette();
93
97 void setMode(TitleMode mode);
98public:
99 CLASSDEF;
100
104 ViewTitle(Shared::TreeItem *parent = nullptr);
105
109 void draw() override;
110};
111
112} // End of namespace U1Gfx
113} // End of namespace Shared
114} // End of namespace Ultima
115
116#endif
Definition: managed_surface.h:51
Definition: messages.h:225
Definition: messages.h:265
Definition: messages.h:280
Definition: visual_item.h:39
Definition: visual_surface.h:39
Definition: tree_item.h:50
Definition: view_title.h:41
ViewTitle(Shared::TreeItem *parent=nullptr)