removeGoal

fun <M : Mob> M.removeGoal(key: GoalKey<M>)

Removes a goal from this mob by its GoalKey.

Parameters

key

the key of the goal to remove


fun <M : Mob> M.removeGoal(goal: Goal<M>)

Removes a specific goal instance from this mob.

Parameters

goal

the goal instance to remove