245 log_error(
"\"%s\" male ruler title for nation \"%s\" (nb %d) "
246 "is not a format. It should match \"%%s\"",
251 log_error(
"\"%s\" male ruler title is not a format. "
252 "It should match \"%%s\"",
260 log_error(
"\"%s\" female ruler title for nation \"%s\" (nb %d) "
261 "is not a format. It should match \"%%s\"",
266 log_error(
"\"%s\" female ruler title is not a format. "
267 "It should match \"%%s\"",
275 log_error(
"Translation of \"%s\" male ruler title for nation \"%s\" "
276 "(nb %d) is not a format (\"%s\"). It should match \"%%s\"",
282 log_error(
"Translation of \"%s\" male ruler title is not a format "
283 "(\"%s\"). It should match \"%%s\"",
292 log_error(
"Translation of \"%s\" female ruler title for nation \"%s\" "
293 "(nb %d) is not a format (\"%s\"). It should match \"%%s\"",
299 log_error(
"Translation of \"%s\" female ruler title is not a format "
300 "(\"%s\"). It should match \"%%s\"",
347 log_error(
"Ruler title for government \"%s\" (nb %d) and "
348 "nation \"%s\" (nb %d) was set twice.",
352 log_error(
"Default ruler title for government \"%s\" (nb %d) "
407 log_error(
"Missing title for government \"%s\" (nb %d) "
408 "nation \"%s\" (nb %d).",
445#define GOVERNMENT_ITER(p) ((struct government_iter *) (p))
477 return it->
p < it->
end;
#define city_owner(_pcity_)
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 int const struct action *paction struct unit struct city * pcity
int get_player_bonus(const struct player *pplayer, enum effect_type effect_type)
unsigned int genhash_val_t
const char * government_name_translation(const struct government *pgovern)
const char * default_title_for_player(const struct player *pplayer, char *buf, size_t buf_len)
void governments_free(void)
const struct nation_type * ruler_title_nation(const struct ruler_title *pruler_title)
bool untargeted_revolution_allowed(void)
static void government_init(struct government *pgovern)
struct ruler_title * government_ruler_title_new(struct government *pgovern, const struct nation_type *pnation, const char *ruler_male_title, const char *ruler_female_title)
static void government_iter_next(struct iterator *iter)
const char * ruler_title_for_player(const struct player *pplayer, char *buf, size_t buf_len)
struct iterator * government_iter_init(struct government_iter *it)
const char * ruler_title_female_untranslated_name(const struct ruler_title *pruler_title)
Government_type_id government_count(void)
static struct ruler_title * ruler_title_new(const struct nation_type *pnation, const char *domain, const char *ruler_male_title, const char *ruler_female_title)
static bool government_iter_valid(const struct iterator *iter)
struct government * government_by_number(const Government_type_id gov)
struct government * government_of_player(const struct player *pplayer)
const char * government_name_for_player(const struct player *pplayer)
static bool nation_hash_comp(const struct nation_type *pnation1, const struct nation_type *pnation2)
const char * ruler_title_male_untranslated_name(const struct ruler_title *pruler_title)
static void ruler_title_destroy(struct ruler_title *pruler_title)
static void government_free(struct government *pgovern)
struct government * government_of_city(const struct city *pcity)
struct government * governments
static genhash_val_t nation_hash_val(const struct nation_type *pnation)
void governments_alloc(int num)
bool can_change_to_government(struct player *pplayer, const struct government *gov)
Government_type_id government_number(const struct government *pgovern)
const struct ruler_title_hash * government_ruler_titles(const struct government *pgovern)
Government_type_id government_index(const struct government *pgovern)
size_t government_iter_sizeof(void)
static bool ruler_title_check(const struct ruler_title *pruler_title)
#define GOVERNMENT_ITER(p)
const char * government_rule_name(const struct government *pgovern)
static void * government_iter_get(const struct iterator *iter)
struct government * government_by_translated_name(const char *name)
struct government * government_by_rule_name(const char *name)
#define governments_iterate(NAME_pgov)
#define governments_iterate_end
#define fc_assert(condition)
#define fc_assert_ret_val(condition, val)
#define log_error(message,...)
static void name_set(struct name_translation *ptrans, const char *domain, const char *vernacular_name)
static const char * rule_name_get(const struct name_translation *ptrans)
static const char * name_translation_get(const struct name_translation *ptrans)
static const char * untranslated_name(const struct name_translation *ptrans)
const char * nation_rule_name(const struct nation_type *pnation)
Nation_type_id nation_count(void)
Nation_type_id nation_number(const struct nation_type *pnation)
struct nation_type * nation_of_player(const struct player *pplayer)
const char * player_name(const struct player *pplayer)
bool are_reqs_active(const struct req_context *context, const struct req_context *other_context, const struct requirement_vector *reqs, const enum req_problem_type prob_type)
bool formats_match(const char *format1, const char *format2)
void strvec_destroy(struct strvec *psv)
struct packet_ruleset_control control
struct packet_game_info info
struct requirement_vector reqs
struct ruler_title_hash * ruler_titles
bool(* valid)(const struct iterator *it)
void *(* get)(const struct iterator *it)
void(* next)(struct iterator *it)
char * translation_domain
enum revolen_type revolentype
struct government * government
struct name_translation male
struct name_translation female
const struct nation_type * pnation
int fc_snprintf(char *str, size_t n, const char *format,...)
int fc_strcasecmp(const char *str0, const char *str1)