Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: SenseAIState

[17:14] static extends: object

Helper for FXGL's SenseAIState enum (com.almasb.fxgl.ai.senseai.SenseAIState). Four values describing the entity's awareness:

  • CANNOT_BE_DISTURBED — never reacts to stimuli.
  • CALM — default low-alertness state.
  • ALERT — heightened alertness.
  • AGGRESSIVE — peak alertness.

Methods

  • CANNOT_BE_DISTURBED ()

  • CALM ()

  • ALERT ()

  • AGGRESSIVE ()

  • get (string Name)

    Resolves a SenseAIState by name.

    • @p Name is one of "CANNOT_BE_DISTURBED", "CALM", "ALERT", "AGGRESSIVE".
  • values ()

    Returns SenseAIState[] containing every constant.

  • valueOf (string Name)

    Standard Enum.valueOf strict lookup. Throws on unknown names.