Skip to content

Commit

Permalink
feat: add include_destructables to get_climber_grid in mapdata
Browse files Browse the repository at this point in the history
  • Loading branch information
eladyaniv01 committed Nov 24, 2020
1 parent 8fd7928 commit 0e8aaf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MapAnalyzer/MapData.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def find_lowest_cost_points(self, from_pos: Point2, radius: int, grid: np.ndarra
"""
return self.pather.find_lowest_cost_points(from_pos=from_pos, radius=radius, grid=grid)

def get_climber_grid(self, default_weight: int = 1) -> ndarray:
def get_climber_grid(self, default_weight: int = 1, include_destructables: bool = True) -> ndarray:
"""
:rtype: numpy.ndarray
Climber grid is a grid modified by :mod:`sc2pathlibp`, and is used for units that can climb,
Expand All @@ -213,7 +213,7 @@ def get_climber_grid(self, default_weight: int = 1) -> ndarray:
* :meth:`.MapData.pathfind`
* :meth:`.MapData.find_lowest_cost_points`
"""
return self.pather.get_climber_grid(default_weight)
return self.pather.get_climber_grid(default_weight, include_destructables=include_destructables)

def get_air_vs_ground_grid(self, default_weight: int = 100) -> ndarray:
"""
Expand Down

0 comments on commit 0e8aaf9

Please sign in to comment.