![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include "fcintl.h"#include "log.h"#include "support.h"#include "game.h"#include "government.h"#include "citydlg_common.h"#include "client_main.h"#include "control.h"#include "repodlgs_common.h"
Include dependency graph for repodlgs_common.cpp:Go to the source code of this file.
Functions | |
| void | get_economy_report_data (struct improvement_entry *entries, int *num_entries_used, int *total_cost, int *total_income) |
| Fills out the array of struct improvement_entry given by entries. More... | |
| void | get_economy_report_units_data (struct unit_entry *entries, int *num_entries_used, int *total_cost) |
| Returns an array of units with gold_upkeep. More... | |
| void | sell_all_improvements (const struct impr_type *pimprove, bool redundant_only, char *message, size_t message_sz) |
| Sell all improvements of the given type in all cities. More... | |
| void | disband_all_units (const struct unit_type *punittype, bool in_cities_only, char *message, size_t message_sz) |
| Disband all supported units of the given type. More... | |
| void disband_all_units | ( | const struct unit_type * | punittype, |
| bool | in_cities_only, | ||
| char * | message, | ||
| size_t | message_sz | ||
| ) |
Disband all supported units of the given type.
If in_cities_only is specified then only units inside our cities will be disbanded.
The "message" string will be filled with a GUI-friendly message about what was sold.
Definition at line 210 of file repodlgs_common.cpp.
Referenced by eco_report::disband_units(), and units_view::disband_units().
| void get_economy_report_data | ( | struct improvement_entry * | entries, |
| int * | num_entries_used, | ||
| int * | total_cost, | ||
| int * | total_income | ||
| ) |
Fills out the array of struct improvement_entry given by entries.
The array must be able to hold at least B_LAST entries.
Definition at line 33 of file repodlgs_common.cpp.
Referenced by eco_report::update_report(), and pageGame::updateSidebarTooltips().
| void get_economy_report_units_data | ( | struct unit_entry * | entries, |
| int * | num_entries_used, | ||
| int * | total_cost | ||
| ) |
Returns an array of units with gold_upkeep.
Number of units in the array is added to num_entries_used.
Definition at line 107 of file repodlgs_common.cpp.
Referenced by eco_report::update_report(), and pageGame::updateSidebarTooltips().
| void sell_all_improvements | ( | const struct impr_type * | pimprove, |
| bool | redundant_only, | ||
| char * | message, | ||
| size_t | message_sz | ||
| ) |
Sell all improvements of the given type in all cities.
If "redundant_only" is specified then only those improvements that are replaced will be sold.
The "message" string will be filled with a GUI-friendly message about what was sold.
Definition at line 167 of file repodlgs_common.cpp.
Referenced by eco_report::sell_buildings(), and eco_report::sell_redundant().