![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| struct | adv_choice |
Macros | |
| #define | adv_choice_set_use(_choice, _use) |
| #define | adv_choice_log_info(_choice, _loc1, _loc2) |
| #define | ADV_CHOICE_ASSERT(c) |
Enumerations | |
| enum | choice_type { CT_NONE = 0 , CT_BUILDING = 1 , CT_CIVILIAN , CT_ATTACKER , CT_DEFENDER , CT_LAST } |
Functions | |
| void | adv_init_choice (struct adv_choice *choice) |
| Sets the values of the choice to initial values. More... | |
| void | adv_deinit_choice (struct adv_choice *choice) |
| Clear choice without freeing it itself. More... | |
| struct adv_choice * | adv_new_choice () |
| Dynamically allocate a new choice. More... | |
| void | adv_free_choice (struct adv_choice *choice) |
| Free dynamically allocated choice. More... | |
| struct adv_choice * | adv_better_choice (struct adv_choice *first, struct adv_choice *second) |
| Return better one of the choices given. More... | |
| struct adv_choice * | adv_better_choice_free (struct adv_choice *first, struct adv_choice *second) |
| Return better one of the choices given, and free the other. More... | |
| bool | is_unit_choice_type (enum choice_type type) |
| Does choice type refer to unit. More... | |
| static void | adv_choice_copy (struct adv_choice *dest, struct adv_choice *src) |
| static const char * | adv_choice_get_use (const struct adv_choice *choice) |
| #define ADV_CHOICE_ASSERT | ( | c | ) |
Definition at line 77 of file advchoice.h.
| #define adv_choice_log_info | ( | _choice, | |
| _loc1, | |||
| _loc2 | |||
| ) |
Definition at line 70 of file advchoice.h.
| #define adv_choice_set_use | ( | _choice, | |
| _use | |||
| ) |
Definition at line 69 of file advchoice.h.
| enum choice_type |
| Enumerator | |
|---|---|
| CT_NONE | |
| CT_BUILDING | |
| CT_CIVILIAN | |
| CT_ATTACKER | |
| CT_DEFENDER | |
| CT_LAST | |
Definition at line 22 of file advchoice.h.
| struct adv_choice* adv_better_choice | ( | struct adv_choice * | first, |
| struct adv_choice * | second | ||
| ) |
Return better one of the choices given.
In case of a draw, first one is preferred.
Definition at line 81 of file advchoice.cpp.
Referenced by dai_city_choose_build().
| struct adv_choice* adv_better_choice_free | ( | struct adv_choice * | first, |
| struct adv_choice * | second | ||
| ) |
Return better one of the choices given, and free the other.
Definition at line 94 of file advchoice.cpp.
Referenced by domestic_advisor_choose_build().
|
inlinestatic |
Definition at line 62 of file advchoice.h.
Referenced by dai_city_choose_build(), dai_manage_cities(), military_advisor_choose_build(), and texai_refresh().
|
inlinestatic |
Definition at line 71 of file advchoice.h.
| void adv_deinit_choice | ( | struct adv_choice * | choice | ) |
Clear choice without freeing it itself.
Definition at line 42 of file advchoice.cpp.
Referenced by dai_city_free(), military_advisor_choose_build(), and texai_city_free().
| void adv_free_choice | ( | struct adv_choice * | choice | ) |
Free dynamically allocated choice.
Definition at line 67 of file advchoice.cpp.
Referenced by adv_better_choice_free(), dai_manage_cities(), and kill_something_with().
| void adv_init_choice | ( | struct adv_choice * | choice | ) |
Sets the values of the choice to initial values.
Definition at line 27 of file advchoice.cpp.
Referenced by adv_new_choice(), dai_city_alloc(), dai_do_build_city(), dai_spend_gold(), military_advisor_choose_build(), and texai_city_alloc().
| struct adv_choice* adv_new_choice | ( | ) |
Dynamically allocate a new choice.
Definition at line 55 of file advchoice.cpp.
Referenced by domestic_advisor_choose_build(), kill_something_with(), and military_advisor_choose_build().
| bool is_unit_choice_type | ( | enum choice_type | type | ) |
Does choice type refer to unit.
Definition at line 111 of file advchoice.cpp.
Referenced by adjust_ai_unit_choice(), and dai_spend_gold().