public bool GetIsLocked(DIRECTION side) { switch (side) { case DIRECTION.LEFT: return(leftDoor.GetIsLocked()); case DIRECTION.RIGHT: return(rightDoor.GetIsLocked()); case DIRECTION.UP: return(upDoor.GetIsLocked()); case DIRECTION.DOWN: return(downDoor.GetIsLocked()); } return(false); }