Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: CellState

[12:14] static extends: object

Helper for FXGL's pathfinding CellState enum. Each AStarCell holds one of WALKABLE or NOT_WALKABLE; the pathfinder treats NOT_WALKABLE cells as obstacles.

Methods

  • get (string Name)

    Resolves a CellState enum value by name.

    • @p Name is "WALKABLE" or "NOT_WALKABLE".
    • @r An AussomJavaObject wrapping the CellState value.
  • values ()

    Returns CellState[] containing every constant.

  • valueOf (string Name)

    Standard Enum.valueOf — strict variant of get. Throws on unknown names.

  • isWalkable (object StateAjo)

    Returns true when the supplied CellState AJO represents a walkable cell.

  • isNotWalkable (object StateAjo)

    Returns true when the supplied CellState AJO represents a non-walkable cell.