32 struct requirement_vector
reqs;
37 #define DEFAULT_SPECIALIST default_specialist
67 #define specialist_type_iterate(sp) \
69 Specialist_type_id sp; \
71 for (sp = 0; sp < specialist_count(); sp++) {
73 #define specialist_type_iterate_end \
77 #define specialist_type_re_active_iterate(_p) \
78 specialist_type_iterate(_p##_) \
80 struct specialist *_p = specialist_by_number(_p##_); \
81 if (!_p->ruledit_disabled) {
83 #define specialist_type_re_active_iterate_end \
86 specialist_type_iterate_end;
enum output_type_id Output_type_id
struct specialist specialists[SP_MAX]
struct specialist * specialist_by_rule_name(const char *name)
Return the specialist type with the given (untranslated!) rule name.
void specialists_free()
Free data for specialists.
const char * specialists_string(const citizens *specialist_list)
Return a string showing the number of specialists in the array.
const char * specialist_rule_name(const struct specialist *sp)
Return the (untranslated) rule name of the specialist type.
struct specialist * specialist_by_translated_name(const char *name)
Return the specialist type with the given (translated, plural) name.
void specialists_init()
Initialize data for specialists.
Specialist_type_id specialist_index(const struct specialist *sp)
Return the specialist index.
Specialist_type_id specialist_number(const struct specialist *sp)
Return the specialist item_number.
const char * specialist_abbreviation_translation(const struct specialist *sp)
Return the (translated) abbreviation of the specialist type.
const char * specialists_abbreviation_string()
Return a string containing all the specialist abbreviations, for instance "E/S/T".
struct specialist * specialist_by_number(const Specialist_type_id id)
Return the specialist pointer for the given number.
Specialist_type_id specialist_count()
Return the number of specialist_types.
const char * specialist_plural_translation(const struct specialist *sp)
Return the (translated, plural) name of the specialist type.
int get_specialist_output(const struct city *pcity, Specialist_type_id sp, Output_type_id otype)
Return the output for the specialist type with this output type.
struct requirement_vector reqs
char graphic_alt[MAX_LEN_NAME]
char graphic_str[MAX_LEN_NAME]
struct name_translation name
QVector< QString > * helptext
struct name_translation abbreviation