MapAnalyzer.constructs

Module Contents

Classes

ChokeArea(array: np.ndarray, map_data: MapData)

Base class for all chokes

RawChoke(array: np.ndarray, map_data: MapData, raw_choke: CMapChoke)

Chokes found in the C extension where the terrain generates a choke point

MDRamp(map_data: MapData, array: np.ndarray, ramp: sc2Ramp)

Wrapper for sc2.game_info.Ramp,

VisionBlockerArea(map_data: MapData, array: np.ndarray)

VisionBlockerArea are areas containing tiles that hide the units that stand in it,

class MapAnalyzer.constructs.ChokeArea(array: np.ndarray, map_data: MapData)[source]

Bases: MapAnalyzer.Polygon.Polygon

Base class for all chokes

class MapAnalyzer.constructs.RawChoke(array: np.ndarray, map_data: MapData, raw_choke: CMapChoke)[source]

Bases: MapAnalyzer.constructs.ChokeArea

Chokes found in the C extension where the terrain generates a choke point

class MapAnalyzer.constructs.MDRamp(map_data: MapData, array: np.ndarray, ramp: sc2Ramp)[source]

Bases: MapAnalyzer.constructs.ChokeArea

Wrapper for sc2.game_info.Ramp,

is responsible for calculating the relevant Region

closest_region(self, region_list)[source]

Will return the closest region with respect to self

set_regions(self)[source]

Method for calculating the relevant Region

property top_center(self)[source]

Alerts when sc2 fails to provide a top_center, and fallback to center()

property bottom_center(self)[source]

Alerts when sc2 fails to provide a bottom_center, and fallback to center()

class MapAnalyzer.constructs.VisionBlockerArea(map_data: MapData, array: np.ndarray)[source]

Bases: MapAnalyzer.constructs.ChokeArea

VisionBlockerArea are areas containing tiles that hide the units that stand in it,

(for example, bushes)

Units that attack from within a VisionBlockerArea

cannot be targeted by units that do not stand inside

Indices and tables