Freeciv21
Develop your civilization from humble roots to a global empire
civ_map Struct Reference

#include <map_types.h>

+ Collaboration diagram for civ_map:

Public Attributes

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
 
QHash< struct tile *, struct startpos * > * startpos_table
 
union {
   struct {
      enum mapsize_type   mapsize
 
      int   size
 
      int   tilesperplayer
 
      int   seed_setting
 
      int   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 67 of file map_types.h.

Member Data Documentation

◆ 

union { ... }

◆ alltemperate

bool civ_map::alltemperate

Definition at line 98 of file map_types.h.

◆ animals

int civ_map::animals

Definition at line 90 of file map_types.h.

◆ cardinal_dirs

enum direction8 civ_map::cardinal_dirs[8]

Definition at line 69 of file map_types.h.

Referenced by fair_map_island_new(), and map_init_topology().

◆ flatpoles

int civ_map::flatpoles

Definition at line 96 of file map_types.h.

◆ generator

enum map_generator civ_map::generator

Definition at line 91 of file map_types.h.

◆ have_huts

bool civ_map::have_huts

Definition at line 103 of file map_types.h.

◆ have_resources

bool civ_map::have_resources

Definition at line 104 of file map_types.h.

◆ huts

int civ_map::huts

Definition at line 87 of file map_types.h.

◆ huts_absolute

int civ_map::huts_absolute

Definition at line 88 of file map_types.h.

◆ iterate_outwards_indices

◆ landpercent

int civ_map::landpercent

Definition at line 91 of file map_types.h.

◆ mapsize

enum mapsize_type civ_map::mapsize

Definition at line 77 of file map_types.h.

◆ num_cardinal_dirs

int civ_map::num_cardinal_dirs

Definition at line 70 of file map_types.h.

Referenced by fair_map_island_new(), and map_init_topology().

◆ num_continents

◆ num_iterate_outwards_indices

◆ num_oceans

◆ num_valid_dirs

int civ_map::num_valid_dirs

◆ ocean_resources

bool civ_map::ocean_resources

Definition at line 102 of file map_types.h.

◆ riches

int civ_map::riches

Definition at line 86 of file map_types.h.

◆ seed

int civ_map::seed

Definition at line 85 of file map_types.h.

◆ seed_setting

int civ_map::seed_setting

Definition at line 84 of file map_types.h.

◆ separatepoles

bool civ_map::separatepoles

Definition at line 95 of file map_types.h.

◆ 

◆ single_pole

bool civ_map::single_pole

Definition at line 97 of file map_types.h.

◆ size

int civ_map::size

Definition at line 82 of file map_types.h.

◆ startpos

enum map_startpos civ_map::startpos

Definition at line 91 of file map_types.h.

◆ startpos_table

◆ steepness

int civ_map::steepness

Definition at line 101 of file map_types.h.

◆ team_placement

enum team_placement civ_map::team_placement

Definition at line 104 of file map_types.h.

◆ temperature

int civ_map::temperature

Definition at line 99 of file map_types.h.

◆ tiles

◆ tilesperplayer

int civ_map::tilesperplayer

Definition at line 83 of file map_types.h.

◆ tinyisles

bool civ_map::tinyisles

Definition at line 94 of file map_types.h.

◆ topology_id

◆ valid_dirs

enum direction8 civ_map::valid_dirs[8]

Definition at line 68 of file map_types.h.

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

◆ wetness

int civ_map::wetness

Definition at line 100 of file map_types.h.

◆ xsize

◆ ysize