DPB2Class ยท Bots, plugins and tasks

CoverageCalculator

Calculates optimal coverage points in a 2D grid space with different visibility ranges. Implements a greedy algorithm to find points that maximize coverage of unknown areas.

Namespace: DreamPoeBot.Loki.Bot

public class CoverageCalculator

Members and overloads

2 results

CoverageCalculator

MethodLink โ†—
public CoverageCalculator.CoverageCalculator(GridExplorer.Node[,] nodeArray, int knownRadius, int seenRadius)

Initializes a new coverage calculator with specified visibility parameters.

nodeArrayNode[,]
2D array representing the space to be covered
knownRadiusint
Maximum radius for "known" area coverage
seenRadiusint
Maximum radius for "seen" area coverage (must be leq knownRadius)

CalculateMinimumCoveragePoints

MethodLink โ†—
public List<GridExplorer.Node> CoverageCalculator.CalculateMinimumCoveragePoints(GridExplorer.Node startNode)

Calculates the minimum set of points needed to achieve maximum coverage of the space. Uses a greedy algorithm that iteratively selects points providing maximum additional coverage.

startNodeNode
Initial node to start coverage calculation from

Returns: List of nodes representing optimal coverage points

DPB2 0.4.5.88 ยท Reference reviewed 2026-10-02. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.