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

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes
tileset.h File Reference
#include "vec2i.h"
#include <vector>

Go to the source code of this file.

Classes

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

tileset.h - The tileset headerfile.

#define MapFieldSpeedMask   0x0007
 
#define MapFieldHuman   0x0008
 
#define MapFieldLandAllowed   0x0010
 
#define MapFieldCoastAllowed   0x0020
 
#define MapFieldWaterAllowed   0x0040
 
#define MapFieldNoBuilding   0x0080
 
#define MapFieldUnpassable   0x0100
 
#define MapFieldWall   0x0200
 
#define MapFieldRocks   0x0400
 
#define MapFieldForest   0x0800
 
#define MapFieldLandUnit   0x1000
 
#define MapFieldAirUnit   0x2000
 
#define MapFieldSeaUnit   0x4000
 
#define MapFieldBuilding   0x8000
 
enum  TileType {
  TileTypeUnknown, TileTypeWood, TileTypeRock, TileTypeCoast,
  TileTypeHumanWall, TileTypeOrcWall, TileTypeWater
}
 
void ParseTilesetTileFlags (lua_State *l, int *back, int *j)
 

Macro Definition Documentation

#define MapFieldAirUnit   0x2000
#define MapFieldBuilding   0x8000
#define MapFieldCoastAllowed   0x0020
#define MapFieldForest   0x0800
#define MapFieldHuman   0x0008
#define MapFieldLandAllowed   0x0010
#define MapFieldLandUnit   0x1000
#define MapFieldNoBuilding   0x0080
#define MapFieldRocks   0x0400
#define MapFieldSeaUnit   0x4000
#define MapFieldSpeedMask   0x0007
#define MapFieldUnpassable   0x0100
#define MapFieldWall   0x0200
#define MapFieldWaterAllowed   0x0040

Enumeration Type Documentation

enum TileType

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 ParseTilesetTileFlags ( lua_State *  l,
int *  back,
int *  j 
)

Parse the flag section of a tile definition.

Parameters
lLua state.
backpointer for the flags (return).
jpointer for the location in the array. in and out
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.