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

Method notifyDoorSlapped

source/traps/TrapDoor.cpp:364–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364void TrapDoor::notifyDoorSlapped(DoorEntity* doorEntity, Tile* tile)
365{
366 mIsLocked = !mIsLocked;
367 changeDoorState(doorEntity, tile, mIsLocked);
368
369 mIsLockedState = mIsLocked;
370}
371
372void TrapDoor::changeDoorState(DoorEntity* doorEntity, Tile* tile, bool locked)
373{

Callers 1

slapMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected