Freeciv21
Develop your civilization from humble roots to a global empire
validity.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* requirers_cb) (const char *msg, void *data)
 

Functions

bool is_tech_needed (struct advance *padv, requirers_cb cb, void *data)
 Check if anything in ruleset needs tech. More...
 
bool is_building_needed (struct impr_type *pimpr, requirers_cb cb, void *data)
 Check if anything in ruleset needs building. More...
 
bool is_utype_needed (struct unit_type *ptype, requirers_cb cb, void *data)
 Check if anything in ruleset needs unit type. More...
 
bool is_good_needed (struct goods_type *pgood, requirers_cb cb, void *data)
 Check if anything in ruleset needs goods type. More...
 
bool is_government_needed (struct government *pgov, requirers_cb cb, void *data)
 Check if anything in ruleset needs government. More...
 
bool is_extra_needed (struct extra_type *pextra, requirers_cb cb, void *data)
 Check if anything in ruleset needs extra type. More...
 
bool is_multiplier_needed (struct multiplier *pmul, requirers_cb cb, void *data)
 Check if anything in ruleset needs multiplier. More...
 
bool is_terrain_needed (struct terrain *pterr, requirers_cb cb, void *data)
 Check if anything in ruleset needs terrain type. More...
 

Typedef Documentation

◆ requirers_cb

typedef void(* requirers_cb) (const char *msg, void *data)

Definition at line 16 of file validity.h.

Function Documentation

◆ is_building_needed()

bool is_building_needed ( struct impr_type pimpr,
requirers_cb  cb,
void *  data 
)

Check if anything in ruleset needs building.

Definition at line 215 of file validity.cpp.

Referenced by tab_building::delete_now().

◆ is_extra_needed()

bool is_extra_needed ( struct extra_type pextra,
requirers_cb  cb,
void *  data 
)

Check if anything in ruleset needs extra type.

Definition at line 255 of file validity.cpp.

Referenced by tab_extras::delete_now().

◆ is_good_needed()

bool is_good_needed ( struct goods_type pgood,
requirers_cb  cb,
void *  data 
)

Check if anything in ruleset needs goods type.

Definition at line 242 of file validity.cpp.

Referenced by tab_good::delete_now().

◆ is_government_needed()

bool is_government_needed ( struct government pgov,
requirers_cb  cb,
void *  data 
)

Check if anything in ruleset needs government.

Definition at line 299 of file validity.cpp.

Referenced by tab_gov::delete_now().

◆ is_multiplier_needed()

bool is_multiplier_needed ( struct multiplier pmul,
requirers_cb  cb,
void *  data 
)

Check if anything in ruleset needs multiplier.

Definition at line 337 of file validity.cpp.

Referenced by tab_multiplier::delete_now().

◆ is_tech_needed()

bool is_tech_needed ( struct advance padv,
requirers_cb  cb,
void *  data 
)

Check if anything in ruleset needs tech.

Definition at line 170 of file validity.cpp.

Referenced by tab_tech::delete_now().

◆ is_terrain_needed()

bool is_terrain_needed ( struct terrain pterr,
requirers_cb  cb,
void *  data 
)

Check if anything in ruleset needs terrain type.

Definition at line 286 of file validity.cpp.

Referenced by tab_terrains::delete_now().

◆ is_utype_needed()

bool is_utype_needed ( struct unit_type ptype,
requirers_cb  cb,
void *  data 
)

Check if anything in ruleset needs unit type.

Definition at line 229 of file validity.cpp.

Referenced by tab_unit::delete_now().