예제 #1
0
        private void CreateObstacle(Point point)
        {
            Obstacle obstacle = new Obstacle(point, false);

            Mars.AddObstacle(obstacle);
        }
예제 #2
0
 private void DestroyObstacle(Obstacle obstacle)
 {
     Mars.RemoveObstacle(obstacle);
 }
예제 #3
0
 protected virtual void DestroyObstacle(Obstacle obstacle)
 {
     Mars.RemoveObstacle(obstacle);
 }
예제 #4
0
파일: Rover.cs 프로젝트: thearunster/SOLID
 public void AddObstacle(Obstacle obstacle)
 {
     _obstacles.Add(obstacle);
 }
예제 #5
0
파일: Mars.cs 프로젝트: thearunster/SOLID
 public void RemoveObstacle(Obstacle obstacle)
 {
     _obstacles.Remove(obstacle);
 }