23 const QPoint &activity_offset)
25 m_activity_offset(activity_offset)
31 const unit *punit)
const
38 if (!
city || !ptile) {
43 std::vector<drawn_sprite> sprs;
47 if (ptask->ptile == ptile) {
49 sprs.emplace_back(
tileset(), sprite,
true,
struct city * is_any_city_dialog_open()
An abstract class for layers that need sprites for unit activities.
QPixmap * activity_sprite(unit_activity id, const extra_type *extra) const
Returns the sprite used to represent a given activity 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.
layer_workertask(struct tileset *ts, const QPoint &activity_offset)
Constructor.
struct tileset * tileset() const
struct worker_task_list * task_reqs
QPoint tileset_full_tile_offset(const struct tileset *t)
Return the x and y offsets of full tiles in the tileset.
#define worker_task_list_iterate(tasklist, ptask)
#define worker_task_list_iterate_end