Freeciv-3.2
Loading...
Searching...
No Matches
Data Fields
city_sum Struct Reference

Data Fields

const charformat
 
size_t n
 
struct { 
 
   double   value 
 
   char *   posdesc 
 
   char *   negdesc 
 
   bool   suppress_if_zero 
 
   double   aux 
 
   const char *   auxfmt 
 
} * sums 
 

Detailed Description

Helper structure to accumulate a breakdown of the constributions to some numeric city property. Contributions are returned in order, with duplicates merged.

Definition at line 481 of file citydlg_common.c.

Field Documentation

◆ aux

double city_sum::aux

Definition at line 494 of file citydlg_common.c.

Referenced by city_sum_add_real().

◆ auxfmt

const char* city_sum::auxfmt

Definition at line 496 of file citydlg_common.c.

Referenced by city_sum_add_real().

◆ format

const char* city_sum::format

Definition at line 482 of file citydlg_common.c.

Referenced by city_sum_new().

◆ n

size_t city_sum::n

Definition at line 483 of file citydlg_common.c.

Referenced by city_sum_add_real(), city_sum_new(), and city_sum_total().

◆ negdesc

char * city_sum::negdesc

Definition at line 490 of file citydlg_common.c.

Referenced by city_sum_add_real().

◆ posdesc

char* city_sum::posdesc

Definition at line 490 of file citydlg_common.c.

Referenced by city_sum_add_real().

◆ [struct]

struct { ... } * city_sum::sums

◆ suppress_if_zero

bool city_sum::suppress_if_zero

Definition at line 492 of file citydlg_common.c.

Referenced by city_sum_add_real().

◆ value

double city_sum::value