Type Parameters

Hierarchy

  • default

Constructors

Properties

ai: AiType
aiMasks: AiMaskType[] = []

Accessors

  • get entity(): undefined | ENTITY
  • Returns undefined | ENTITY

  • set entity(entity: undefined | ENTITY): void
  • Parameters

    • entity: undefined | ENTITY

    Returns void

  • get island(): undefined | default
  • Returns undefined | default

  • get lastCalculatedAiClientSide(): AiType
  • Gets the latest synced state of the ai. This should only be used clientside.

    Returns AiType

Methods

  • Returns

    whether the ai type was added

    Parameters

    Returns boolean

  • Returns

    whether the ai mask was added

    Parameters

    Returns boolean

  • Returns AiType

  • Parameters

    Returns undefined | default

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Returns

    A vector describing an adjacent tile move, or 0,0 for no movement, chosen randomly based on the current wander intent

    Returns Readonly<IVector2>

  • Returns

    whether the ai type was removed

    Parameters

    Returns boolean

  • Returns

    whether the ai mask was removed

    Parameters

    Returns boolean

  • Rerolls the wander intent to a random direction (cardinals, intercardinals, and secondary intercardinals).

    When the creature is zoneless, all directions are weighted equally. When the creature has a zone, it prefers staying within the zone using MATHS

    Returns void

  • Deprecated

    I hope you know what you're doing

    Parameters

    Returns void

  • Returns

    whether the ai type is present

    Parameters

    • aiType: AiType
    • active: boolean

    Returns boolean

  • Returns

    whether the ai mask is present

    Parameters

    Returns boolean

  • Changes the direction the entity is moving while wandering (ie not alerted). Sometimes the entity will pause, instead.

    Returns void

Generated using TypeDoc