Basics
Guides
API Reference
Basics
Guides
API Reference
[17:7] extends: FxObj
Wraps a single cell inside a Grid. FXGL's Cell is abstract; this wrapper holds either a concrete AussomSimpleCell (Aussom's no-extra-data subclass) or any subclass returned from FXGL code (for example AStarCell from pathfinding). Cells carry an integer (x, y) position, optional user data, and a Manhattan-distance helper. The (x, y) and userData are the part Aussom users normally interact with.
Cell (int X = 0, int Y = 0)
Creates a new AussomSimpleCell at the given grid coordinates.
X is the column.Y is the row.adopt (object Ajo)
Wraps an existing Cell AussomJavaObject.
Ajo is an AussomJavaObject around an FXGL Cell.A new Cell wrapper.getX ()
Returns the cell's X (column) coordinate.
An int.getY ()
Returns the cell's Y (row) coordinate.
An int.getUserData ()
Returns user data attached via setUserData, or null.
An AussomJavaObject or null.setUserData (Data)
Attaches user-specific data to this cell.
Data is any value (typically an Aussom object or AussomJavaObject).this objectdistance (object Other)
Returns the Manhattan distance (no diagonal movement) from this cell to another.
Other is a Cell wrapper.An int with the cell distance.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.