FIFE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FIFE::Layer Class Reference

A basic layer on a map. More...

#include <layer.h>

+ Inheritance diagram for FIFE::Layer:
+ Collaboration diagram for FIFE::Layer:

Public Member Functions

 Layer (const std::string &identifier, Map *map, CellGrid *grid)
 Constructor Layers are created by calling addLayer from map, thus this method should really be called only by map or test code. More...
 
 ~Layer ()
 Destructs a Layer instance. More...
 
const std::string & getId () const
 Get the id of this layer. More...
 
void setId (const std::string &id)
 Sets the identifier for this layer. More...
 
MapgetMap () const
 Get the map this layer is contained in. More...
 
CellGridgetCellGrid () const
 Get the Cellgrid. More...
 
void setCellGrid (CellGrid *grid)
 Set the Cellgrid. More...
 
InstanceTreegetInstanceTree (void) const
 Get the instance tree. More...
 
bool hasInstances () const
 Check existance of objects on this layer. More...
 
InstancecreateInstance (Object *object, const ModelCoordinate &p, const std::string &id="")
 Add an instance of an object at a specific position. More...
 
InstancecreateInstance (Object *object, const ExactModelCoordinate &p, const std::string &id="")
 Add an instance of an object at a specific position. More...
 
bool addInstance (Instance *instance, const ExactModelCoordinate &p)
 Add a valid instance at a specific position. More...
 
void removeInstance (Instance *instance)
 Remove an instance from the layer. More...
 
void deleteInstance (Instance *instance)
 Remove an instance from the layer and delete it. More...
 
const std::vector< Instance * > & getInstances () const
 Get the list of instances on this layer. More...
 
std::vector< Instance * > getInstances (const std::string &id)
 Get the list of instances on this layer with the given identifier. More...
 
std::vector< Instance * > getInstancesAt (Location &loc, bool use_exactcoordinates=false)
 Returns instances that match given location. More...
 
std::list< Instance * > getInstancesIn (Rect &rec)
 Returns instances that match given rect. More...
 
InstancegetInstance (const std::string &identifier)
 Get the first instance on this layer with the given identifier. More...
 
void setInstancesVisible (bool vis)
 Set object visibility. More...
 
void setLayerTransparency (uint8_t transparency)
 Sets the transparency of all instances on the layer. More...
 
uint8_t getLayerTransparency ()
 Returns the layer's transparency value. More...
 
void getMinMaxCoordinates (ModelCoordinate &min, ModelCoordinate &max, const Layer *layer=0) const
 Retrieves the minimum/maximum coordinates of instances on the layer. More...
 
bool cellContainsBlockingInstance (const ModelCoordinate &cellCoordinate)
 Determines if a given cell on the layer contains a blocking instance. More...
 
std::vector< Instance * > getBlockingInstances (const ModelCoordinate &cellCoordinate)
 Returns instances that blocks on given cell. More...
 
void toggleInstancesVisible ()
 Toggle object visibility. More...
 
bool areInstancesVisible () const
 Check object visibility. More...
 
bool update ()
 Called periodically to update events on layer. More...
 
void setPathingStrategy (PathingStrategy strategy)
 Sets pathing strategy for the layer. More...
 
PathingStrategy getPathingStrategy () const
 Gets pathing strategy for the layer. More...
 
void setSortingStrategy (SortingStrategy strategy)
 Sets sorting strategy for the layer. More...
 
SortingStrategy getSortingStrategy () const
 Gets sorting strategy for the layer. More...
 
void setWalkable (bool walkable)
 Sets walkable for the layer. More...
 
bool isWalkable ()
 Returns if a layer is walkable. More...
 
void setInteract (bool interact, const std::string &id)
 Sets interact for the layer. More...
 
bool isInteract ()
 Returns if a layer is interact. More...
 
const std::string & getWalkableId ()
 Returns the id of the walkable layer if this is a interact layer otherwise the string is empty. More...
 
void addInteractLayer (Layer *layer)
 Adds a interact layer to the walkable layer. More...
 
const std::vector< Layer * > & getInteractLayers ()
 Returns all assigned interact layer. More...
 
void removeInteractLayer (Layer *layer)
 Removes a interact layer from the walkable layer. More...
 
void createCellCache ()
 Called from Map to create a CellCache. More...
 
CellCachegetCellCache ()
 Returns the CellCache of this layer. More...
 
void destroyCellCache ()
 Destroys the CellCache of this layer. More...
 
void addChangeListener (LayerChangeListener *listener)
 Adds new change listener. More...
 
void removeChangeListener (LayerChangeListener *listener)
 Removes associated change listener. More...
 
bool isChanged ()
 Returns true, if layer information was changed during previous update round. More...
 
std::vector< Instance * > & getChangedInstances ()
 Returns instances that were changed during previous update round. More...
 
void setInstanceActivityStatus (Instance *instance, bool active)
 Sets the activity status for given instance on this layer. More...
 
void setStatic (bool stati)
 Marks this layer as visual static. More...
 
bool isStatic ()
 Returns true, if layer is static. More...
 
- Public Member Functions inherited from FIFE::FifeClass
 FifeClass ()
 
virtual ~FifeClass ()
 
fifeid_t getFifeId ()
 Gets unique id of this instance inside the engine. More...
 

Protected Attributes

std::string m_id
 string identifier More...
 
Mapm_map
 pointer to map More...
 
bool m_instancesVisibility
 if true the instances are visibility otherwise they are skipped during rendering More...
 
uint8_t m_transparency
 transparency, value 0 means total visible, 128 semi-transparent and 255 invisibility More...
 
std::vector< Instance * > m_instances
 all the instances on this layer More...
 
std::set< Instance * > m_activeInstances
 all the active instances on this layer More...
 
InstanceTreem_instanceTree
 The instance tree. More...
 
CellGridm_grid
 layer's cellgrid More...
 
PathingStrategy m_pathingStrategy
 pathing strategy for the layer More...
 
SortingStrategy m_sortingStrategy
 sorting strategy for rendering More...
 
bool m_walkable
 is walkable true/false More...
 
bool m_interact
 is interact true/false More...
 
std::string m_walkableId
 walkable id More...
 
std::vector< Layer * > m_interacts
 all assigned interact layers More...
 
CellCachem_cellCache
 pointer to cellcache More...
 
std::vector
< LayerChangeListener * > 
m_changeListeners
 listeners for layer changes More...
 
std::vector< Instance * > m_changedInstances
 holds changed instances after each update More...
 
bool m_changed
 true if layer (or it's instance) information was changed during previous update round More...
 
bool m_static
 true if layer is static More...
 

Detailed Description

A basic layer on a map.

Definition at line 98 of file layer.h.

Constructor & Destructor Documentation

FIFE::Layer::Layer ( const std::string &  identifier,
Map map,
CellGrid grid 
)

Constructor Layers are created by calling addLayer from map, thus this method should really be called only by map or test code.

Definition at line 47 of file layer.cpp.

FIFE::Layer::~Layer ( )

Member Function Documentation

void FIFE::Layer::addChangeListener ( LayerChangeListener listener)

Adds new change listener.

Parameters
listenerto add

Definition at line 508 of file layer.cpp.

References m_changeListeners.

Referenced by FIFE::CellCache::addInteractOnRuntime(), FIFE::CellCache::CellCache(), and FIFE::LayerCache::setLayer().

+ Here is the caller graph for this function:

bool FIFE::Layer::addInstance ( Instance instance,
const ExactModelCoordinate p 
)

Add a valid instance at a specific position.

This is temporary. It will be moved to a higher level later so that we can ensure that each Instance only lives in one layer.

Definition at line 133 of file layer.cpp.

References FIFE::_log, FIFE::InstanceTree::addInstance(), FL_ERR, FIFE::Instance::getLocationRef(), FIFE::Instance::isActive(), m_changed, m_changeListeners, m_instances, m_instanceTree, FIFE::Location::setExactLayerCoordinates(), setInstanceActivityStatus(), and FIFE::Location::setLayer().

Referenced by FIFE::Map::update().

+ Here is the caller graph for this function:

void FIFE::Layer::addInteractLayer ( Layer layer)

Adds a interact layer to the walkable layer.

Parameters
layerA pointer to the interact layer that should be added.

Definition at line 424 of file layer.cpp.

References m_interacts, and m_walkable.

Referenced by FIFE::CellCache::addInteractOnRuntime(), and FIFE::Map::initializeCellCaches().

+ Here is the caller graph for this function:

bool FIFE::Layer::areInstancesVisible ( ) const

Check object visibility.

See Also
setObjectsVisible

Definition at line 338 of file layer.cpp.

References m_instancesVisibility.

Referenced by FIFE::LightRenderer::render(), and FIFE::LayerCache::update().

+ Here is the caller graph for this function:

bool FIFE::Layer::cellContainsBlockingInstance ( const ModelCoordinate cellCoordinate)

Determines if a given cell on the layer contains a blocking instance.

Parameters
cellCoordinateA const reference to a model coordinate of the cell in question.
Returns
A boolean, true if it is blocked false otherwise.

Definition at line 342 of file layer.cpp.

References FIFE::CTYPE_NO_BLOCKER, FIFE::InstanceTree::findInstances(), FIFE::CellCache::getCell(), FIFE::Cell::getCellType(), m_cellCache, and m_instanceTree.

Referenced by FIFE::RoutePather::followRoute().

+ Here is the caller graph for this function:

void FIFE::Layer::createCellCache ( )

Called from Map to create a CellCache.

Only walkable layers can create one CellCache.

Definition at line 447 of file layer.cpp.

References m_cellCache, and m_walkable.

Instance * FIFE::Layer::createInstance ( Object object,
const ModelCoordinate p,
const std::string &  id = "" 
)

Add an instance of an object at a specific position.

Definition at line 108 of file layer.cpp.

References FIFE::PointType3D< T >::x, FIFE::PointType3D< T >::y, and FIFE::PointType3D< T >::z.

Referenced by FIFE::Instance::Instance(), and FIFE::MapLoader::load().

+ Here is the caller graph for this function:

Instance * FIFE::Layer::createInstance ( Object object,
const ExactModelCoordinate p,
const std::string &  id = "" 
)
void FIFE::Layer::deleteInstance ( Instance instance)
void FIFE::Layer::destroyCellCache ( )

Destroys the CellCache of this layer.

Definition at line 457 of file layer.cpp.

References FIFE::CellCache::getCellCacheChangeListener(), m_cellCache, m_interacts, m_walkable, and removeChangeListener().

Referenced by ~Layer().

+ Here is the caller graph for this function:

std::vector< Instance * > FIFE::Layer::getBlockingInstances ( const ModelCoordinate cellCoordinate)

Returns instances that blocks on given cell.

Parameters
cellCoordinateA const reference to a model coordinate of the cell in question.
Returns
A vector that contains instances.

Definition at line 362 of file layer.cpp.

References FIFE::InstanceTree::findInstances(), FIFE::CellCache::getCell(), FIFE::Cell::getInstances(), m_cellCache, and m_instanceTree.

std::vector< Instance * > & FIFE::Layer::getChangedInstances ( )

Returns instances that were changed during previous update round.

Note
does not contain created or deleted instances

Definition at line 527 of file layer.cpp.

References m_changedInstances.

const std::string & FIFE::Layer::getId ( ) const

Get the id of this layer.

Definition at line 80 of file layer.cpp.

References m_id.

Referenced by FIFE::CellCache::addInteractOnRuntime(), FIFE::Camera::attach(), FIFE::Camera::renderStaticLayer(), and FIFE::MapSaver::save().

+ Here is the caller graph for this function:

Instance * FIFE::Layer::getInstance ( const std::string &  identifier)

Get the first instance on this layer with the given identifier.

Definition at line 240 of file layer.cpp.

References m_instances.

const std::vector< Instance * > & FIFE::Layer::getInstances ( ) const

Get the list of instances on this layer.

Definition at line 228 of file layer.cpp.

References m_instances.

Referenced by FIFE::LayerCache::reset().

+ Here is the caller graph for this function:

std::vector< Instance * > FIFE::Layer::getInstances ( const std::string &  id)

Get the list of instances on this layer with the given identifier.

Definition at line 250 of file layer.cpp.

References m_instances.

std::vector< Instance * > FIFE::Layer::getInstancesAt ( Location loc,
bool  use_exactcoordinates = false 
)

Returns instances that match given location.

Parameters
loclocation where to fetch instances from
use_exactcoordinatesif true, comparison is done using exact coordinates. if not, cell coordinates are used

Definition at line 260 of file layer.cpp.

References FIFE::Location::getExactLayerCoordinatesRef(), FIFE::Location::getLayerCoordinates(), and m_instances.

std::list< Instance * > FIFE::Layer::getInstancesIn ( Rect rec)

Returns instances that match given rect.

Parameters
recrect where to fetch instances from

Definition at line 279 of file layer.cpp.

References FIFE::InstanceTree::findInstances(), FIFE::RectType< T >::h, m_instanceTree, FIFE::RectType< T >::w, FIFE::RectType< T >::x, and FIFE::RectType< T >::y.

InstanceTree * FIFE::Layer::getInstanceTree ( void  ) const

Get the instance tree.

Returns
this layers instance tree.

Definition at line 100 of file layer.cpp.

References m_instanceTree.

Referenced by FIFE::CellCache::addInteractOnRuntime(), FIFE::CellCache::createCells(), FIFE::CellCache::removeInteractOnRuntime(), FIFE::QuadTreeRenderer::render(), FIFE::CellCache::resize(), and FIFE::Instance::setLocation().

+ Here is the caller graph for this function:

const std::vector< Layer * > & FIFE::Layer::getInteractLayers ( )

Returns all assigned interact layer.

Returns
A const reference to a vector with pointers to interact layers.

Definition at line 430 of file layer.cpp.

References m_interacts.

Referenced by FIFE::CellCache::calculateCurrentSize(), FIFE::CellCache::CellCache(), FIFE::CellCache::createCells(), FIFE::CellCache::resize(), and FIFE::CellCache::~CellCache().

+ Here is the caller graph for this function:

uint8_t FIFE::Layer::getLayerTransparency ( )

Returns the layer's transparency value.

Definition at line 330 of file layer.cpp.

References m_transparency.

Referenced by FIFE::LayerCache::updateVisual().

+ Here is the caller graph for this function:

Map * FIFE::Layer::getMap ( ) const
void FIFE::Layer::getMinMaxCoordinates ( ModelCoordinate min,
ModelCoordinate max,
const Layer layer = 0 
) const

Retrieves the minimum/maximum coordinates of instances on the layer.

Parameters
minA reference to a ModelCoordinate that will hold the minimum coordinate.
maxA reference to a ModelCoordinate that will hold the maximum coordinate.
layerA pointer to another layer that can be used to cast coordinates bettween layers.

Definition at line 287 of file layer.cpp.

References m_instances, FIFE::PointType3D< T >::x, and FIFE::PointType3D< T >::y.

Referenced by FIFE::CellCache::calculateCurrentSize(), and FIFE::CellCache::CellCache().

+ Here is the caller graph for this function:

PathingStrategy FIFE::Layer::getPathingStrategy ( ) const

Gets pathing strategy for the layer.

See Also
PathingStrategy

Definition at line 391 of file layer.cpp.

References m_pathingStrategy.

SortingStrategy FIFE::Layer::getSortingStrategy ( ) const

Gets sorting strategy for the layer.

See Also
SortingStrategy

Definition at line 399 of file layer.cpp.

References m_sortingStrategy.

Referenced by FIFE::LayerCache::sortRenderList().

+ Here is the caller graph for this function:

const std::string & FIFE::Layer::getWalkableId ( )

Returns the id of the walkable layer if this is a interact layer otherwise the string is empty.

Returns
A const reference to a string that refer to the id of the walkable layer.

Definition at line 420 of file layer.cpp.

References m_walkableId.

bool FIFE::Layer::hasInstances ( ) const

Check existance of objects on this layer.

Returns
True, if objects exist.

Definition at line 104 of file layer.cpp.

References m_instances.

bool FIFE::Layer::isChanged ( )

Returns true, if layer information was changed during previous update round.

Definition at line 523 of file layer.cpp.

References m_changed.

bool FIFE::Layer::isInteract ( )

Returns if a layer is interact.

Returns
A boolean, true if the layer is interact otherwise false.

Definition at line 416 of file layer.cpp.

References m_interact.

bool FIFE::Layer::isStatic ( )

Returns true, if layer is static.

Returns
A boolean, true if the layer is static, otherwise false.

Definition at line 535 of file layer.cpp.

References m_static.

bool FIFE::Layer::isWalkable ( )

Returns if a layer is walkable.

Returns
A boolean, true if the layer is walkable otherwise false.

Definition at line 407 of file layer.cpp.

References m_walkable.

void FIFE::Layer::removeChangeListener ( LayerChangeListener listener)

Removes associated change listener.

Parameters
listenerto remove

Definition at line 512 of file layer.cpp.

References m_changeListeners.

Referenced by destroyCellCache(), FIFE::LayerCache::setLayer(), FIFE::CellCache::~CellCache(), and FIFE::LayerCache::~LayerCache().

+ Here is the caller graph for this function:

void FIFE::Layer::removeInstance ( Instance instance)

Remove an instance from the layer.

Definition at line 158 of file layer.cpp.

References FIFE::ICHANGE_NO_CHANGES, FIFE::Instance::isActive(), m_changed, m_changeListeners, m_instances, m_instanceTree, FIFE::InstanceTree::removeInstance(), setInstanceActivityStatus(), and FIFE::Instance::update().

Referenced by FIFE::Map::update().

+ Here is the caller graph for this function:

void FIFE::Layer::removeInteractLayer ( Layer layer)

Removes a interact layer from the walkable layer.

Parameters
layerA pointer to the interact layer that should be removed.

Definition at line 434 of file layer.cpp.

References FIFE::CellCache::getCellCacheChangeListener(), m_cellCache, m_interacts, and m_walkable.

Referenced by FIFE::CellCache::removeInteractOnRuntime(), and ~Layer().

+ Here is the caller graph for this function:

void FIFE::Layer::setCellGrid ( CellGrid grid)

Set the Cellgrid.

Definition at line 96 of file layer.cpp.

References m_grid.

void FIFE::Layer::setId ( const std::string &  id)

Sets the identifier for this layer.

Definition at line 84 of file layer.cpp.

References m_id.

void FIFE::Layer::setInstanceActivityStatus ( Instance instance,
bool  active 
)

Sets the activity status for given instance on this layer.

Parameters
instanceA pointer to the Instance whose activity is to be changed.
activeA boolean, true if the instance should be set active otherwise false.

Definition at line 232 of file layer.cpp.

References m_activeInstances.

Referenced by addInstance(), createInstance(), deleteInstance(), FIFE::Instance::initializeChanges(), and removeInstance().

+ Here is the caller graph for this function:

void FIFE::Layer::setInstancesVisible ( bool  vis)

Set object visibility.

Definition at line 310 of file layer.cpp.

References m_instances, and m_instancesVisibility.

Referenced by toggleInstancesVisible().

+ Here is the caller graph for this function:

void FIFE::Layer::setInteract ( bool  interact,
const std::string &  id 
)

Sets interact for the layer.

The data(size, instances) from all interact layers and the walkable layer will merged into one CellCache.

Parameters
interactA boolean that mark a layer as interact.
idA const reference to a string that should refer to the id of the walkable layer.

Definition at line 411 of file layer.cpp.

References m_interact, and m_walkableId.

Referenced by FIFE::CellCache::addInteractOnRuntime(), FIFE::MapLoader::load(), and FIFE::CellCache::removeInteractOnRuntime().

+ Here is the caller graph for this function:

void FIFE::Layer::setLayerTransparency ( uint8_t  transparency)

Sets the transparency of all instances on the layer.

0=opaque, 255=transparent

Parameters
transparencyTransparency value from 0-255.

Definition at line 320 of file layer.cpp.

References m_instances, and m_transparency.

void FIFE::Layer::setPathingStrategy ( PathingStrategy  strategy)

Sets pathing strategy for the layer.

See Also
PathingStrategy

Definition at line 386 of file layer.cpp.

References FIFE::CELL_EDGES_ONLY, m_grid, m_pathingStrategy, and FIFE::CellGrid::setAllowDiagonals().

Referenced by FIFE::MapLoader::load().

+ Here is the caller graph for this function:

void FIFE::Layer::setSortingStrategy ( SortingStrategy  strategy)

Sets sorting strategy for the layer.

See Also
SortingStrategy

Definition at line 395 of file layer.cpp.

References m_sortingStrategy.

Referenced by FIFE::MapLoader::load().

+ Here is the caller graph for this function:

void FIFE::Layer::setStatic ( bool  stati)

Marks this layer as visual static.

The result is that everything is rendered as one texture. If you have instances with actions/animations on this layer then they are not displayed correctly. Note: Works currently only for OpenGL backend. SDL backend is restricted to the lowest layer.

Parameters
statiA boolean, true if the layer should be static.

Definition at line 531 of file layer.cpp.

References m_static.

void FIFE::Layer::setWalkable ( bool  walkable)

Sets walkable for the layer.

Only a walkable layer, can create a CellCache and only on a walkable, instances can move. Also interact layer can only be added to walkables.

Parameters
walkableA boolean that mark a layer as walkable.

Definition at line 403 of file layer.cpp.

References m_walkable.

Referenced by FIFE::MapLoader::load().

+ Here is the caller graph for this function:

void FIFE::Layer::toggleInstancesVisible ( )

Toggle object visibility.

See Also
setObjectsVisible

Definition at line 334 of file layer.cpp.

References m_instancesVisibility, and setInstancesVisible().

bool FIFE::Layer::update ( )

Called periodically to update events on layer.

Returns
true if layer was changed since the last update, false otherwise

Definition at line 474 of file layer.cpp.

References FIFE::ICHANGE_NO_CHANGES, m_activeInstances, m_changed, m_changedInstances, and m_changeListeners.

Member Data Documentation

std::set<Instance*> FIFE::Layer::m_activeInstances
protected

all the active instances on this layer

Definition at line 358 of file layer.h.

Referenced by setInstanceActivityStatus(), and update().

CellCache* FIFE::Layer::m_cellCache
protected
bool FIFE::Layer::m_changed
protected

true if layer (or it's instance) information was changed during previous update round

Definition at line 382 of file layer.h.

Referenced by addInstance(), createInstance(), deleteInstance(), isChanged(), removeInstance(), and update().

std::vector<Instance*> FIFE::Layer::m_changedInstances
protected

holds changed instances after each update

Definition at line 380 of file layer.h.

Referenced by getChangedInstances(), and update().

std::vector<LayerChangeListener*> FIFE::Layer::m_changeListeners
protected

listeners for layer changes

Definition at line 378 of file layer.h.

Referenced by addChangeListener(), addInstance(), createInstance(), deleteInstance(), removeChangeListener(), removeInstance(), and update().

CellGrid* FIFE::Layer::m_grid
protected

layer's cellgrid

Definition at line 362 of file layer.h.

Referenced by getCellGrid(), setCellGrid(), and setPathingStrategy().

std::string FIFE::Layer::m_id
protected

string identifier

Definition at line 348 of file layer.h.

Referenced by getId(), and setId().

std::vector<Instance*> FIFE::Layer::m_instances
protected
bool FIFE::Layer::m_instancesVisibility
protected

if true the instances are visibility otherwise they are skipped during rendering

Definition at line 352 of file layer.h.

Referenced by areInstancesVisible(), setInstancesVisible(), and toggleInstancesVisible().

InstanceTree* FIFE::Layer::m_instanceTree
protected
bool FIFE::Layer::m_interact
protected

is interact true/false

Definition at line 370 of file layer.h.

Referenced by isInteract(), setInteract(), and ~Layer().

std::vector<Layer*> FIFE::Layer::m_interacts
protected

all assigned interact layers

Definition at line 374 of file layer.h.

Referenced by addInteractLayer(), destroyCellCache(), getInteractLayers(), and removeInteractLayer().

Map* FIFE::Layer::m_map
protected

pointer to map

Definition at line 350 of file layer.h.

Referenced by getMap(), and ~Layer().

PathingStrategy FIFE::Layer::m_pathingStrategy
protected

pathing strategy for the layer

Definition at line 364 of file layer.h.

Referenced by getPathingStrategy(), and setPathingStrategy().

SortingStrategy FIFE::Layer::m_sortingStrategy
protected

sorting strategy for rendering

Definition at line 366 of file layer.h.

Referenced by getSortingStrategy(), and setSortingStrategy().

bool FIFE::Layer::m_static
protected

true if layer is static

Definition at line 384 of file layer.h.

Referenced by isStatic(), and setStatic().

uint8_t FIFE::Layer::m_transparency
protected

transparency, value 0 means total visible, 128 semi-transparent and 255 invisibility

Definition at line 354 of file layer.h.

Referenced by getLayerTransparency(), and setLayerTransparency().

bool FIFE::Layer::m_walkable
protected

is walkable true/false

Definition at line 368 of file layer.h.

Referenced by addInteractLayer(), createCellCache(), destroyCellCache(), isWalkable(), removeInteractLayer(), and setWalkable().

std::string FIFE::Layer::m_walkableId
protected

walkable id

Definition at line 372 of file layer.h.

Referenced by getWalkableId(), setInteract(), and ~Layer().


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