inUnexpectedNewRoom

open fun inUnexpectedNewRoom(previousRoom: N, expectedNewRoom: N, actualNewRoom: N)(source)

Called when the node ends up in an unexpected room while moving. By default, unexpected rooms are treated the same as expected ones.

Parameters

previousRoom

the room the node was in before moving.

expectedNewRoom

the room the node was expected to enter.

actualNewRoom

the room the node actually entered.