Freeciv-3.2: /fast/freeciv/nightly/S3_2/client/gui-sdl2/citydlg.h File Reference

Freeciv-3.2

Loading...
Searching...
No Matches
Functions
citydlg.h File Reference
`#include <SDL2/SDL.h>`
`#include "effects.h"`
`#include "citydlg_g.h"`

Go to the source code of this file.

## Functions

void | free_city_units_lists (void)
void | enable_city_dlg_widgets (void)
void | popup_hurry_production_dialog (struct city *pcity, SDL_Surface *pdest)
SDL_Surface * | get_scaled_city_map (struct city *pcity)
void | refresh_city_resource_map (SDL_Surface *pdest, int x, int y, const struct city *pcity, bool(*worker_check)(const struct city *, int, int))
struct impr_type * | get_building_for_effect (enum effect_type effect_type)

## Function Documentation

## ◆ enable_city_dlg_widgets()

void enable_city_dlg_widgets | ( | void |  | ) |

Enable city dialog widgets that can be enabled.

Definition at line 1532 of file citydlg.c.

## ◆ free_city_units_lists()

void free_city_units_lists | ( | void |  | ) |

Free city present/supported units panel list.

Definition at line 818 of file citydlg.c.

## ◆ get_building_for_effect()

struct impr_type * get_building_for_effect | ( | enum effect_type effect_type |  | ) |

Return first building that has given effect.

FIXME: Some callers would work better if they got building actually provides the effect at the moment, and not just first potential one.

Definition at line 132 of file citydlg.c.

## ◆ get_scaled_city_map()

SDL_Surface * get_scaled_city_map | ( | struct city * | pcity | ) |

Return scaled city map.

Definition at line 1617 of file citydlg.c.

## ◆ popup_hurry_production_dialog()

void popup_hurry_production_dialog | ( | struct city * | pcity,
|  | SDL_Surface * | pdest
| ) |  |

Popup buy production dlg.

Definition at line 1173 of file citydlg.c.

## ◆ refresh_city_resource_map()

void refresh_city_resource_map | ( | SDL_Surface * | pdest,
|  | int | x,
|  | int | y,
|  | const struct city * | pcity,
|  | bool(*)(const struct city *, int, int) | worker_check
| ) |  |