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

#include <map_types.h>

Data Fields

int topology_id
 
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 num_continents
 
int num_oceans
 
struct tiletiles
 
struct startpos_hash * startpos_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 
 
      bool   single_pole 
 
      bool   alltemperate 
 
      int   temperature 
 
      int   wetness 
 
      int   steepness 
 
      bool   ocean_resources 
 
      bool   have_huts 
 
      bool   have_resources 
 
      enum team_placement   team_placement 
 
   }   server 
 
};  
 

Detailed Description

Definition at line 71 of file map_types.h.

Field Documentation

◆ [union]

union { ... } civ_map

◆ alltemperate

bool civ_map::alltemperate

Definition at line 101 of file map_types.h.

Referenced by create_tmap(), map_colatitude(), and map_init().

◆ animals

int civ_map::animals

Definition at line 93 of file map_types.h.

Referenced by create_animals(), and map_init().

◆ cardinal_dirs

enum direction8 civ_map::cardinal_dirs[8]

Definition at line 73 of file map_types.h.

Referenced by fair_map_island_new(), and map_init_topology().

◆ flatpoles

int civ_map::flatpoles

Definition at line 99 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

◆ iterate_outwards_indices

struct iter_index* civ_map::iterate_outwards_indices

◆ landpercent

int civ_map::landpercent

◆ mapsize

enum mapsize_type civ_map::mapsize

◆ num_cardinal_dirs

int civ_map::num_cardinal_dirs

Definition at line 74 of file map_types.h.

Referenced by fair_map_island_new(), and map_init_topology().

◆ num_continents

int civ_map::num_continents

◆ num_iterate_outwards_indices

int civ_map::num_iterate_outwards_indices

◆ num_oceans

int civ_map::num_oceans

◆ num_valid_dirs

int civ_map::num_valid_dirs

◆ ocean_resources

bool civ_map::ocean_resources

Definition at line 105 of file map_types.h.

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

◆ riches

int civ_map::riches

◆ seed

randseed civ_map::seed

Definition at line 89 of file map_types.h.

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

◆ seed_setting

randseed civ_map::seed_setting

Definition at line 88 of file map_types.h.

Referenced by map_fractal_generate(), map_init(), and srv_ready().

◆ separatepoles

bool civ_map::separatepoles

◆ [struct]

struct { ... } civ_map::server

◆ single_pole

bool civ_map::single_pole

Definition at line 100 of file map_types.h.

Referenced by generator_init_topology(), map_colatitude(), and map_init().

◆ size

int civ_map::size

Definition at line 86 of file map_types.h.

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

◆ startpos

enum map_startpos civ_map::startpos

◆ 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 108 of file map_types.h.

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

◆ temperature

int civ_map::temperature

Definition at line 102 of file map_types.h.

Referenced by adjust_terrain_param(), create_tmap(), and map_init().

◆ tiles

struct tile* civ_map::tiles

◆ tilesperplayer

int civ_map::tilesperplayer

Definition at line 87 of file map_types.h.

Referenced by generator_init_topology(), map_generate_fair_islands(), and map_init().

◆ tinyisles

bool civ_map::tinyisles

Definition at line 97 of file map_types.h.

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

◆ topology_id

int civ_map::topology_id

◆ valid_dirs

enum direction8 civ_map::valid_dirs[8]

◆ wetness

int civ_map::wetness

Definition at line 103 of file map_types.h.

Referenced by adjust_terrain_param(), and map_init().

◆ xsize

int civ_map::xsize

◆ ysize

int civ_map::ysize