Freeciv21
Develop your civilization from humble roots to a global empire
layer_workertask.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 "fc_types.h"
10 #include "unit.h"
11 
12 #include <QPoint>
13 
14 namespace freeciv {
15 
17 public:
18  explicit layer_workertask(struct tileset *ts,
19  const QPoint &activity_offset);
20  virtual ~layer_workertask() = default;
21 
22  std::vector<drawn_sprite>
23  fill_sprite_array(const tile *ptile, const tile_edge *pedge,
24  const tile_corner *pcorner,
25  const unit *punit) const override;
26 
27 private:
29 };
30 
31 } // namespace freeciv
An abstract class for layers that need sprites for unit activities.
Draws tasks assigned by cities to autoworkers on the map.
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.
virtual ~layer_workertask()=default
layer_workertask(struct tileset *ts, const QPoint &activity_offset)
Constructor.
Definition: path.cpp:10
Definition: tile.h:42
Definition: unit.h:134