removeObstacle method
Removes an obstacle from this vision instance.
Implementation
Vision removeObstacle(GameEntity obstacle ) {
final index = obstacles.indexOf( obstacle );
obstacles.removeAt( index );
return this;
}
Removes an obstacle from this vision instance.
Vision removeObstacle(GameEntity obstacle ) {
final index = obstacles.indexOf( obstacle );
obstacles.removeAt( index );
return this;
}