14#ifndef FC__MULTIPLIERS_H
15#define FC__MULTIPLIERS_H
61#define multipliers_iterate(_mul_) \
63 Multiplier_type_id _i; \
64 for (_i = 0; _i < multiplier_count(); _i++) { \
65 struct multiplier *_mul_ = multiplier_by_number(_i);
67#define multipliers_iterate_end \
71#define multipliers_re_active_iterate(_mul_) \
72 multipliers_iterate(_mul_) { \
73 if (!_mul_->ruledit_disabled) {
75#define multipliers_re_active_iterate_end \
77 } multipliers_iterate_end;
const char * multiplier_rule_name(const struct multiplier *pmul)
void multipliers_free(void)
Multiplier_type_id multiplier_count(void)
const char * multiplier_name_translation(const struct multiplier *pmul)
bool multiplier_can_be_changed(struct multiplier *pmul, struct player *pplayer)
Multiplier_type_id multiplier_number(const struct multiplier *pmul)
struct multiplier * multiplier_by_rule_name(const char *name)
struct multiplier * multiplier_by_number(Multiplier_type_id id)
void multipliers_init(void)
Multiplier_type_id multiplier_index(const struct multiplier *pmul)
struct requirement_vector reqs
struct name_translation name