Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

a_area Struct Reference

Area. More...

#include <world.h>

Collaboration diagram for a_area:

Collaboration graph
[legend]
List of all members.

Public Attributes

short width
short height
short halfwidth
short halfheight
short maxdim
short xwrap
int numcells
int latitude
int longitude
short projection
int cellwidth
short fullwidth
short fullheight
short fullx
short fully
short sunx
short suny
Objtemp_year
char * image_name
a_unit ** units
char * terrain
char ** auxterrain
char * peopleside
char * controlside
short * features
short * elevations
short avgelev
short minelev
short maxelev
long ** materials
short * temperature
short * clouds
short * cloudbottoms
short * cloudheights
short * winds
short * tmp1
short * tmp2
short * tmp3
a_region ** terrain_regions
a_region ** landsea_regions
short * user

Detailed Description

Area.

An "area" is always basically a rectangular array of positions. The hex effect can be achieved by interpreting neighborliness and direction differently, but that's all that's needed. All of the "layers" are dynamically allocated as needed, to save (considerable!) space.

See the discussion of layers for a more complet discussion of the various types of layers.


Member Data Documentation

char** a_area::auxterrain
 

vector of extra types layer

short a_area::avgelev
 

calculated average of elevations layer

int a_area::cellwidth
 

distance across one cell

short* a_area::cloudbottoms
 

altitudes of clouds of cloud layer layer

short* a_area::cloudheights
 

heights of clouds in the cloud layer layer

short* a_area::clouds
 

types of clouds in the layer layer

char* a_area::controlside
 

the side actually in charge layer

short* a_area::elevations
 

layer of elevations layer

short* a_area::features
 

layer of ids of features layer

short a_area::fullheight
 

height of the area being used for data

short a_area::fullwidth
 

width of the area being used for data

short a_area::fullx
 

x offset within full area to get data from

short a_area::fully
 

y offset within full area to get data from

short a_area::halfheight
 

height / 2

short a_area::halfwidth
 

width / 2

short a_area::height
 

Height of the area

char* a_area::image_name
 

Pointers to the various "layers".

struct a_region** a_area::landsea_regions
 

Region list. Area is devided into land and sea. layer

int a_area::latitude
 

position within whole world

int a_area::longitude
 

position within whole world

long** a_area::materials
 

layer of materials in each cell layer

short a_area::maxdim
 

max of the two dims

short a_area::maxelev
 

calculated min/max of elevations layer

short a_area::minelev
 

calculated min/max of elevations layer

int a_area::numcells
 

number of cells in area

char* a_area::peopleside
 

the overt side alignment of the locals layer

short a_area::projection
 

Isometric projection flag. ???

short a_area::sunx
 

x location at which sun is overhead

short a_area::suny
 

y location at which sun is overhead

Obj* a_area::temp_year
 

cycle of temperatures within year

short* a_area::temperature
 

layer of cell temperatures layer

char* a_area::terrain
 

terrain type at this spot layer

struct a_region** a_area::terrain_regions
 

Region list. Area is divided by terrain types. layer

short* a_area::tmp1
 

Temporary layer 1. layer

short* a_area::tmp2
 

Temporary layer 2. layer

short* a_area::tmp3
 

Temporary layer 3. layer

struct a_unit** a_area::units
 

pointer to units if any layer

short* a_area::user
 

IDs of units using materials in each cell layer

short a_area::width
 

Width of the area.

short* a_area::winds
 

layer of force/dir of winds. layer

short a_area::xwrap
 

true if x coords wrap around


The documentation for this struct was generated from the following file:
Generated on Sat Sep 17 10:29:49 2005 for XconqKernel by doxygen 1.3.6