Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreatureInspection

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected Optional component

component: Component

Protected Optional context

Readonly event

event: IEventEmitter<this, IInfoProviderEvents> = new EventEmitter<this, E>(this)

Readonly type

Readonly value

value: Creature

Methods

Protected createIdFromVector3

  • createIdFromVector3(vec3: IVector3): string

get

getBorder

  • getBorder(): undefined | "var(--color-tamed)" | "var(--color-aberrant)"
  • Returns undefined | "var(--color-tamed)" | "var(--color-aberrant)"

getClass

  • getClass(): string[]

getDefaultDisplayLevel

getDisplayLevel

getIcon

  • getIcon(): IIcon | undefined

getId

  • getId(): string
  • Returns string

getPriority

  • getPriority(): number

hasContent

init

  • init(): void

Protected initChildTextComponent

initComponent

  • initComponent(context: InfoProviderContext, component?: Component<HTMLElement>, partial?: boolean, data?: { lastInfoSleep: number }): { component: Component<HTMLElement>; fullInit: any }
  • Parameters

    • context: InfoProviderContext
    • Default value component: Component<HTMLElement> = new (this.componentClass ?? Component)()
    • Default value partial: boolean = false
    • Default value data: { lastInfoSleep: number } = { lastInfoSleep: Date.now() }
      • lastInfoSleep: number

    Returns { component: Component<HTMLElement>; fullInit: any }

    • component: Component<HTMLElement>
    • fullInit: function
      • fullInit(): void
      • Returns void

recheckHasContent

  • recheckHasContent(): this
  • Call when this info provider should recheck whether it has contents.

    Returns this

refresh

  • refresh(): this
  • Call when this info provider should be refreshed.

    Returns this

refreshDisplayLevel

  • refreshDisplayLevel(): this
  • Call when this info provider should refresh its display level.

    Returns this

remove

  • remove(): this
  • Call when this info provider should be removed.

    Returns this

setComponent

setDisplayLevel

setIcon

  • setIcon(icon?: IIcon): this
  • Parameters

    Returns this

setSynchronous

  • setSynchronous(): this

subscribeRefreshOn

  • subscribeRefreshOn<E, K>(emitterOrBus: E, ...args: []): this
  • subscribeRefreshOn<E, K>(emitterOrBus: E, ...events: K[]): this
  • Marks this info provider as to subscribe refresh events to the given host. Note: Any existing initialized components will not be retroactively subscribed.

    Type parameters

    Parameters

    • emitterOrBus: E
    • Rest ...args: []

    Returns this

  • Marks this info provider as to subscribe refresh events to the given host. Note: Any existing initialized components will not be retroactively subscribed.

    Type parameters

    Parameters

    • emitterOrBus: E
    • Rest ...events: K[]

    Returns this

Static create

Static createEnumReferenceHandler

  • createEnumReferenceHandler<R, E, K>(referenceType: R, enumObject: {}, predicate?: undefined | ((reference: [], context?: InfoProviderContext) => any)): (Anonymous function)

Static description

Static getDefaultPriority

Static getFromTile

  • Parameters

    Returns never[] | CreatureInspection

Static handles

  • handles(type: InspectType, creature: unknown): boolean
  • Parameters

    Returns boolean

Static list

Static of

Static title

Static verifyHumanity

Generated using TypeDoc