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

Method isActivated

source/traps/Trap.cpp:279–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277}
278
279bool Trap::isActivated(Tile* tile) const
280{
281 std::map<Tile*, TileData*>::const_iterator it = mTileData.find(tile);
282 if (it == mTileData.end())
283 return false;
284
285 TrapTileData* trapTileData = static_cast<TrapTileData*>(it->second);
286 return trapTileData->isActivated();
287}
288
289void Trap::setupTrap(const std::string& name, Seat* seat, const std::vector<Tile*>& tiles)
290{

Callers 7

permitsVisionMethod · 0.45
getCreatureSpeedMethod · 0.45
doUpkeepMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected