TODO: extends Entity?

Hierarchy

Implements

Constructors

Properties

_description?: ICorpseDescription
aberrant?: boolean
decay?: number
id: number
islandId: `${number},${number}`
preventRendering?: boolean
qualityBonus?: number
referenceId?: number

Do not use this property directly, instead use `game.references.getReference()

renamed?: string | ISerializedTranslation
respawned?: number
startingDecay?: number
step?: number
x: number
y: number

Accessors

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

  • get asCreature(): undefined
  • Returns undefined

  • get asDoodad(): undefined
  • Returns undefined

  • get asEntity(): default<DescriptionType, TypeType, TagType, unknown>
  • Returns default<DescriptionType, TypeType, TagType, unknown>

  • get asEntityMovable(): undefined | default<DescriptionType, TypeType, TagType, unknown>
  • Returns undefined | default<DescriptionType, TypeType, TagType, unknown>

  • get asEntityWithStats(): undefined | default<DescriptionType, TypeType, TagType>
  • Returns undefined | default<DescriptionType, TypeType, TagType>

  • get asHuman(): undefined
  • Returns undefined

  • get asItem(): undefined
  • Returns undefined

  • get asLocalPlayer(): undefined
  • Returns undefined

  • get asNPC(): undefined
  • Returns undefined

  • get asPlayer(): undefined
  • Returns undefined

  • get asTileEvent(): undefined
  • Returns undefined

  • get description(): undefined | DescriptionType
  • Get the entities description

    Returns undefined | DescriptionType

  • get entityType(): Corpse
  • Returns Corpse

  • get island(): default
  • Returns default

  • get point(): IVector3
  • Location of the entity on the world. Parent classes will probably mark this as always defined

    Returns IVector3

  • get reference(): undefined | Reference
  • Returns undefined | Reference

  • get tile(): default
  • Tile the entity is on in the world. Parent classes will probably mark this as always defined

    Returns default

  • get tileUpdateType(): TileUpdateType
  • Returns TileUpdateType

  • get tilesAround(): undefined | default[]
  • Returns undefined | default[]

Methods

  • Adds a referenceId to the entity if it doesn't already have one

    Returns void

  • Parameters

    • tag: unknown

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns boolean

  • Returns void

  • Gets a data

    Returns

    Data value or undefined if it wasn't found

    Type Parameters

    • T

    Parameters

    • key: string

      Data key

    Returns undefined | T

  • Returns number

  • Returns string

  • Parameters

    • Optional article: Article

      Whether to include an article for the name of the creature. Uses the article rules on the language. Defaults to true.

    • Optional count: number

      The number of this creature that you're getting the name of. Defaults to 1.

      Examples:

      • corpse.getName() // "an acid spitter demon"
      • corpse.getName(false) // "acid spitter demon"
      • corpse.getName(undefined, 3) // "acid spitter demons"

    Returns default

  • Gets the temperature produced by this object. Positive values are "heat", negative values are "cold". Refer to the values of the Temperature enum to see the possible range. If this method is not implemented, or it returns undefined, Temperature.Neutral is used.

    Returns undefined | number

  • Parameters

    • Optional clientSide: boolean

    Returns ItemType[]

  • Check if a data was set

    Returns

    True if the data exists, false if it doesn't

    Parameters

    • key: string

      Data key

    Returns boolean

  • Parameters

    • tag: unknown

    Returns boolean

  • Returns boolean

  • Checks if the entity is within the viewport bounds of one or more humans

    Returns boolean

  • Returns void

  • Returns void

  • Parameters

    • type: SfxType
    • Optional delay: number
    • Optional speed: number

    Returns void

  • Removes a data

    Returns

    True when the data is removed. False if the key wasn't set

    Parameters

    • key: string

      Data key

    Returns boolean

  • Parameters

    • updateTile: boolean

    Returns void

  • Parameters

    • tag: unknown

    Returns void

  • Sets a data

    Rturns

    The value

    Type Parameters

    • T

    Parameters

    • key: string

      Data key

    • value: T

      Data value

    Returns T

  • Returns string

  • Returns void

  • Updates the DoodadOverHidden tile flag if the creature is large. Large creatures should render over the doodad over layer, which means we should hide the doodad over layer for doodads on the creatures tile.

    Parameters

    • shouldBeHidden: boolean

    Returns void

  • Parameters

    • value: any

    Returns value is default

Generated using TypeDoc