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

#include <map_types.h>

Data Fields

int topology_id
 
int wrap_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 north_latitude
 
int south_latitude
 
Continent_id num_continents
 
Continent_id num_oceans
 
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 
 
   }   server 
 
};  
 

Detailed Description

Definition at line 71 of file map_types.h.

Field Documentation

◆ [union]

union { ... } civ_map

◆ animals

int civ_map::animals

Definition at line 96 of file map_types.h.

Referenced by create_animals().

◆ cardinal_dirs

enum direction8 civ_map::cardinal_dirs[8]

Definition at line 74 of file map_types.h.

Referenced by fair_map_island_new().

◆ flatpoles

int civ_map::flatpoles

Definition at line 102 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 95 of file map_types.h.

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

◆ iterate_outwards_indices

struct iter_index* civ_map::iterate_outwards_indices

◆ landpercent

int civ_map::landpercent

◆ mapsize

enum mapsize_type civ_map::mapsize

◆ north_latitude

int civ_map::north_latitude

Definition at line 79 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 75 of file map_types.h.

Referenced by fair_map_island_new().

◆ num_continents

Continent_id civ_map::num_continents

◆ num_iterate_outwards_indices

int civ_map::num_iterate_outwards_indices

◆ num_oceans

Continent_id civ_map::num_oceans

◆ num_valid_dirs

int civ_map::num_valid_dirs

◆ ocean_resources

bool civ_map::ocean_resources

Definition at line 106 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 92 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 91 of file map_types.h.

Referenced by map_fractal_generate(), and srv_ready().

◆ separatepoles

bool civ_map::separatepoles

Definition at line 101 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 89 of file map_types.h.

Referenced by generator_init_topology(), and set_sizes().

◆ south_latitude

int civ_map::south_latitude

Definition at line 80 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 99 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 109 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 103 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 90 of file map_types.h.

Referenced by generator_init_topology(), and map_generate_fair_islands().

◆ tinyisles

bool civ_map::tinyisles

Definition at line 100 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 74 of file map_types.h.

Referenced by fair_map_island_new(), fair_map_make_resources(), and rand_direction().

◆ wetness

int civ_map::wetness

Definition at line 104 of file map_types.h.

Referenced by adjust_terrain_param().

◆ wrap_id

int civ_map::wrap_id

◆ xsize

int civ_map::xsize

◆ ysize

int civ_map::ysize