ScummVM API documentation
space_map.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_SPACE_MAP_H
23#define ULTIMA1_VIEWS_SPACE_MAP_H
24
25#include "ultima/ultima1/views/map.h"
26#include "ultima/ultima1/data/map.h"
27#include "ultima/ultima1/data/space_map.h"
28#include "graphics/views/gfx_surface.h"
29
30namespace Ultima {
31namespace Ultima1 {
32namespace Views {
33
34using namespace Graphics::Views;
35
41class SpaceMap : public Map {
42private:
47 void drawStationGraphic(Graphics::Views::GfxSurface &s, int x, int y);
48
52 void drawStarGraphic(Graphics::Views::GfxSurface &s, int x, int y);
53
57 void drawPlanetGraphic(Graphics::Views::GfxSurface &s, int x, int y);
58
64 void drawShipOutline(Graphics::Views::GfxSurface &s, const Data::SpaceMapShip &ship);
65
71 void drawShipExhaust(Graphics::Views::GfxSurface &s, const Data::SpaceMapShip &ship);
72 void drawShuttleExhaust(Graphics::Views::GfxSurface &s, int x, int y, int facing);
73 void drawLargeFighterExhaust(Graphics::Views::GfxSurface &s, int x, int y, int facing);
74 void drawSmallFighterExhaust(Graphics::Views::GfxSurface &s, int x, int y, int facing);
75
76public:
77 SpaceMap() : Map("SpaceMap") {}
78 ~SpaceMap() override {}
79
80 bool msgFocus(const FocusMessage &msg) override;
81 bool msgUnfocus(const UnfocusMessage &msg) override;
82 void draw() override;
83};
84
85} // namespace Views
86} // namespace Ultima1
87} // namespace Ultima
88
89#endif
Definition: gfx_surface.h:34
Definition: map.h:37
Definition: space_map.h:41
Definition: messages.h:42
Definition: messages.h:50
Definition: space_map.h:133