예제 #1
0
 def add_wall(self, x0, y0, x1, y1):
     """Adds a wall to the Simulation."""
     wall = Wall(x0, y0, x1, y1)
     wall.id = self.amount_walls
     self.walls.append(wall)
     self.amount_walls += 1