$treeview $search $mathjax
Stratagus  2.2.6
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
           Stratagus - A free fantasy real time strategy game engine

src/include/tileset.h File Reference

#include "vec2i.h"

Go to the source code of this file.


Classes

struct  TileInfo
 Single tile definition. More...
struct  SolidTerrainInfo
 Definition for a terrain type. More...
class  CTileset
 Tileset definition. More...

tileset.h - The tileset headerfile.

#define MapFieldWall   0x0200
#define MapFieldRocks   0x0400
#define MapFieldForest   0x0800
enum  TileType {
  TileTypeUnknown, TileTypeWood, TileTypeRock, TileTypeCoast,
  TileTypeHumanWall, TileTypeOrcWall, TileTypeWater
}
 Size of a tile in pixels. More...
PixelSize PixelTileSize
void LoadTileset ()
void CleanTilesets ()
 Load tileset definition.
void TilesetCclRegister ()
 Cleanup the tileset module.

Define Documentation

#define MapFieldForest   0x0800

#define MapFieldRocks   0x0400

#define MapFieldWall   0x0200


Enumeration Type Documentation

enum TileType

Size of a tile in pixels.

These are used for lookup tiles types mainly used for the FOW implementation of the seen woods/rocks

Todo:
I think this can be removed, we can use the flags? I'm not sure, if we have seen and real time to considere.
Enumerator:
TileTypeUnknown 
TileTypeWood  Unknown tile type.
TileTypeRock  Any wood tile.
TileTypeCoast  Any rock tile.
TileTypeHumanWall  Any coast tile.
TileTypeOrcWall  Any human wall tile.
TileTypeWater  Any orc wall tile.

Any water tile


Function Documentation

void CleanTilesets (  ) 

Load tileset definition.

Cleanup the tileset module.

Note:
this didn't frees the configuration memory.

void LoadTileset (  ) 

Load tileset and setup Map for this tileset.

See also:
Map

Map.Tileset.

void TilesetCclRegister (  ) 

Cleanup the tileset module.

Register CCL features for tileset.


Variable Documentation

Size of a tile in pixel

(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.