Interface GameObject

All Superinterfaces:
Identifiable, Interactable, Locatable, Nameable
All Known Implementing Classes:
SceneObject

public interface GameObject extends Locatable, Identifiable, Nameable, Interactable
Scene object that exposes identity, location, name, and native interaction.

Objects are snapshots. Re-query GameObjects after scene changes rather than retaining an instance indefinitely.

  • Method Details

    • interact

      default boolean interact(ObjectAction action)
      Dispatches an ordered object menu action.
      Parameters:
      action - menu position to dispatch
      Returns:
      true when the runtime accepted the action, not when gameplay completed it