44 requirement_vector_free(&(pmul->reqs));
45 delete pmul->helptext;
46 pmul->helptext =
nullptr;
116 if (
name ==
nullptr) {
140 nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
#define MAX_NUM_MULTIPLIERS
#define fc_assert_ret_val(condition, val)
struct multiplier * multiplier_by_number(Multiplier_type_id id)
Returns multiplier associated to given number.
const char * multiplier_rule_name(const struct multiplier *pmul)
Return the (untranslated) rule name of the multiplier.
void multipliers_free()
Free all multipliers.
const char * multiplier_name_translation(const struct multiplier *pmul)
Return the (translated) name of the multiplier.
bool multiplier_can_be_changed(struct multiplier *pmul, struct player *pplayer)
Can player change multiplier value.
Multiplier_type_id multiplier_number(const struct multiplier *pmul)
Returns multiplier number.
static struct multiplier multipliers[MAX_NUM_MULTIPLIERS]
Multiplier_type_id multiplier_count()
Return number of loaded multipliers in the ruleset.
struct multiplier * multiplier_by_rule_name(const char *name)
Returns multiplier matching rule name, or nullptr if there is no multiplier with such a name.
void multipliers_init()
Initialize all multipliers.
Multiplier_type_id multiplier_index(const struct multiplier *pmul)
Returns multiplier index.
#define multipliers_iterate(_mul_)
#define multipliers_iterate_end
static const char * rule_name_get(const struct name_translation *ptrans)
static const char * name_translation_get(const struct name_translation *ptrans)
static void name_init(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 requirement_vector reqs
QVector< QString > * helptext
struct name_translation name
int fc_strcasecmp(const char *str0, const char *str1)
Compare strings like strcmp(), but ignoring case.