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
Reference: DPB2 0.4.5.103No matching type in the reviewed DPB1 catalog.

Members and overloads

2 declared here

CoverageCalculator

MethodLink ↗
public CoverageCalculator.CoverageCalculator(GridExplorer.Node[,] nodeArray, int knownRadius, int seenRadius)

Initializes a new coverage calculator with specified visibility parameters.

Parameters

nodeArray
Parameter type: Node[,]No current DPB page is linked for this built-in, external, generic or compatibility-only type.

2D array representing the space to be covered

knownRadius
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Maximum radius for "known" area coverage

seenRadius
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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.

Return type: List<GridExplorer.Node>
Explore GridExplorer.Node → members & methods

Provides node data and the operations listed below. Related types link to the values this API consumes or returns.

Parameters

startNode
Parameter type: NodeNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Initial node to start coverage calculation from

Returns: List of nodes representing optimal coverage points

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