46 requirement_vector_init(&p->
reqs);
60 requirement_vector_free(&p->
reqs);
176 static char buf[5 *
SP_MAX];
181 char *separator = (buf[0] ==
'\0') ?
"" :
"/";
201 static char buf[5 *
SP_MAX];
206 char *separator = (buf[0] ==
'\0') ?
"" :
"/";
208 cat_snprintf(buf,
sizeof(buf),
"%s%d", separator, specialist_list[sp]);
224 EFT_SPECIALIST_OUTPUT);
struct output_type * get_output_type(Output_type_id output)
int get_city_specialist_output_bonus(const struct city *pcity, const struct specialist *pspecialist, const struct output_type *poutput, enum effect_type effect_type)
enum output_type_id Output_type_id
#define fc_assert_ret_val(condition, val)
static const char * rule_name_get(const struct name_translation *ptrans)
static const char * name_translation_get(const struct name_translation *ptrans)
struct specialist specialists[SP_MAX]
const char * specialists_abbreviation_string(void)
struct specialist * specialist_by_rule_name(const char *name)
struct specialist * specialist_by_number(const Specialist_type_id id)
Specialist_type_id specialist_index(const struct specialist *sp)
Specialist_type_id specialist_number(const struct specialist *sp)
const char * specialist_rule_name(const struct specialist *sp)
const char * specialist_plural_translation(const struct specialist *sp)
void specialists_free(void)
Specialist_type_id specialist_count(void)
const char * specialist_abbreviation_translation(const struct specialist *sp)
void specialists_init(void)
const char * specialists_string(const citizens *specialist_list)
struct specialist * specialist_by_translated_name(const char *name)
int get_specialist_output(const struct city *pcity, Specialist_type_id sp, Output_type_id otype)
#define specialist_type_iterate_end
#define specialist_type_iterate(sp)
void strvec_destroy(struct strvec *psv)
struct packet_ruleset_control control
struct requirement_vector reqs
struct name_translation name
struct name_translation abbreviation
int fc_strcasecmp(const char *str0, const char *str1)
int cat_snprintf(char *str, size_t n, const char *format,...)