ScummVM API documentation
other_command.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 ULTIMA3_VIEWS_INTERACTIONS_OTHER_COMMAND_H
23
#define ULTIMA3_VIEWS_INTERACTIONS_OTHER_COMMAND_H
24
25
#include "ultima/ultima3/views/interactions/insert_card.h"
26
27
namespace
Ultima {
28
namespace
Ultima3 {
29
namespace
Views {
30
namespace
Interactions {
31
36
class
OtherCommand
:
public
Interaction
{
37
private
:
38
enum
Stage {
39
CHOOSE_PLAYER,
40
TYPE_COMMAND,
41
DIRECTION,
42
INSERT
43
};
44
45
Stage _stage = CHOOSE_PLAYER;
46
PlayerChooser
_players;
47
LogText
_text;
48
DirectionChooser
_directions;
49
InsertCard
_insert;
50
51
void
dig();
52
void
search();
53
void
pray();
54
bool
bribe(Direction dir);
55
56
public
:
57
bool
keypress
(
const
KeypressMessage
&msg)
override
;
58
bool
timeout
()
override
;
59
void
draw
(
GfxSurface
&s)
override
;
60
};
61
62
}
// namespace Interactions
63
}
// namespace Views
64
}
// namespace Ultima3
65
}
// namespace Ultima
66
67
#endif
Graphics::Views::GfxSurface
Definition:
gfx_surface.h:34
Ultima::Ultima3::Views::Interactions::DirectionChooser
Definition:
interaction.h:110
Ultima::Ultima3::Views::Interactions::InsertCard
Definition:
insert_card.h:36
Ultima::Ultima3::Views::Interactions::Interaction
Definition:
interaction.h:40
Ultima::Ultima3::Views::Interactions::LogText
Definition:
log_input.h:87
Ultima::Ultima3::Views::Interactions::OtherCommand
Definition:
other_command.h:36
Ultima::Ultima3::Views::Interactions::OtherCommand::keypress
bool keypress(const KeypressMessage &msg) override
Ultima::Ultima3::Views::Interactions::OtherCommand::draw
void draw(GfxSurface &s) override
Ultima::Ultima3::Views::Interactions::OtherCommand::timeout
bool timeout() override
Ultima::Ultima3::Views::Interactions::PlayerChooser
Definition:
interaction.h:82
Graphics::Views::KeypressMessage
Definition:
messages.h:54
engines
ultima
ultima3
views
interactions
other_command.h
Generated on Sun Nov 22 2026 09:34:26 for ScummVM API documentation by
1.9.4