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

Classes
tileset.h File Reference
#include "vec2i.h"
#include <string>
#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   0x0003
 
#define MapFieldOpaque   0x0004
 
#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
 
#define MapFieldDecorative   0x10000
 
#define MapFieldCost4   (0x20000 | MapFieldForest)
 
#define MapFieldCost5   (0x40000 | MapFieldForest)
 
#define MapFieldCost6   (0x80000 | MapFieldForest)
 
enum  TileType {
  TileTypeUnknown, TileTypeWood, TileTypeRock, TileTypeCoast,
  TileTypeHumanWall, TileTypeOrcWall, TileTypeWater
}
 
void ParseTilesetTileFlags (lua_State *l, int *back, int *j)
 

Macro Definition Documentation

◆ MapFieldAirUnit

#define MapFieldAirUnit   0x2000

◆ MapFieldBuilding

#define MapFieldBuilding   0x8000

◆ MapFieldCoastAllowed

#define MapFieldCoastAllowed   0x0020

◆ MapFieldCost4

#define MapFieldCost4   (0x20000 | MapFieldForest)

◆ MapFieldCost5

#define MapFieldCost5   (0x40000 | MapFieldForest)

◆ MapFieldCost6

#define MapFieldCost6   (0x80000 | MapFieldForest)

◆ MapFieldDecorative

#define MapFieldDecorative   0x10000

◆ MapFieldForest

#define MapFieldForest   0x0800

◆ MapFieldHuman

#define MapFieldHuman   0x0008

◆ MapFieldLandAllowed

#define MapFieldLandAllowed   0x0010

◆ MapFieldLandUnit

#define MapFieldLandUnit   0x1000

◆ MapFieldNoBuilding

#define MapFieldNoBuilding   0x0080

◆ MapFieldOpaque

#define MapFieldOpaque   0x0004

◆ MapFieldRocks

#define MapFieldRocks   0x0400

◆ MapFieldSeaUnit

#define MapFieldSeaUnit   0x4000

◆ MapFieldSpeedMask

#define MapFieldSpeedMask   0x0003

◆ MapFieldUnpassable

#define MapFieldUnpassable   0x0100

◆ MapFieldWall

#define MapFieldWall   0x0200

◆ MapFieldWaterAllowed

#define MapFieldWaterAllowed   0x0040

Enumeration Type Documentation

◆ TileType

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

◆ ParseTilesetTileFlags()

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