28 struct requirement_vector
reqs;
40 #define styles_iterate(_p) \
43 for (_i_ = 0; _i_ < game.control.num_styles; _i_++) { \
44 struct nation_style *_p = style_by_number(_i_);
46 #define styles_iterate_end \
50 #define styles_re_active_iterate(_p) \
53 if (!_p->ruledit_disabled) {
55 #define styles_re_active_iterate_end \
68 #define music_styles_iterate(_p) \
71 for (_i_ = 0; _i_ < game.control.num_music_styles; _i_++) { \
72 struct music_style *_p = music_style_by_number(_i_); \
75 #define music_styles_iterate_end \
struct requirement_vector reqs
struct name_translation name
struct music_style * player_music_style(struct player *plr)
Return music style for player.
int city_style(struct city *pcity)
Return citystyle of the city.
struct nation_style * style_by_rule_name(const char *name)
Returns style matching rule name or nullptr if there is no style with such name.
const char * style_rule_name(const struct nation_style *pstyle)
Return the (untranslated) rule name of the style.
void music_styles_free()
Free the memory associated with music styles.
struct music_style * music_style_by_number(int id)
Return music style of given id.
void styles_alloc(int count)
Initialise styles structures.
int music_style_number(const struct music_style *pms)
Return the music style id.
void styles_free()
Free the memory associated with styles.
struct nation_style * style_by_number(int id)
Return style of given id.
int style_of_city(const struct city *pcity)
Evaluate which style should be used to draw a city.
int style_number(const struct nation_style *pstyle)
Return the style id.
void music_styles_alloc(int count)
Initialise music styles structures.
int style_index(const struct nation_style *pstyle)
Return the style index.
int basic_city_style_for_style(struct nation_style *pstyle)
Return basic city style representing nation style.
const char * style_name_translation(const struct nation_style *pstyle)
Return the (translated) name of the style.