Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: DiagonalHeuristic

[16:7] extends: Heuristic

Wraps FXGL's DiagonalHeuristic abstract base (com.almasb.fxgl.pathfinding.heuristic.DiagonalHeuristic), parent of OctileDistance. Adds a diagonal weight on top of the base Heuristic weight. Cannot be instantiated directly; use OctileDistance or extend in Java.

Methods

  • DiagonalHeuristic ()

    Empty default constructor; populated by adopt.

  • adopt (object Ajo)

    Wraps an existing DiagonalHeuristic AussomJavaObject.

  • getWeight ()

  • getDiagonalWeight ()