Freeciv-3.3
Loading...
Searching...
No Matches
Data Fields
civ_map Struct Reference

#include <map_types.h>

Data Fields

int topology_id
 
int wrap_id
 
bool altitude_info
 
enum direction8 valid_dirs [8]
 
enum direction8 cardinal_dirs [8]
 
int num_valid_dirs
 
int num_cardinal_dirs
 
struct iter_indexiterate_outwards_indices
 
int num_iterate_outwards_indices
 
int xsize
 
int ysize
 
int north_latitude
 
int south_latitude
 
Continent_id num_continents
 
Continent_id num_oceans
 
intcontinent_sizes
 
intocean_sizes
 
struct tiletiles
 
struct startpos_hashstartpos_table
 
union { 
 
   struct { 
 
      enum mapsize_type   mapsize 
 
      int   size 
 
      int   tilesperplayer 
 
      randseed   seed_setting 
 
      randseed   seed 
 
      int   riches 
 
      int   huts 
 
      int   huts_absolute 
 
      int   animals 
 
      int   landpercent 
 
      enum map_generator   generator 
 
      enum map_startpos   startpos 
 
      bool   tinyisles 
 
      bool   separatepoles 
 
      int   flatpoles 
 
      int   temperature 
 
      int   wetness 
 
      int   steepness 
 
      bool   ocean_resources 
 
      bool   have_huts 
 
      bool   have_resources 
 
      enum team_placement   team_placement 
 
      Continent_id *   island_surrounders 
 
      Continent_id *   lake_surrounders 
 
   }   server 
 
   struct { 
 
      int **   adj_matrix 
 
   }   client 
 
};  
 

Detailed Description

Definition at line 71 of file map_types.h.

Field Documentation

◆ [union]

union { ... } civ_map

◆ adj_matrix

int** civ_map::adj_matrix

◆ altitude_info

bool civ_map::altitude_info

◆ animals

int civ_map::animals

Definition at line 109 of file map_types.h.

Referenced by create_animals().

◆ cardinal_dirs

enum direction8 civ_map::cardinal_dirs[8]

Definition at line 75 of file map_types.h.

◆ [struct]

struct { ... } civ_map::client

◆ continent_sizes

int* civ_map::continent_sizes

◆ flatpoles

int civ_map::flatpoles

Definition at line 115 of file map_types.h.

Referenced by hmap_pole_factor(), and make_pseudofractal1_hmap().

◆ generator

enum map_generator civ_map::generator

◆ have_huts

bool civ_map::have_huts

◆ have_resources

bool civ_map::have_resources

◆ huts

int civ_map::huts

◆ huts_absolute

int civ_map::huts_absolute

Definition at line 108 of file map_types.h.

Referenced by compat_load_020600(), generator_init_topology(), huts_action(), and huts_help().

◆ island_surrounders

Continent_id* civ_map::island_surrounders

Definition at line 132 of file map_types.h.

Referenced by get_island_surrounder(), and recalculate_surrounders().

◆ iterate_outwards_indices

struct iter_index* civ_map::iterate_outwards_indices

Definition at line 77 of file map_types.h.

Referenced by generate_map_indices().

◆ lake_surrounders

Continent_id* civ_map::lake_surrounders

Definition at line 133 of file map_types.h.

Referenced by get_lake_surrounder(), recalculate_surrounders(), and regenerate_lakes().

◆ landpercent

int civ_map::landpercent

◆ mapsize

enum mapsize_type civ_map::mapsize

◆ north_latitude

int civ_map::north_latitude

Definition at line 80 of file map_types.h.

Referenced by compat_load_030200(), handle_map_info(), and send_map_info().

◆ num_cardinal_dirs

int civ_map::num_cardinal_dirs

Definition at line 76 of file map_types.h.

◆ num_continents

Continent_id civ_map::num_continents

◆ num_iterate_outwards_indices

int civ_map::num_iterate_outwards_indices

Definition at line 78 of file map_types.h.

Referenced by generate_map_indices().

◆ num_oceans

Continent_id civ_map::num_oceans

◆ num_valid_dirs

int civ_map::num_valid_dirs

Definition at line 76 of file map_types.h.

◆ ocean_resources

bool civ_map::ocean_resources

Definition at line 119 of file map_types.h.

Referenced by add_resources(), load_ruleset_terrain(), and save_terrain_ruleset().

◆ ocean_sizes

int* civ_map::ocean_sizes

◆ riches

int civ_map::riches

◆ seed

randseed civ_map::seed

Definition at line 105 of file map_types.h.

Referenced by map_fractal_generate(), sg_load_map(), sg_load_map(), and sg_save_map().

◆ seed_setting

randseed civ_map::seed_setting

Definition at line 104 of file map_types.h.

Referenced by map_fractal_generate(), and srv_ready().

◆ separatepoles

bool civ_map::separatepoles

Definition at line 114 of file map_types.h.

Referenced by generator_init_topology(), hmap_pole_factor(), and ok_for_separate_poles().

◆ [struct]

struct { ... } civ_map::server

◆ size

int civ_map::size

Definition at line 102 of file map_types.h.

Referenced by generator_init_topology(), and set_sizes().

◆ south_latitude

int civ_map::south_latitude

Definition at line 81 of file map_types.h.

Referenced by compat_load_030200(), handle_map_info(), and send_map_info().

◆ startpos

enum map_startpos civ_map::startpos

Definition at line 112 of file map_types.h.

Referenced by map_fractal_generate(), map_generate_fair_islands(), and mapgenerator4().

◆ startpos_table

struct startpos_hash* civ_map::startpos_table

◆ steepness

int civ_map::steepness

◆ team_placement

enum team_placement civ_map::team_placement

Definition at line 122 of file map_types.h.

Referenced by do_team_placement(), init_new_game(), and map_generate_fair_islands().

◆ temperature

int civ_map::temperature

Definition at line 116 of file map_types.h.

Referenced by adjust_terrain_param(), and create_tmap().

◆ tiles

struct tile* civ_map::tiles

◆ tilesperplayer

int civ_map::tilesperplayer

Definition at line 103 of file map_types.h.

Referenced by generator_init_topology(), and map_generate_fair_islands().

◆ tinyisles

bool civ_map::tinyisles

Definition at line 113 of file map_types.h.

Referenced by map_fractal_generate(), and map_generate_fair_islands().

◆ topology_id

int civ_map::topology_id

◆ valid_dirs

enum direction8 civ_map::valid_dirs[8]

Definition at line 75 of file map_types.h.

◆ wetness

int civ_map::wetness

Definition at line 117 of file map_types.h.

Referenced by adjust_terrain_param().

◆ wrap_id

int civ_map::wrap_id

◆ xsize

int civ_map::xsize

Definition at line 79 of file map_types.h.

Referenced by generator_init_topology(), handle_map_info(), and set_sizes().

◆ ysize

int civ_map::ysize

Definition at line 79 of file map_types.h.

Referenced by generator_init_topology(), handle_map_info(), and set_sizes().