findExit

fun findExit(direction: Direction, includeInvisibleExits: Boolean = false): Exit?

Find the Exit in the specified direction. If includeInvisibleExits is set true then exits which are not player visible will be included. If an exits cannot be found then null is returned.