setDestination

fun setDestination(newDestination: Euclidean2DPosition, voidVolatileMemory: Boolean = false)(source)

Changes the destination of the strategy. If voidVolatileMemory is true, the node's volatile memory is set to zero. This has two effects:

  • known impasses remain stored (hence the node will keep avoiding them)

  • rooms visited while pursuing the previous destination won't be penalised (= won't be avoided) Defaults to false.