![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
A tile type. More...
Public Attributes | |
| int | production [O_LAST] |
| double | estimated_fitness |
| bool | is_specialist |
| Specialist_type_id | spec |
| struct tile_vector | tiles |
| struct tile_type_vector | better_types |
| struct tile_type_vector | worse_types |
| int | lattice_index |
| int | lattice_depth |
A tile type.
Holds the production (a hill produces 1/0/0); Holds a list of which tiles match this (all the hills and tundra); Holds a list of other types that are strictly better (grassland 2/0/0, plains 1/1/0, but not gold mine 0/1/6). Holds a list of other types that are strictly worse (the grassland and plains hold a pointer to the hill).
Specialists are special types; is_specialist is set, and the tile vector is empty. We can never run out of specialists.
| struct tile_type_vector cm_tile_type::better_types |
Definition at line 166 of file cm.cpp.
Referenced by tile_type_destroy(), tile_type_init(), tile_type_lattice_add(), and tile_type_num_prereqs().
| double cm_tile_type::estimated_fitness |
Definition at line 164 of file cm.cpp.
Referenced by compare_tile_type_by_fitness().
| bool cm_tile_type::is_specialist |
Definition at line 165 of file cm.cpp.
Referenced by apply_solution(), init_specialist_lattice_nodes(), next_choice(), specialists_in_solution(), tile_get(), tile_type_better(), tile_type_equal(), tile_type_lattice_add(), and tile_type_num_tiles().
| int cm_tile_type::lattice_depth |
Definition at line 171 of file cm.cpp.
Referenced by clean_lattice(), and compare_tile_type_by_lattice_order().
| int cm_tile_type::lattice_index |
Definition at line 170 of file cm.cpp.
Referenced by clean_lattice(), and tile_type_lattice_add().
| int cm_tile_type::production[O_LAST] |
Definition at line 163 of file cm.cpp.
Referenced by add_workers(), compare_tile_type_by_lattice_order(), compare_tile_type_by_stat(), compute_max_stats_heuristic(), compute_tile_production(), init_specialist_lattice_nodes(), tile_type_better(), and tile_type_equal().
| Specialist_type_id cm_tile_type::spec |
Definition at line 166 of file cm.cpp.
Referenced by apply_solution(), and init_specialist_lattice_nodes().
| struct tile_vector cm_tile_type::tiles |
Definition at line 166 of file cm.cpp.
Referenced by next_choice(), tile_get(), tile_type_destroy(), tile_type_init(), tile_type_lattice_add(), and tile_type_num_tiles().
| struct tile_type_vector cm_tile_type::worse_types |
Definition at line 166 of file cm.cpp.
Referenced by add_workers(), clean_lattice(), tile_type_destroy(), tile_type_init(), and tile_type_lattice_add().