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

Method getTrapEntity

source/traps/TrapSpike.cpp:151–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151TrapEntity* TrapSpike::getTrapEntity(Tile* tile)
152{
153 return new TrapEntity(getGameMap(), *this, reg.getTrapFactory()->getMeshName(), tile, 0.0, true, isActivated(tile) ? 1.0f : 0.7f);
154}

Callers

nothing calls this directly

Calls 1

getTrapFactoryMethod · 0.80

Tested by

no test coverage detected