_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
46 #define MapFieldSpeedMask 0x0003
48 #define MapFieldOpaque 0x0004
50 #define MapFieldHuman 0x0008
52 #define MapFieldLandAllowed 0x0010
53 #define MapFieldCoastAllowed 0x0020
54 #define MapFieldWaterAllowed 0x0040
55 #define MapFieldNoBuilding 0x0080
57 #define MapFieldUnpassable 0x0100
58 #define MapFieldWall 0x0200
59 #define MapFieldRocks 0x0400
60 #define MapFieldForest 0x0800
62 #define MapFieldLandUnit 0x1000
63 #define MapFieldAirUnit 0x2000
64 #define MapFieldSeaUnit 0x4000
65 #define MapFieldBuilding 0x8000
67 #define MapFieldDecorative 0x10000
68 #define MapFieldCost4 (0x20000 | MapFieldForest)
69 #define MapFieldCost5 (0x40000 | MapFieldForest)
70 #define MapFieldCost6 (0x80000 | MapFieldForest)
163 unsigned int getTileNumber(
int basic,
bool random,
bool filler)
const;
169 int bottom,
int left)
const;
173 void parse(lua_State *l);
176 int findTileIndex(
unsigned char baseTerrain,
unsigned char mixTerrain = 0)
const;
179 unsigned int getOrAddSolidTileIndexByName(
const std::string &name);
180 int getTileIndex(
unsigned char baseTerrain,
unsigned char mixTerrain,
unsigned int quad)
const;
181 void buildWallReplacementTable();
182 void parseSlots(lua_State *l,
int t);
183 void parseSpecial(lua_State *l);
184 void parseSolid(lua_State *l);
185 void parseMixed(lua_State *l);
186 int findTilePath(
int base,
int goal,
int length, std::vector<char> &marks,
int *tileIndex)
const;
198 std::vector<SolidTerrainInfo> solidTerrainTypes;
200 std::vector<int> mixedLookupTable;
201 unsigned topOneTreeTile;
202 unsigned midOneTreeTile;
203 unsigned botOneTreeTile;
204 unsigned removedTreeTile;
206 unsigned topOneRockTile;
207 unsigned midOneRockTile;
208 unsigned botOneRockTile;
209 unsigned removedRockTile;
211 unsigned humanWallTable[16];
212 unsigned orcWallTable[16];
unsigned getOrcWallTileIndex_destroyed(int dirFlag) const
Definition: tileset.cpp:747
@ TileTypeWood
Unknown tile type.
Definition: tileset.h:81
bool isAWallTile(unsigned tile) const
Definition: tileset.cpp:270
int getTileBySurrounding(unsigned short type, int up, int right, int bottom, int left) const
Definition: tileset.cpp:512
int findTileIndex(unsigned char baseTerrain, unsigned char mixTerrain=0) const
Definition: tileset.cpp:331
unsigned getRemovedTreeTile() const
Definition: tileset.h:144
@ TileTypeRock
Any wood tile.
Definition: tileset.h:82
const PixelSize & getPixelTileSize() const
Definition: tileset.h:141
CTileInfo tileinfo
Flag.
Definition: tileset.h:122
@ TileTypeUnknown
Definition: tileset.h:80
unsigned getHumanWallTileIndex(int dirFlag) const
Definition: tileset.cpp:705
unsigned char MixTerrain
Basic terrain of the tile.
Definition: tileset.h:105
unsigned getOrcWallTileIndex(int dirFlag) const
Definition: tileset.cpp:709
std::vector< CTile > tiles
File containing image data.
Definition: tileset.h:192
unsigned getBottomOneTreeTile() const
Definition: tileset.h:145
int tileFromQuad(unsigned fixed, unsigned quad) const
Definition: tileset.cpp:430
@ TileTypeWater
Any orc wall tile.
Definition: tileset.h:86
@ TileTypeCoast
Any rock tile.
Definition: tileset.h:83
Single tile definition.
Definition: tileset.h:90
void parse(lua_State *l)
Definition: script_tileset.cpp:336
bool operator!=(const CTileInfo &rhs) const
Definition: tileset.h:101
bool isARaceWallTile(unsigned tile, bool human) const
Definition: tileset.cpp:279
CTileInfo(unsigned char base, unsigned char mix)
Definition: tileset.h:94
unsigned char BaseTerrain
Definition: tileset.h:104
int parseTilesetTileFlags(lua_State *l, int *back, int *j)
Definition: script_tileset.cpp:108
unsigned int getSolidTerrainCount() const
Definition: tileset.cpp:326
unsigned getRemovedRockTile() const
Definition: tileset.h:143
unsigned int getDefaultTileIndex() const
Definition: tileset.cpp:228
CTileInfo()
Definition: tileset.h:92
void clear()
Definition: tileset.cpp:205
Definition for a terrain type.
Definition: tileset.h:109
std::vector< unsigned char > TileTypeTable
Definition: tileset.h:195
unsigned getTopOneTreeTile() const
Definition: tileset.h:146
bool isARockTile(unsigned tile) const
Definition: tileset.cpp:299
void buildTable(lua_State *l)
Definition: script_tileset.cpp:365
@ TileTypeOrcWall
Any human wall tile.
Definition: tileset.h:85
unsigned int getDefaultWoodTileIndex() const
Definition: tileset.cpp:249
unsigned int flag
graphical pos
Definition: tileset.h:121
unsigned short tile
Definition: tileset.h:120
int findTileIndexByTile(unsigned int tile) const
Definition: tileset.cpp:573
unsigned int getTileNumber(int basic, bool random, bool filler) const
Definition: tileset.cpp:594
std::string Name
Definition: tileset.h:188
std::string ImageFile
Nice name to display.
Definition: tileset.h:189
unsigned int getTileCount() const
Definition: tileset.h:131
Definition: tileset.h:114
bool isEquivalentTile(unsigned int tile1, unsigned int tile2) const
Definition: tileset.cpp:566
const std::string & getTerrainName(int solidTerrainIndex) const
Definition: tileset.cpp:321
unsigned getHumanWallTileIndex_destroyed(int dirFlag) const
Definition: tileset.cpp:739
CTile()
Definition: tileset.h:117
unsigned getMidOneTreeTile() const
Definition: tileset.h:147
unsigned getOrcWallTileIndex_broken(int dirFlag) const
Definition: tileset.cpp:732
std::string TerrainName
Definition: tileset.h:110
unsigned getQuadFromTile(unsigned int tile) const
Definition: tileset.cpp:646
unsigned getWallDirection(int tileIndex, bool human) const
Definition: tileset.cpp:694
TileType
Definition: tileset.h:79
bool isAWoodTile(unsigned tile) const
Definition: tileset.cpp:292
unsigned getHumanWallTileIndex_broken(int dirFlag) const
Definition: tileset.cpp:725
Tileset definition.
Definition: tileset.h:126
void fillSolidTiles(std::vector< unsigned int > *solidTiles) const
Definition: tileset.cpp:678
bool operator==(const CTileInfo &rhs) const
Definition: tileset.h:97
@ TileTypeHumanWall
Any coast tile.
Definition: tileset.h:84
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.