Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/gui-stub/citydlg.c Source File

Freeciv-3.1

Loading...
Searching...
No Matches
citydlg.c
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13
14#ifdef HAVE_CONFIG_H
15#include <fc_config.h>
16#endif
17
18/* gui main header */
19#include "gui_stub.h"
20
21#include "citydlg.h"
22
23/**********************************************************************/
27 void gui_real_city_dialog_popup(struct city *pcity)
28{
29 /* PORTME */
30}
31
32/**********************************************************************/
35 void gui_popdown_city_dialog(struct city *pcity)
36{
37 /* PORTME */
38}
39
40/**********************************************************************/
43 void gui_popdown_all_city_dialogs(void)
44{
45 /* PORTME */
46}
47
48/**********************************************************************/
51 void gui_real_city_dialog_refresh(struct city *pcity)
52{
53 /* PORTME */
54}
55
56/**********************************************************************/
61 void gui_refresh_unit_city_dialogs(struct unit *punit)
62{
63 /* PORTME */
64#if 0
65 /* Demo code */
66 struct city *pcity_sup, *pcity_pre;
67 struct city_dialog *pdialog;
68
69 pcity_sup = game_city_by_number(punit->homecity);
70 pcity_pre = tile_city(unit_tile(punit));
71
72 if (pcity_sup && (pdialog = get_city_dialog(pcity_sup))) {
73 city_dialog_update_supported_units(pdialog);
74 }
75
76 if (pcity_pre && (pdialog = get_city_dialog(pcity_pre))) {
77 city_dialog_update_present_units(pdialog);
78 }
79#endif
80}
81
82/**********************************************************************/
85 bool gui_city_dialog_is_open(struct city *pcity)
86{
87 /* PORTME */
88 return FALSE;
89}
punit
struct unit struct city struct unit struct tile struct extra_type const struct act_prob *act_probs int actor_unit_id struct unit struct unit * punit
Definition dialogs_g.h:73
game_city_by_number
struct city * game_city_by_number(int id)
Definition game.c:102
get_city_dialog
static struct city_dialog * get_city_dialog(struct city *pcity)
Definition citydlg.c:379
city_dialog_update_present_units
static void city_dialog_update_present_units(struct city_dialog *pdialog)
Definition citydlg.c:2211
city_dialog_update_supported_units
static void city_dialog_update_supported_units(struct city_dialog *pdialog)
Definition citydlg.c:2105
gui_refresh_unit_city_dialogs
void gui_refresh_unit_city_dialogs(struct unit *punit)
Definition citydlg.c:61
gui_popdown_all_city_dialogs
void gui_popdown_all_city_dialogs(void)
Definition citydlg.c:43
gui_popdown_city_dialog
void gui_popdown_city_dialog(struct city *pcity)
Definition citydlg.c:35
gui_city_dialog_is_open
bool gui_city_dialog_is_open(struct city *pcity)
Definition citydlg.c:85
gui_real_city_dialog_popup
void gui_real_city_dialog_popup(struct city *pcity)
Definition citydlg.c:27
gui_real_city_dialog_refresh
void gui_real_city_dialog_refresh(struct city *pcity)
Definition citydlg.c:51
citydlg.h
gui_stub.h
city_dialog
Definition citydlg.c:136
city_dialog::pcity
struct city * pcity
Definition citydlg.c:137
city
Definition city.h:309
unit
Definition unit.h:138
unit::homecity
int homecity
Definition unit.h:146
FALSE
#define FALSE
Definition support.h:47
tile_city
struct city * tile_city(const struct tile *ptile)
Definition tile.c:83
unit_tile
#define unit_tile(_pu)
Definition unit.h:388