Freeciv21
Develop your civilization from humble roots to a global empire
layer_editor.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPLv3-or-later
2 // SPDX-FileCopyrightText: Freeciv authors
3 // SPDX-FileCopyrightText: Freeciv21 authors
4 // SPDX-FileCopyrightText: Louis Moureaux <m_louis30@yahoo.com>
5 
6 #pragma once
7 
8 #include "layer.h"
9 
10 #include <QPixmap>
11 
12 namespace freeciv {
13 
14 class layer_editor : public layer {
15 public:
16  explicit layer_editor(struct tileset *ts);
17  virtual ~layer_editor() = default;
18 
19  void load_sprites() override;
20 
21  std::vector<drawn_sprite>
22  fill_sprite_array(const tile *ptile, const tile_edge *pedge,
23  const tile_corner *pcorner,
24  const unit *punit) const override;
25 
26 private:
28 };
29 
30 } // namespace freeciv
std::vector< drawn_sprite > fill_sprite_array(const tile *ptile, const tile_edge *pedge, const tile_corner *pcorner, const unit *punit) const override
Returns the list of sprites drawn by this layer somewhere on the map.
layer_editor(struct tileset *ts)
void load_sprites() override
Loads all sprites that do not depend on the ruleset.
QPixmap * m_starting_position
Definition: layer_editor.h:27
virtual ~layer_editor()=default
A layer when drawing the map.
Definition: layer.h:153
Definition: path.cpp:10
Definition: tile.h:42
Definition: unit.h:134