22 public listener<map_updates_handler> {
65 Q_DECLARE_OPERATORS_FOR_FLAGS(map_updates_handler::updates)
Records regions of the map that should be updated.
void update_all()
Requests an update of the whole (visible) map.
void update_tile_label(const tile *tile)
Registers a tile label for update.
std::map< const tile *, updates > m_updates
bool full() const
Returns true if the whole map should be updated.
void update_city_description(const city *city)
Registers a city label for update.
update_type
What kind of update should be performed.
void clear()
Clears all pending updates.
map_updates_handler(QObject *parent=nullptr)
Constructor.
auto list() const
Returns the list of pending updates.
virtual ~map_updates_handler()=default
void update(const city *city, bool full)
Registers a city for update.