ScummVM API documentation
sector_scan.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 ULTIMA1_VIEWS_INTERACTIONS_SECTOR_SCAN_H
23#define ULTIMA1_VIEWS_INTERACTIONS_SECTOR_SCAN_H
24
25#include "ultima/ultima1/views/interactions/interaction.h"
26#include "graphics/views/gfx_surface.h"
27
28namespace Ultima {
29namespace Ultima1 {
30namespace Views {
31namespace Interactions {
32
33using namespace Graphics::Views;
34
41class SectorScan : public Interaction {
42private:
43 int _blinkCtr = 0;
44 bool _blipVisible = true;
45
46 void drawSectorIcon(Graphics::Views::GfxSurface &s, int sx, int sy);
47 void drawEnemyMarker(Graphics::Views::GfxSurface &s, int x, int y);
48 void drawStationMarker(Graphics::Views::GfxSurface &s, int x, int y);
49 void drawStarMarker(Graphics::Views::GfxSurface &s, int x, int y);
50 void drawEmptyMarker(Graphics::Views::GfxSurface &s, int x, int y);
51
52public:
53 SectorScan() : Interaction("SectorScan") {
54 }
55 ~SectorScan() override {
56 }
57
58 bool msgFocus(const FocusMessage &msg) override;
59 bool msgAction(const ActionMessage &msg) override;
60 bool msgKeypress(const KeypressMessage &msg) override;
61 void draw() override;
62 bool tick() override;
63};
64
65} // namespace Interactions
66} // namespace Views
67} // namespace Ultima1
68} // namespace Ultima
69
70#endif
Definition: gfx_surface.h:34
Definition: messages.h:118
Definition: messages.h:42
Definition: messages.h:54