ScummVM API documentation
say.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 GOT_VIEWS_DIALOGS_SAY_H
23#define GOT_VIEWS_DIALOGS_SAY_H
24
25#include "got/gfx/gfx_pics.h"
26#include "got/views/dialogs/dialog.h"
27
28namespace Got {
29namespace Views {
30namespace Dialogs {
31
32class Say : public Dialog {
33 enum WaitResponse {
34 WAIT_NONE,
35 WAIT_MORE,
36 WAIT_DONE
37 };
38
39private:
40 Gfx::Pics _speakerIcon;
41 int _item = 0;
42 int _type = 0;
43 int _picIndex = 0;
44 const char *_content = nullptr;
45 int _contentLength = 0;
46 int _woopCtr = 0;
47 int _contentCtr = 0;
48 WaitResponse _waitForResponse = WAIT_NONE;
49
53 void showEntirePage();
54
55public:
56 Say();
57 virtual ~Say() {}
58
59 static void show(int item, const Gfx::Pics &speakerIcon, int type);
60
61 void draw() override;
62 bool msgFocus(const FocusMessage &msg) override;
63 bool msgUnfocus(const UnfocusMessage &msg) override;
64 bool msgKeypress(const KeypressMessage &msg) override;
65 bool msgAction(const ActionMessage &msg) override;
66 bool tick() override;
67};
68
69} // namespace Dialogs
70} // namespace Views
71} // namespace Got
72
73#endif
Definition: gfx_pics.h:77
Definition: dialog.h:31
Definition: say.h:32
bool tick() override
void draw() override
Definition: messages.h:90
Definition: messages.h:34
Definition: messages.h:44
Definition: messages.h:40