ScummVM API documentation
interaction_query.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 MM1_VIEWS_ENH_INTERACTIONS_INTERACTION_QUERY_H
23
#define MM1_VIEWS_ENH_INTERACTIONS_INTERACTION_QUERY_H
24
25
#include "mm/mm1/views_enh/interactions/interaction.h"
26
#include "mm/mm1/views_enh/text_entry.h"
27
28
namespace
MM
{
29
namespace
MM1 {
30
namespace
ViewsEnh {
31
namespace
Interactions {
32
33
class
InteractionQuery
:
public
Interaction
{
34
private
:
35
TextEntry
_textEntry;
36
static
void
abortFunc();
37
static
void
enterFunc(
const
Common::String
&answer);
38
int
_maxChars = 0;
39
40
protected
:
41
bool
_showEntry =
false
;
42
Common::String
_answer;
43
47
virtual
void
answerEntered
() = 0;
48
49
public
:
50
InteractionQuery
(
const
Common::String
&name,
51
int
maxChars,
int
portrait = -1);
52
53
bool
msgFocus(
const
FocusMessage
&msg)
override
;
54
void
draw
()
override
;
55
59
void
answerEntry
(
const
Common::String
&answer);
60
};
61
62
}
// namespace Interactions
63
}
// namespace ViewsEnh
64
}
// namespace MM1
65
}
// namespace MM
66
67
#endif
Common::String
Definition:
str.h:59
MM::MM1::ViewsEnh::Interactions::InteractionQuery::draw
void draw() override
MM::MM1::ViewsEnh::TextEntry
Definition:
text_entry.h:34
MM::MM1::ViewsEnh::Interactions::InteractionQuery::answerEntered
virtual void answerEntered()=0
MM::MM1::ViewsEnh::Interactions::Interaction
Definition:
interaction.h:33
MM
Definition:
detection.h:27
MM::MM1::ViewsEnh::Interactions::InteractionQuery::answerEntry
void answerEntry(const Common::String &answer)
MM::MM1::FocusMessage
Definition:
messages.h:41
MM::MM1::ViewsEnh::Interactions::InteractionQuery
Definition:
interaction_query.h:33
engines
mm
mm1
views_enh
interactions
interaction_query.h
Generated on Sat Aug 31 2024 09:13:59 for ScummVM API documentation by
1.8.13