_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
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.
30 #ifndef __MAP_TILE_H__
31 #define __MAP_TILE_H__
135 #ifndef __UNIT_CACHE_H__
192 void parse(lua_State *l);
236 unsigned char getCost()
const {
return cost; }
240 int64_t lastAStarCost;
244 unsigned int tilesetTile;
262 #endif // !__MAP_TILE_H__
Diplomacy states for CommandDiplomacy.
Definition: player.h:83
bool isAWall() const
Definition: mapfield.cpp:312
bool isHuman() const
Definition: mapfield.cpp:316
bool isOpaque() const
Check if a field is opaque for field of view.
Definition: mapfield.cpp:249
CMapFieldPlayerInfo()
Definition: tile.h:153
unsigned short SeenTile
Definition: tile.h:178
Definition: unit_cache.h:50
unsigned char getCost() const
Definition: tile.h:236
bool Cost4OnMap() const
Returns true, if any terrain resource giving Cost4 on the map tile field.
Definition: mapfield.cpp:281
unsigned char Radar[PlayerMax]
Visiblity for cloaking.
Definition: tile.h:181
bool Cost6OnMap() const
Returns true, if any terrain resource giving Cost6 on the map tile field.
Definition: mapfield.cpp:295
bool IsTeamVisible(const CPlayer &player) const
Definition: mapfield.cpp:370
bool WaterOnMap() const
Returns true, if water on the map tile field.
Definition: mapfield.cpp:262
unsigned int Value
unit cost to move in this tile
Definition: tile.h:252
unsigned int Flags
graphic tile number
Definition: tile.h:248
unsigned char VisCloak[PlayerMax]
Seen counter 0 unexplored.
Definition: tile.h:180
bool RockOnMap() const
Returns true, if coast on the map tile field.
Definition: mapfield.cpp:301
bool isAOrcWall() const
Definition: mapfield.cpp:326
void parse(lua_State *l)
Definition: mapfield.cpp:183
constexpr unsigned char PlayerMax
Definition: settings.h:62
CMapFieldPlayerInfo playerInfo
A unit on the map field.
Definition: tile.h:255
CUnitCache UnitCache
HP for walls/Wood Regeneration, value of stored resource for forest or harvestable terrain.
Definition: tile.h:253
bool Cost5OnMap() const
Returns true, if any terrain resource giving Cost5 on the map tile field.
Definition: mapfield.cpp:288
void setGraphicTile(unsigned int tile)
Definition: tile.h:238
bool IsTerrainResourceOnMap() const
Definition: mapfield.cpp:75
void Save(CFile &file) const
Definition: mapfield.cpp:115
bool ForestOnMap() const
Returns true, if water on the map tile field.
Definition: mapfield.cpp:274
bool CheckMask(int mask) const
Check if a field flags.
Definition: mapfield.cpp:256
void setTileIndex(const CTileset &tileset, unsigned int tileIndex, int value)
Definition: mapfield.cpp:85
bool isAHumanWall() const
Definition: mapfield.cpp:321
unsigned short Visible[PlayerMax]
last seen tile (FOW)
Definition: tile.h:179
bool CoastOnMap() const
Returns true, if coast on the map tile field.
Definition: mapfield.cpp:268
unsigned char TeamVisibilityState(const CPlayer &player) const
Definition: mapfield.cpp:336
bool isDecorative() const
Returns true if the field should not need mixing with the surroundings.
Definition: mapfield.cpp:307
unsigned char RadarJammer[PlayerMax]
Visiblity for radar.
Definition: tile.h:182
unsigned int getGraphicTile() const
Definition: tile.h:196
Tileset definition.
Definition: tileset.h:126
Describes a field of the map.
Definition: tile.h:186
bool IsVisible(const CPlayer &player) const
Definition: mapfield.cpp:364
unsigned int getFlag() const
Definition: tile.h:237
bool IsExplored(const CPlayer &player) const
Check if a field for the user is explored.
Definition: mapfield.cpp:359
CMapField()
Definition: mapfield.cpp:49
(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.