100 enum disaster_effect_id
effect)
109 const struct city *pcity)
112 city_tile(pcity),
nullptr,
nullptr,
nullptr,
bool BV_ISSET(const BV &bv, int bit)
struct player * city_owner(const struct city *pcity)
Return the owner of the city.
struct tile * city_tile(const struct city *pcity)
Return the tile location of the city.
struct disaster_type * disaster_by_number(Disaster_type_id id)
Return disaster type of given id.
bool can_disaster_happen(const struct disaster_type *pdis, const struct city *pcity)
Whether disaster can happen in given city.
const char * disaster_rule_name(struct disaster_type *pdis)
Return untranslated name of this disaster type.
static struct disaster_type disaster_types[MAX_DISASTER_TYPES]
Disaster_type_id disaster_number(const struct disaster_type *pdis)
Return the disaster id.
Disaster_type_id disaster_index(const struct disaster_type *pdis)
Return the disaster index.
bool disaster_has_effect(const struct disaster_type *pdis, enum disaster_effect_id effect)
Check if disaster provides effect.
void disaster_types_init()
Initialize disaster_type structures.
void disaster_types_free()
Free the memory associated with disaster types.
const char * disaster_name_translation(struct disaster_type *pdis)
Return translated name of this disaster type.
#define disaster_type_iterate(_p)
#define disaster_type_iterate_end
#define MAX_DISASTER_TYPES
#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.
struct packet_ruleset_control control
struct name_translation name
struct requirement_vector reqs
bv_disaster_effects effects