Logo Search packages:      
Sourcecode: freecraft version File versions  Download package

_world_map_ Struct Reference

#include <map.h>

List of all members.


Detailed Description

Describes the wold map.

#include "map.h"

typedef struct _world_map_ WorldMap;

This structure contains all informations about a freecraft world. A world is a rectangle of any size. In the future it is planned to support multiple worlds.

The world-map structure members:

WorldMap::Width WorldMap::Height

The map size in tiles.

WorldMap::Fields

An array WorldMap::Width*WorldMapHeight of all fields belonging to this map.

WorldMap::NoFogOfWar

Flag if true, the fog of war is disabled.

WorldMap::TerrainName

Terrain as name. Used for unit-type look changes depending on the current terrain type. In the future we want to support multiple terrains pro map.

WorldMap::Terrain

The terrain as number, this should be removed.

WorldMap::Tileset

Tileset data for the map. See Tileset. This contains all information about the tile.

WorldMap::TileCount

How many graphic tiles are available.

WorldMap::Tiles

Pointer into the tile graphic data. Used to find fast the start of different tiles.

WorldMap::TileData

Tiles graphic for the map, loaded from WorldMap::Tileset::File.

WorldMap::Description[32]

Short description of the map.

WorldMap::Info

Descriptive information of the map.

See also:
_map_info_
Todo:
This structure contains duplicate informations of the map.

Definition at line 310 of file map.h.


Public Attributes

char Description [32]
 tiles graphic for map
MapFieldFields
 the map height
int Height
 the map width
MapInfoInfo
 map description short
unsigned char NoFogOfWar
 visible bit-field
int Terrain
 terrain as name
char * TerrainName
 fog of war disabled
unsigned TileCount
 tileset data
GraphicTileData
 pointer to tile data
unsigned char ** Tiles
 how many tiles are available
TilesetTileset
 terrain type (summer,winter,...)
unsigned * Visible [PlayerMax]
 fields on map
int Width

The documentation for this struct was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index