removeObstacle method

Vision removeObstacle(
  1. GameEntity obstacle
)

Removes an obstacle from this vision instance.

Implementation

Vision removeObstacle(GameEntity obstacle ) {
	final index = obstacles.indexOf( obstacle );
	obstacles.removeAt( index );

	return this;
}