MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / permitsVision

Method permitsVision

source/traps/TrapDoor.cpp:414–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414bool TrapDoor::permitsVision(Tile* tile)
415{
416 TrapTileData* trapTileData = static_cast<TrapTileData*>(mTileData.at(tile));
417 if (!trapTileData->isActivated())
418 return true;
419
420 return !mIsLockedState;
421}
422
423double TrapDoor::getCreatureSpeed(const Creature* creature, Tile* tile) const
424{

Callers

nothing calls this directly

Calls 1

isActivatedMethod · 0.45

Tested by

no test coverage detected