Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICreature

Hierarchy

Implemented by

Index

Properties

Optional aberrant

aberrant: boolean

ai

ai: AiType

anim

anim: number

Optional chickenEggCounter

chickenEggCounter: number

direction

direction: FacingDirection

Optional enemy

enemy: number

Optional enemyAttempts

enemyAttempts: number

fromX

fromX: number

fromY

fromY: number

Optional happiness

happiness: number

hp

hp: number

Optional loot

loot: ItemType[]

maxhp

maxhp: number

Optional respawned

respawned: boolean

type

x

x: number

y

y: number

z

z: number

Methods

canSwapWith

  • canSwapWith(player: IPlayer): boolean
  • Parameters

    Returns boolean

checkForBurn

  • checkForBurn(moveType?: MoveType): boolean
  • Parameters

    Returns boolean

damage

  • Parameters

    Returns number | undefined

description

getInspectMessage

getMoveType

  • Returns MoveType

getMovementFinishTime

  • getMovementFinishTime(): number
  • Returns number

getMovementProgress

  • getMovementProgress(): number
  • Returns number

id

  • id(): number | undefined
  • Returns number | undefined

isDefender

  • isDefender(): boolean
  • Returns boolean

isHidden

  • isHidden(): boolean
  • Returns boolean

isInFov

  • isInFov(): boolean
  • Returns boolean

isTamed

  • isTamed(): boolean
  • Returns boolean

moveTo

  • moveTo(x: number, y: number): boolean
  • Parameters

    • x: number
    • y: number

    Returns boolean

pet

  • pet(): boolean
  • Returns boolean

queueSoundEffect

  • queueSoundEffect(type: SfxType, delay?: number, speed?: number): void
  • Parameters

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

    Returns void

release

  • release(): boolean
  • Returns boolean

setInFov

  • setInFov(inFov: boolean): void
  • Parameters

    • inFov: boolean

    Returns void

setMoveType

  • Parameters

    Returns void

skipNextUpdate

  • skipNextUpdate(): void
  • Returns void

tame

  • Parameters

    Returns boolean

update

  • update(creatureId: number): boolean
  • Parameters

    • creatureId: number

    Returns boolean

Generated using TypeDoc