ScummVM API documentation
Ultima::Ultima4::Tile Class Reference

#include <tile.h>

Inheritance diagram for Ultima::Ultima4::Tile:
Ultima::Ultima4::Uncopyable

Public Member Functions

 Tile (Tileset *tileset)
 
void loadProperties (const ConfigElement &conf)
 
TileId getId () const
 
const Common::StringgetName () const
 
int getWidth () const
 
int getHeight () const
 
int getFrames () const
 
int getScale () const
 
TileAnimgetAnim () const
 
ImagegetImage ()
 
const Common::StringgetLooksLike () const
 
bool isTiledInDungeon () const
 
bool isLandForeground () const
 
bool isWaterForeground () const
 
int canWalkOn (Direction d) const
 
int canWalkOff (Direction d) const
 
int canAttackOver () const
 
int canLandBalloon () const
 
int isLivingObject () const
 
int isReplacement () const
 
int isWaterReplacement () const
 
int isWalkable () const
 
bool isCreatureWalkable () const
 
bool isDungeonWalkable () const
 
bool isDungeonFloor () const
 
int isSwimable () const
 
int isSailable () const
 
bool isWater () const
 
int isFlyable () const
 
int isDoor () const
 
int isLockedDoor () const
 
int isChest () const
 
int isShip () const
 
bool isPirateShip () const
 
int isHorse () const
 
int isBalloon () const
 
int canDispel () const
 
int canTalkOver () const
 
TileSpeed getSpeed () const
 
TileEffect getEffect () const
 
bool isOpaque () const
 
bool isForeground () const
 
Direction directionForFrame (int frame) const
 
int frameForDirection (Direction d) const
 
void deleteImage ()
 

Static Public Member Functions

static void resetNextId ()
 
static bool canTalkOverTile (const Tile *tile)
 
static bool canAttackOverTile (const Tile *tile)
 

Detailed Description

A Tile object represents a specific tile type. Every tile is a member of a Tileset.

Member Function Documentation

◆ loadProperties()

void Ultima::Ultima4::Tile::loadProperties ( const ConfigElement conf)

Loads tile information.

◆ canAttackOver()

int Ultima::Ultima4::Tile::canAttackOver ( ) const
inline

All tiles that you can walk, swim, or sail on, can be attacked over. All others must declare themselves

◆ isForeground()

bool Ultima::Ultima4::Tile::isForeground ( ) const

Is tile a foreground tile (i.e. has transparent parts). Deprecated? Never used in XML. Other mechanisms exist, though this could help?


The documentation for this class was generated from the following file: