|
FIFE
|
A basic cell on a CellCache. More...
#include <cell.h>
Inheritance diagram for FIFE::Cell:
Collaboration diagram for FIFE::Cell:Public Member Functions | |
| Cell (int32_t coordint, ModelCoordinate coordinate, Layer *layer) | |
| Constructor. More... | |
| ~Cell () | |
| Destructor. More... | |
| void | addInstances (const std::list< Instance * > &instances) |
| Adds instances to this cell. More... | |
| void | addInstance (Instance *instance) |
| Adds a instance to this cell. More... | |
| void | changeInstance (Instance *instance) |
| Changes a instance on this cell. More... | |
| void | removeInstance (Instance *instance) |
| Removes a instance from this cell. More... | |
| bool | isNeighbor (Cell *cell) |
| Called to check if given cell is a neighbor. More... | |
| void | updateCellInfo () |
| Called to update cell data. More... | |
| bool | defaultCost () |
| Returns if cell use default cost. More... | |
| void | setCostMultiplier (double multi) |
| Changes the cell cost. More... | |
| double | getCostMultiplier () |
| Returns the current cell cost. More... | |
| void | resetCostMultiplier () |
| Resets the cell cost to default, 1.0. More... | |
| bool | defaultSpeed () |
| Returns if cell use default speed. More... | |
| void | setSpeedMultiplier (double multi) |
| Changes the cell speed. More... | |
| double | getSpeedMultiplier () |
| Returns the current cell speed. More... | |
| void | resetSpeedMultiplier () |
| Resets the cell speed to default, 1.0. More... | |
| Zone * | getZone () |
| Returns zone. More... | |
| void | setZone (Zone *zone) |
| Sets zone. More... | |
| void | resetZone () |
| Resets zone. More... | |
| bool | isInserted () |
| Returns whether the cell is part of a zone. More... | |
| void | setInserted (bool inserted) |
| Mark cell as inserted. More... | |
| bool | isZoneProtected () |
| Returns whether the zone on this cell is protected. More... | |
| void | setZoneProtected (bool protect) |
| Mark zone on this cell as protected. More... | |
| CellTypeInfo | getCellType () |
| Returns blocker type. More... | |
| void | setCellType (CellTypeInfo type) |
| Sets blocker type. More... | |
| const std::set< Instance * > & | getInstances () |
| Returns all instances on this cell. More... | |
| void | setCellId (int32_t id) |
| Sets the cell identifier. More... | |
| int32_t | getCellId () |
| Returns the cell identifier. More... | |
| const ModelCoordinate | getLayerCoordinates () const |
| Returns the layer coordinates of this cell. More... | |
| void | addNeighbor (Cell *cell) |
| Adds a neighbor cell to this cell. More... | |
| const std::vector< Cell * > & | getNeighbors () |
| Returns the layer coordinates of this cell. More... | |
| void | resetNeighbors () |
| Removes all neighbors from cell. More... | |
| Layer * | getLayer () |
| Returns the current layer. More... | |
| void | createTransition (Layer *layer, const ModelCoordinate &mc, bool immediate=false) |
| Creates a transistion from this cell to the given layer and coordinates. More... | |
| void | deleteTransition () |
| Removes the transistion from Cell and CellCache. More... | |
| TransitionInfo * | getTransition () |
| Returns the transition. More... | |
| void | setFoWType (CellVisualEffect type) |
| Sets the cell visual. More... | |
| CellVisualEffect | getFoWType () |
| Returns the cell visual. More... | |
| void | addVisitorInstance (Instance *instance) |
| Adds a instance as visitor to this cell. More... | |
| void | removeVisitorInstance (Instance *instance) |
| Removes the visitor instance from this cell. More... | |
| const std::vector< Instance * > & | getVisitorInstances () |
| Returns all visitor instances on this cell. More... | |
| void | addDeleteListener (CellDeleteListener *listener) |
| Adds new cell delete listener. More... | |
| void | removeDeleteListener (CellDeleteListener *listener) |
| Removes cell delete listener. More... | |
| void | onCellDeleted (Cell *cell) |
| Called when a cell gets deleted on this cell. More... | |
| void | addChangeListener (CellChangeListener *listener) |
| Adds new cell change listener. More... | |
| void | removeChangeListener (CellChangeListener *listener) |
| Removes cell change listener. More... | |
| void | callOnInstanceEntered (Instance *instance) |
| Called when a instance entered this cell. More... | |
| void | callOnInstanceExited (Instance *instance) |
| Called when a instance exited this cell. More... | |
| void | callOnBlockingChanged (bool blocks) |
| Called when the blocking property of this cell changed. More... | |
Public Member Functions inherited from FIFE::FifeClass | |
| FifeClass () | |
| virtual | ~FifeClass () |
| fifeid_t | getFifeId () |
| Gets unique id of this instance inside the engine. More... | |
Public Member Functions inherited from FIFE::CellDeleteListener | |
| virtual | ~CellDeleteListener () |
Private Member Functions | |
| void | updateCellBlockingInfo () |
| void | updateCellFowInfo () |
Private Attributes | |
| int32_t | m_coordId |
| holds coordinate as a unique integer id More... | |
| ModelCoordinate | m_coordinate |
| holds coordinate More... | |
| Layer * | m_layer |
| parent layer More... | |
| Zone * | m_zone |
| parent Zone More... | |
| TransitionInfo * | m_transition |
| Pointer to Transistion. More... | |
| bool | m_inserted |
| already inserted More... | |
| bool | m_protect |
| protected More... | |
| CellTypeInfo | m_type |
| CellType. More... | |
| CellVisualEffect | m_fowType |
| visual cell status More... | |
| std::set< Instance * > | m_instances |
| std::vector< Instance * > | m_visitors |
| contains visitor instances More... | |
| std::vector< Cell * > | m_neighbors |
| neighbor cells More... | |
| std::vector< CellDeleteListener * > | m_deleteListeners |
| delete listener More... | |
| std::vector< CellChangeListener * > | m_changeListeners |
| change listener More... | |
| FIFE::Cell::Cell | ( | int32_t | coordint, |
| ModelCoordinate | coordinate, | ||
| Layer * | layer | ||
| ) |
| FIFE::Cell::~Cell | ( | ) |
Destructor.
Definition at line 54 of file cell.cpp.
References deleteTransition(), FIFE::Layer::getCellCache(), m_deleteListeners, m_layer, m_transition, m_zone, FIFE::Zone::removeCell(), and FIFE::CellCache::removeCell().
| void FIFE::Cell::addChangeListener | ( | CellChangeListener * | listener | ) |
Adds new cell change listener.
| listener | A pointer to the listener. |
Definition at line 613 of file cell.cpp.
References m_changeListeners.
Referenced by FIFE::CellCache::addNarrowCell(), and FIFE::Trigger::assign().
Here is the caller graph for this function:| void FIFE::Cell::addDeleteListener | ( | CellDeleteListener * | listener | ) |
Adds new cell delete listener.
| listener | A pointer to the listener. |
Definition at line 589 of file cell.cpp.
References m_deleteListeners.
Referenced by createTransition().
Here is the caller graph for this function:| void FIFE::Cell::addInstance | ( | Instance * | instance | ) |
Adds a instance to this cell.
| instance | A pointer to the instance. |
Definition at line 138 of file cell.cpp.
References FIFE::CellCache::addCellToArea(), FIFE::CellCache::addCellToCost(), callOnInstanceEntered(), FIFE::CELLV_MASKED, FIFE::CELLV_REVEALED, FIFE::Object::getArea(), FIFE::Layer::getCellCache(), FIFE::CellCache::getCellsInCircle(), FIFE::CellCache::getCellsInRect(), FIFE::Instance::getCost(), FIFE::Instance::getCostId(), FIFE::Instance::getObject(), FIFE::Instance::getSpeed(), FIFE::Instance::getVisitorRadius(), FIFE::Instance::getVisitorShape(), FIFE::RectType< T >::h, FIFE::Instance::isSpecialCost(), FIFE::Instance::isSpecialSpeed(), FIFE::Instance::isVisitor(), FIFE::ITYPE_CIRCLE_SHAPE, FIFE::ITYPE_QUAD_SHAPE, m_coordinate, m_instances, m_layer, FIFE::CellCache::registerCost(), FIFE::CellCache::setFowUpdate(), FIFE::CellCache::setSpeedMultiplier(), updateCellBlockingInfo(), FIFE::RectType< T >::w, FIFE::RectType< T >::x, FIFE::PointType3D< T >::x, FIFE::RectType< T >::y, and FIFE::PointType3D< T >::y.
Referenced by FIFE::CellCacheChangeListener::onInstanceCreate(), and FIFE::CellCacheChangeListener::onLayerChanged().
Here is the caller graph for this function:| void FIFE::Cell::addInstances | ( | const std::list< Instance * > & | instances | ) |
Adds instances to this cell.
| instances | A const reference to list that contains instances. |
Definition at line 76 of file cell.cpp.
References FIFE::CellCache::addCellToArea(), FIFE::CellCache::addCellToCost(), callOnInstanceEntered(), FIFE::CELLV_MASKED, FIFE::CELLV_REVEALED, FIFE::Layer::getCellCache(), FIFE::CellCache::getCellsInCircle(), FIFE::CellCache::getCellsInRect(), FIFE::RectType< T >::h, FIFE::ITYPE_CIRCLE_SHAPE, FIFE::ITYPE_QUAD_SHAPE, m_coordinate, m_instances, m_layer, FIFE::CellCache::registerCost(), FIFE::CellCache::setFowUpdate(), FIFE::CellCache::setSpeedMultiplier(), updateCellBlockingInfo(), FIFE::RectType< T >::w, FIFE::RectType< T >::x, FIFE::PointType3D< T >::x, FIFE::RectType< T >::y, and FIFE::PointType3D< T >::y.
Referenced by FIFE::CellCache::addInteractOnRuntime(), FIFE::CellCache::createCells(), and FIFE::CellCache::resize().
Here is the caller graph for this function:| void FIFE::Cell::addNeighbor | ( | Cell * | cell | ) |
Adds a neighbor cell to this cell.
| cell | A pointer to the cell that should added as neighbor. |
Definition at line 519 of file cell.cpp.
References m_neighbors.
| void FIFE::Cell::addVisitorInstance | ( | Instance * | instance | ) |
Adds a instance as visitor to this cell.
Instance visitor radius is then used e.g. for Fog of War.
| instance | A pointer to the instance. |
Definition at line 406 of file cell.cpp.
References m_visitors.
| void FIFE::Cell::callOnBlockingChanged | ( | bool | blocks | ) |
Called when the blocking property of this cell changed.
| block | A boolean, true mark the cell as blocker. |
Definition at line 655 of file cell.cpp.
References m_changeListeners, and m_type.
Referenced by updateCellBlockingInfo().
Here is the caller graph for this function:| void FIFE::Cell::callOnInstanceEntered | ( | Instance * | instance | ) |
Called when a instance entered this cell.
| instance | A pointer to the instance which will be entered. |
Definition at line 627 of file cell.cpp.
References m_changeListeners.
Referenced by addInstance(), and addInstances().
Here is the caller graph for this function:| void FIFE::Cell::callOnInstanceExited | ( | Instance * | instance | ) |
Called when a instance exited this cell.
| instance | A pointer to the instance which will be exited. |
Definition at line 641 of file cell.cpp.
References m_changeListeners.
Referenced by removeInstance().
Here is the caller graph for this function:| void FIFE::Cell::changeInstance | ( | Instance * | instance | ) |
Changes a instance on this cell.
| instance | A pointer to the instance. |
Definition at line 198 of file cell.cpp.
References updateCellBlockingInfo().
Referenced by FIFE::CellCacheChangeListener::onLayerChanged().
Here is the caller graph for this function:| void FIFE::Cell::createTransition | ( | Layer * | layer, |
| const ModelCoordinate & | mc, | ||
| bool | immediate = false |
||
| ) |
Creates a transistion from this cell to the given layer and coordinates.
| layer | A pointer to the layer whereto the transition takes. |
| mc | A const reference to a ModelCoordinate whereto the transition takes. |
| immediate | A boolean, true means the transition is always used, if false the transistion is only used if it is a part of the path e.g. as an abbreviation. |
Definition at line 544 of file cell.cpp.
References addDeleteListener(), FIFE::CellCache::addTransition(), deleteTransition(), FIFE::CellCache::getCell(), FIFE::Layer::getCellCache(), FIFE::TransitionInfo::m_difflayer, FIFE::TransitionInfo::m_immediate, m_layer, FIFE::TransitionInfo::m_mc, m_neighbors, and m_transition.
Referenced by FIFE::MapLoader::load().
Here is the caller graph for this function:| bool FIFE::Cell::defaultCost | ( | ) |
Returns if cell use default cost.
Definition at line 434 of file cell.cpp.
References FIFE::Layer::getCellCache(), FIFE::CellCache::isDefaultCost(), and m_layer.
Referenced by FIFE::CellCache::getAdjacentCost(), and FIFE::MapSaver::save().
Here is the caller graph for this function:| bool FIFE::Cell::defaultSpeed | ( | ) |
Returns if cell use default speed.
Definition at line 450 of file cell.cpp.
References FIFE::Layer::getCellCache(), FIFE::CellCache::isDefaultSpeed(), and m_layer.
Referenced by FIFE::CellCache::getCellSpeedMultiplier(), and FIFE::MapSaver::save().
Here is the caller graph for this function:| void FIFE::Cell::deleteTransition | ( | ) |
Removes the transistion from Cell and CellCache.
Definition at line 568 of file cell.cpp.
References FIFE::CellCache::getCell(), FIFE::Layer::getCellCache(), FIFE::TransitionInfo::m_layer, m_layer, FIFE::TransitionInfo::m_mc, m_neighbors, m_transition, removeDeleteListener(), and FIFE::CellCache::removeTransition().
Referenced by createTransition(), onCellDeleted(), and ~Cell().
Here is the caller graph for this function:| int32_t FIFE::Cell::getCellId | ( | ) |
| CellTypeInfo FIFE::Cell::getCellType | ( | ) |
Returns blocker type.
Definition at line 495 of file cell.cpp.
References m_type.
Referenced by FIFE::Layer::cellContainsBlockingInstance(), FIFE::CellCache::createCells(), FIFE::CellCache::getCellsInLine(), FIFE::MapSaver::save(), FIFE::CellCache::splitZone(), FIFE::SingleLayerSearch::updateSearch(), and FIFE::MultiLayerSearch::updateSearch().
Here is the caller graph for this function:| double FIFE::Cell::getCostMultiplier | ( | ) |
Returns the current cell cost.
Definition at line 442 of file cell.cpp.
References FIFE::Layer::getCellCache(), FIFE::CellCache::getCostMultiplier(), and m_layer.
Referenced by FIFE::CellCache::getAdjacentCost(), and FIFE::MapSaver::save().
Here is the caller graph for this function:| CellVisualEffect FIFE::Cell::getFoWType | ( | ) |
Returns the cell visual.
Definition at line 402 of file cell.cpp.
References m_fowType.
Referenced by FIFE::InstanceRenderer::renderAlreadySorted(), FIFE::InstanceRenderer::renderUnsorted(), and FIFE::MapSaver::save().
Here is the caller graph for this function:| const std::set< Instance * > & FIFE::Cell::getInstances | ( | ) |
Returns all instances on this cell.
Definition at line 503 of file cell.cpp.
References m_instances.
Referenced by FIFE::Layer::getBlockingInstances(), and FIFE::MapSaver::save().
Here is the caller graph for this function:| Layer * FIFE::Cell::getLayer | ( | ) |
Returns the current layer.
Definition at line 540 of file cell.cpp.
References m_layer.
Referenced by FIFE::RoutePather::followRoute(), FIFE::MultiLayerSearch::searchBetweenTargetsMap(), FIFE::SingleLayerSearch::updateSearch(), and FIFE::MultiLayerSearch::updateSearch().
Here is the caller graph for this function:| const ModelCoordinate FIFE::Cell::getLayerCoordinates | ( | ) | const |
Returns the layer coordinates of this cell.
Definition at line 515 of file cell.cpp.
References m_coordinate.
Referenced by FIFE::CellCache::addCell(), FIFE::RoutePather::followRoute(), FIFE::CellCache::resize(), FIFE::MapSaver::save(), FIFE::MultiLayerSearch::searchBetweenTargetsMap(), FIFE::SingleLayerSearch::updateSearch(), and FIFE::MultiLayerSearch::updateSearch().
Here is the caller graph for this function:| const std::vector< Cell * > & FIFE::Cell::getNeighbors | ( | ) |
Returns the layer coordinates of this cell.
Definition at line 523 of file cell.cpp.
References m_neighbors.
Referenced by FIFE::CellCache::createCells(), FIFE::MultiLayerSearch::MultiLayerSearch(), FIFE::ZoneCellChangeListener::onBlockingChangedCell(), FIFE::RoutePather::solveRoute(), FIFE::CellCache::splitZone(), FIFE::SingleLayerSearch::updateSearch(), and FIFE::MultiLayerSearch::updateSearch().
Here is the caller graph for this function:| double FIFE::Cell::getSpeedMultiplier | ( | ) |
Returns the current cell speed.
Definition at line 458 of file cell.cpp.
References FIFE::Layer::getCellCache(), FIFE::CellCache::getSpeedMultiplier(), and m_layer.
Referenced by FIFE::CellCache::getCellSpeedMultiplier(), and FIFE::MapSaver::save().
Here is the caller graph for this function:| TransitionInfo * FIFE::Cell::getTransition | ( | ) |
Returns the transition.
Definition at line 585 of file cell.cpp.
References m_transition.
Referenced by FIFE::RoutePather::followRoute(), FIFE::MapSaver::save(), FIFE::MultiLayerSearch::searchBetweenTargetsMap(), and FIFE::MultiLayerSearch::searchBetweenTargetsNeighbor().
Here is the caller graph for this function:| const std::vector< Instance * > & FIFE::Cell::getVisitorInstances | ( | ) |
Returns all visitor instances on this cell.
Definition at line 430 of file cell.cpp.
References m_visitors.
| Zone * FIFE::Cell::getZone | ( | ) |
Returns zone.
Definition at line 466 of file cell.cpp.
References m_zone.
Referenced by FIFE::Zone::addCell(), FIFE::CellCache::createCells(), FIFE::ZoneCellChangeListener::onBlockingChangedCell(), FIFE::MultiLayerSearch::searchBetweenTargetsMap(), FIFE::MultiLayerSearch::searchBetweenTargetsNeighbor(), FIFE::RoutePather::solveRoute(), and FIFE::CellCache::splitZone().
Here is the caller graph for this function:| bool FIFE::Cell::isInserted | ( | ) |
Returns whether the cell is part of a zone.
Definition at line 479 of file cell.cpp.
References m_inserted.
Referenced by FIFE::CellCache::createCells(), and FIFE::CellCache::splitZone().
Here is the caller graph for this function:| bool FIFE::Cell::isNeighbor | ( | Cell * | cell | ) |
Called to check if given cell is a neighbor.
| cell | A pointer to cell. |
Definition at line 260 of file cell.cpp.
References m_neighbors.
| bool FIFE::Cell::isZoneProtected | ( | ) |
Returns whether the zone on this cell is protected.
Definition at line 487 of file cell.cpp.
References m_protect.
Referenced by FIFE::MultiLayerSearch::MultiLayerSearch(), FIFE::RoutePather::solveRoute(), and FIFE::CellCache::splitZone().
Here is the caller graph for this function:
|
virtual |
Called when a cell gets deleted on this cell.
If a delete listener was added.
| cell | A pointer to the cell which will be deleted. |
Implements FIFE::CellDeleteListener.
Definition at line 603 of file cell.cpp.
References deleteTransition(), and m_neighbors.
| void FIFE::Cell::removeChangeListener | ( | CellChangeListener * | listener | ) |
Removes cell change listener.
| listener | A pointer to the listener. |
Definition at line 617 of file cell.cpp.
References m_changeListeners.
Referenced by FIFE::Trigger::remove().
Here is the caller graph for this function:| void FIFE::Cell::removeDeleteListener | ( | CellDeleteListener * | listener | ) |
Removes cell delete listener.
| listener | A pointer to the listener. |
Definition at line 593 of file cell.cpp.
References m_deleteListeners.
Referenced by deleteTransition().
Here is the caller graph for this function:| void FIFE::Cell::removeInstance | ( | Instance * | instance | ) |
Removes a instance from this cell.
| instance | A pointer to the instance. |
Definition at line 202 of file cell.cpp.
References FIFE::_log, callOnInstanceExited(), FIFE::CELLV_MASKED, FIFE::CELLV_REVEALED, FL_ERR, FIFE::Object::getArea(), FIFE::Layer::getCellCache(), FIFE::CellCache::getCellsInCircle(), FIFE::CellCache::getCellsInRect(), FIFE::Instance::getCostId(), FIFE::Instance::getObject(), FIFE::Instance::getVisitorRadius(), FIFE::Instance::getVisitorShape(), FIFE::Instance::isSpecialCost(), FIFE::Instance::isSpecialSpeed(), FIFE::Instance::isVisitor(), FIFE::ITYPE_CIRCLE_SHAPE, FIFE::ITYPE_QUAD_SHAPE, m_coordinate, m_instances, m_layer, FIFE::CellCache::removeCellFromArea(), FIFE::CellCache::removeCellFromCost(), FIFE::CellCache::resetSpeedMultiplier(), FIFE::CellCache::setFowUpdate(), FIFE::CellCache::setSpeedMultiplier(), updateCellBlockingInfo(), FIFE::PointType3D< T >::x, and FIFE::PointType3D< T >::y.
Referenced by FIFE::CellCacheChangeListener::onInstanceDelete(), FIFE::CellCacheChangeListener::onLayerChanged(), and FIFE::CellCache::removeInteractOnRuntime().
Here is the caller graph for this function:| void FIFE::Cell::removeVisitorInstance | ( | Instance * | instance | ) |
Removes the visitor instance from this cell.
| instance | A pointer to the instance. |
Definition at line 420 of file cell.cpp.
References m_visitors.
| void FIFE::Cell::resetCostMultiplier | ( | ) |
Resets the cell cost to default, 1.0.
Definition at line 446 of file cell.cpp.
References FIFE::Layer::getCellCache(), m_layer, and FIFE::CellCache::resetCostMultiplier().
| void FIFE::Cell::resetNeighbors | ( | ) |
Removes all neighbors from cell.
Definition at line 527 of file cell.cpp.
References FIFE::CellCache::getCell(), FIFE::Layer::getCellCache(), FIFE::TransitionInfo::m_layer, FIFE::TransitionInfo::m_mc, m_neighbors, and m_transition.
Referenced by FIFE::CellCache::resize().
Here is the caller graph for this function:| void FIFE::Cell::resetSpeedMultiplier | ( | ) |
Resets the cell speed to default, 1.0.
Definition at line 462 of file cell.cpp.
References FIFE::Layer::getCellCache(), m_layer, and FIFE::CellCache::resetSpeedMultiplier().
| void FIFE::Cell::resetZone | ( | ) |
Resets zone.
Zone pointer is NULL and isInserted() returns false.
Definition at line 474 of file cell.cpp.
References m_inserted, and m_zone.
| void FIFE::Cell::setCellId | ( | int32_t | id | ) |
Sets the cell identifier.
| id | A unique int value that is used as identifier. Based on the cell position. |
Definition at line 507 of file cell.cpp.
References m_coordId.
Referenced by FIFE::CellCache::resize().
Here is the caller graph for this function:| void FIFE::Cell::setCellType | ( | CellTypeInfo | type | ) |
Sets blocker type.
Definition at line 499 of file cell.cpp.
References m_type.
Referenced by FIFE::MapLoader::load().
Here is the caller graph for this function:| void FIFE::Cell::setCostMultiplier | ( | double | multi | ) |
Changes the cell cost.
| multi | A double its value is used instead of the default cost. |
Definition at line 438 of file cell.cpp.
References FIFE::Layer::getCellCache(), m_layer, and FIFE::CellCache::setCostMultiplier().
Referenced by FIFE::MapLoader::load().
Here is the caller graph for this function:| void FIFE::Cell::setFoWType | ( | CellVisualEffect | type | ) |
Sets the cell visual.
Definition at line 398 of file cell.cpp.
References m_fowType.
Referenced by FIFE::MapLoader::load().
Here is the caller graph for this function:| void FIFE::Cell::setInserted | ( | bool | inserted | ) |
Mark cell as inserted.
| inserted | A boolean, true marks the cell as inserted, false as not inserted. |
Definition at line 483 of file cell.cpp.
References m_inserted.
Referenced by FIFE::CellCache::createCells(), and FIFE::CellCache::splitZone().
Here is the caller graph for this function:| void FIFE::Cell::setSpeedMultiplier | ( | double | multi | ) |
Changes the cell speed.
| multi | A double its value is used instead of the default speed. |
Definition at line 454 of file cell.cpp.
References FIFE::Layer::getCellCache(), m_layer, and FIFE::CellCache::setSpeedMultiplier().
Referenced by FIFE::MapLoader::load().
Here is the caller graph for this function:| void FIFE::Cell::setZone | ( | Zone * | zone | ) |
Sets zone.
| zone | A pointer to the zone. |
Definition at line 470 of file cell.cpp.
References m_zone.
Referenced by FIFE::Zone::addCell().
Here is the caller graph for this function:| void FIFE::Cell::setZoneProtected | ( | bool | protect | ) |
Mark zone on this cell as protected.
| protect | A boolean, true marks the cell as inserted. |
Definition at line 491 of file cell.cpp.
References m_protect.
Referenced by FIFE::ZoneCellChangeListener::onBlockingChangedCell().
Here is the caller graph for this function:
|
private |
Definition at line 270 of file cell.cpp.
References callOnBlockingChanged(), FIFE::CTYPE_CELL_BLOCKER, FIFE::CTYPE_CELL_NO_BLOCKER, FIFE::CTYPE_DYNAMIC_BLOCKER, FIFE::CTYPE_NO_BLOCKER, FIFE::CTYPE_STATIC_BLOCKER, FIFE::Math< T >::Equal(), FIFE::Layer::getCellCache(), m_coordinate, m_instances, m_layer, m_type, FIFE::MIN_CELL_Z, FIFE::CellCache::setBlockingUpdate(), and FIFE::PointType3D< T >::z.
Referenced by addInstance(), addInstances(), changeInstance(), removeInstance(), and updateCellInfo().
Here is the caller graph for this function:
|
private |
Definition at line 327 of file cell.cpp.
References FIFE::CELLV_MASKED, FIFE::CELLV_REVEALED, FIFE::Layer::getCellCache(), FIFE::CellCache::getCellsInCircle(), FIFE::CellCache::getCellsInRect(), FIFE::RectType< T >::h, FIFE::ITYPE_CIRCLE_SHAPE, FIFE::ITYPE_QUAD_SHAPE, m_coordinate, m_fowType, m_instances, m_layer, m_visitors, FIFE::RectType< T >::w, FIFE::RectType< T >::x, FIFE::PointType3D< T >::x, FIFE::RectType< T >::y, and FIFE::PointType3D< T >::y.
Referenced by updateCellInfo().
Here is the caller graph for this function:| void FIFE::Cell::updateCellInfo | ( | ) |
Called to update cell data.
Definition at line 382 of file cell.cpp.
References m_changeListeners, m_deleteListeners, updateCellBlockingInfo(), and updateCellFowInfo().
|
private |
change listener
Definition at line 435 of file cell.h.
Referenced by addChangeListener(), callOnBlockingChanged(), callOnInstanceEntered(), callOnInstanceExited(), removeChangeListener(), and updateCellInfo().
|
private |
holds coordinate as a unique integer id
Definition at line 396 of file cell.h.
Referenced by getCellId(), and setCellId().
|
private |
holds coordinate
Definition at line 399 of file cell.h.
Referenced by addInstance(), addInstances(), getLayerCoordinates(), removeInstance(), updateCellBlockingInfo(), and updateCellFowInfo().
|
private |
delete listener
Definition at line 432 of file cell.h.
Referenced by addDeleteListener(), removeDeleteListener(), updateCellInfo(), and ~Cell().
|
private |
visual cell status
Definition at line 420 of file cell.h.
Referenced by getFoWType(), setFoWType(), and updateCellFowInfo().
|
private |
already inserted
Definition at line 411 of file cell.h.
Referenced by isInserted(), resetZone(), and setInserted().
|
private |
Definition at line 423 of file cell.h.
Referenced by addInstance(), addInstances(), getInstances(), removeInstance(), updateCellBlockingInfo(), and updateCellFowInfo().
|
private |
parent layer
Definition at line 402 of file cell.h.
Referenced by addInstance(), addInstances(), createTransition(), defaultCost(), defaultSpeed(), deleteTransition(), getCostMultiplier(), getLayer(), getSpeedMultiplier(), removeInstance(), resetCostMultiplier(), resetSpeedMultiplier(), setCostMultiplier(), setSpeedMultiplier(), updateCellBlockingInfo(), updateCellFowInfo(), and ~Cell().
|
private |
neighbor cells
Definition at line 429 of file cell.h.
Referenced by addNeighbor(), createTransition(), deleteTransition(), getNeighbors(), isNeighbor(), onCellDeleted(), and resetNeighbors().
|
private |
protected
Definition at line 414 of file cell.h.
Referenced by isZoneProtected(), and setZoneProtected().
|
private |
Pointer to Transistion.
Definition at line 408 of file cell.h.
Referenced by createTransition(), deleteTransition(), getTransition(), resetNeighbors(), and ~Cell().
|
private |
CellType.
Definition at line 417 of file cell.h.
Referenced by callOnBlockingChanged(), getCellType(), setCellType(), and updateCellBlockingInfo().
|
private |
contains visitor instances
Definition at line 426 of file cell.h.
Referenced by addVisitorInstance(), getVisitorInstances(), removeVisitorInstance(), and updateCellFowInfo().
|
private |