Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: Poolable

[17:7] extends: FxObj

Wraps FXGL's Poolable interface (com.almasb.fxgl.core.pool.Poolable). Implementations expose a single reset() method that Pool.free invokes to clear per-use state before returning the object to the free list. Aussom users typically wrap a Java type that already implements Poolable; authoring a Poolable from scratch in Aussom requires a Java bridge.

Methods

  • Poolable ()

    Empty default constructor; populated by adopt.

  • adopt (object Ajo)

    Wraps an existing Poolable AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a Poolable.
    • @r A new wrapper.
  • reset ()

    Clears per-use state on the wrapped object.

    • @r this object