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

Method changeDoorState

source/traps/TrapDoor.cpp:372–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

370}
371
372void TrapDoor::changeDoorState(DoorEntity* doorEntity, Tile* tile, bool locked)
373{
374 if(locked)
375 doorEntity->setAnimationState(ANIMATION_CLOSE, false, Ogre::Vector3::ZERO, false);
376 else
377 doorEntity->setAnimationState(ANIMATION_OPEN, false, Ogre::Vector3::ZERO, false);
378
379 if(!isActivated(tile))
380 return;
381
382 getGameMap()->doorLock(tile, getSeat(), locked);
383}
384
385bool TrapDoor::canDoorBeOnTile(GameMap* gameMap, Tile* tile)
386{

Callers

nothing calls this directly

Calls 2

doorLockMethod · 0.80
setAnimationStateMethod · 0.45

Tested by

no test coverage detected