| 370 | } |
| 371 | |
| 372 | void 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 | |
| 385 | bool TrapDoor::canDoorBeOnTile(GameMap* gameMap, Tile* tile) |
| 386 | { |
nothing calls this directly
no test coverage detected