ScummVM API documentation
space_logic.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
23#ifndef ULTIMA2_LOGIC_SPACE_LOGIC_H
24#define ULTIMA2_LOGIC_SPACE_LOGIC_H
25
26#include "ultima/ultima2/logic/logic.h"
27
28namespace Ultima {
29namespace Ultima2 {
30namespace Logic {
31
37class SpaceLogic : public Logic {
38private:
39 // Set until the first hyperwarp after launch completes
40 bool _launching = false;
41
46 bool announceOrbit();
47
51 void hyperwarp();
52
56 void land();
57
62 static void showSpaceView();
63
64public:
65 ~SpaceLogic() override {}
66
70 static void takeOff();
71
75 static void resume();
76
80 void hyperwarpTo(int xeno, int yako, int zabo);
81
86
87 void action(int action) override;
88 void keypress(const Graphics::Views::KeypressMessage &msg) override;
89};
90
91} // namespace Logic
92} // namespace Ultima2
93} // namespace Ultima
94
95#endif
Definition: logic.h:38
Definition: space_logic.h:37
void hyperwarpTo(int xeno, int yako, int zabo)
Definition: messages.h:54