36 for (i = 0; i < count; i++) {
127 for (i = 0; i < count; i++) {
179 nullptr,
nullptr,
nullptr,
nullptr, &pms->reqs,
202 for (i =
game.
control.styles_count - 1; i >= 0; i--) {
207 if (preq->source.kind == VUT_STYLE
208 && preq->source.value.style == pstyle) {
239 for (i =
game.
control.styles_count - 1; i >= 0; i--) {
241 nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
struct player * city_owner(const struct city *pcity)
Return the owner of the city.
struct citystyle * city_styles
struct tile * city_tile(const struct city *pcity)
Return the tile location of the city.
#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)
bool are_reqs_active(const struct player *target_player, const struct player *other_player, const struct city *target_city, const struct impr_type *target_building, const struct tile *target_tile, const struct unit *target_unit, const struct unit_type *target_unittype, const struct output_type *target_output, const struct specialist *target_specialist, const struct action *target_action, const struct requirement_vector *reqs, const enum req_problem_type prob_type, const enum vision_layer vision_layer, const enum national_intelligence nintel)
Checks the requirement(s) to see if they are active on the given target.
#define requirement_vector_iterate_end
#define requirement_vector_iterate(req_vec, preq)
struct packet_ruleset_control control
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.
static struct nation_style * 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.
static struct music_style * music_styles
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.
#define music_styles_iterate(_p)
#define music_styles_iterate_end
#define styles_iterate(_p)
#define styles_iterate_end
int fc_strcasecmp(const char *str0, const char *str1)
Compare strings like strcmp(), but ignoring case.