addObstacle method

Vision addObstacle(
  1. GameEntity obstacle
)

Adds an obstacle to this vision instance.

Implementation

Vision addObstacle(GameEntity obstacle ) {
	obstacles.add( obstacle );
	return this;
}