|
Freeciv-3.4
|
Go to the source code of this file.
Functions | |
| void | tiledefs_init (void) |
| void | tiledefs_free (void) |
| int | tiledef_count (void) |
| int | tiledef_number (const struct tiledef *td) |
| struct tiledef * | tiledef_by_number (int id) |
| const char * | tiledef_name_translation (const struct tiledef *td) |
| const char * | tiledef_rule_name (const struct tiledef *td) |
| struct tiledef * | tiledef_by_rule_name (const char *name) |
| struct tiledef * | tiledef_by_translated_name (const char *name) |
| bool | tile_matches_tiledef (const struct tiledef *td, const struct tile *ptile) |
| bool | is_tiledef_card_near (const struct civ_map *nmap, const struct tile *ptile, const struct tiledef *ptd) |
| bool | is_tiledef_near_tile (const struct civ_map *nmap, const struct tile *ptile, const struct tiledef *ptd) |
Variables | |
| static struct tiledef | tiledefs [MAX_TILEDEFS] |
| bool is_tiledef_card_near | ( | const struct civ_map * | nmap, |
| const struct tile * | ptile, | ||
| const struct tiledef * | ptd | ||
| ) |
Is there tiledef of the given type cardinally near tile? (Does not check ptile itself.)
Definition at line 165 of file tiledef.c.
Referenced by is_tiledef_req_active().
| bool is_tiledef_near_tile | ( | const struct civ_map * | nmap, |
| const struct tile * | ptile, | ||
| const struct tiledef * | ptd | ||
| ) |
Is there tiledef of the given type near tile? (Does not check ptile itself.)
Definition at line 181 of file tiledef.c.
Referenced by is_tiledef_req_active().
Check if tile matches tiledef
Definition at line 150 of file tiledef.c.
Referenced by is_tiledef_card_near(), is_tiledef_near_tile(), and is_tiledef_req_active().
Return tiledef type of given id.
Definition at line 84 of file tiledef.c.
Referenced by handle_ruleset_tiledef(), load_terrain_names(), universal_by_number(), and universal_value_initial().
Returns tiledef matching rule name or nullptr if there is no tiledef with such name.
Definition at line 113 of file tiledef.c.
Referenced by universal_value_from_str().
Return the (translated) name of the tiledef. You don't have to free the return pointer.
Definition at line 95 of file tiledef.c.
Referenced by req_text_insert(), tiledef_by_translated_name(), universal_name_translation(), and worklist_item_postpone_req_vec().
Return the tiledef id.
Definition at line 62 of file tiledef.c.
Referenced by send_ruleset_tiledefs(), and universal_number().
Return the (untranslated) rule name of the tiledef. You don't have to free the return pointer.
Definition at line 104 of file tiledef.c.
Referenced by tiledef_by_rule_name(), universal_kind_values(), and universal_rule_name().
Free the memory associated with tiledef
Definition at line 42 of file tiledef.c.
Referenced by game_ruleset_free().
Initialize tiledef structures.
Definition at line 29 of file tiledef.c.
Referenced by game_ruleset_init().
|
static |
Definition at line 24 of file tiledef.c.
Referenced by tiledef_by_number(), tiledefs_free(), and tiledefs_init().