class Surface (Niantic.ARDK.Extensions.Gameboard.Surface)

Overview

Represents a subset on the grid with cells of approximately the same elevation. More…

class Surface {
public:
    // properties

    IEnumerable<GridNode> Elements;
    float Elevation;
    bool IsEmpty;

    // methods

    bool CanMerge(Surface other, float elevationTreshold);
    bool ContainsElement(GridNode gridCell);
    void Except(IEnumerable<GridNode> nodes);
    void Except(Surface other);
    GridNode GetClosestElement(Vector2Int reference);
    void Intersect(IEnumerable<GridNode> nodes);
    void Merge(Surface other);
    bool Overlaps(Surface other);
    Surface(IEnumerable<GridNode> gridElements, int id);
};

Detailed Documentation

Represents a subset on the grid with cells of approximately the same elevation.

Properties

IEnumerable<GridNode> Elements

Grid nodes that make up this plane (readonly).

float Elevation

Elevation of the grid.

bool IsEmpty

Whether this planes does not contain any valid elements on the grid.

Methods

void Merge(Surface other)

Merges the other plane’s grid elements to this plane.