Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ActualCreature

Hierarchy

  • ActualCreature

Implements

Index

Constructors

constructor

  • Parameters

    • Optional creatureType: CreatureType
    • Default value x: number = 0
    • Default value y: number = 0
    • Default value z: number = 0
    • Optional aberrant: boolean

    Returns ActualCreature

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

Optional stopNextMovement

stopNextMovement: boolean

type

x

x: number

y

y: number

z

z: number

Methods

canSwapWith

  • canSwapWith(player: IPlayer): boolean

checkForBurn

  • checkForBurn(moveType?: MoveType): boolean

damage

  • Parameters

    Returns number | undefined

description

getInspectMessage

getMoveType

getMovementFinishTime

  • getMovementFinishTime(): number

getMovementProgress

  • getMovementProgress(): number

getSerializationProperties

  • getSerializationProperties(_: string): Array<string>

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, z?: number): boolean
  • Parameters

    • x: number
    • y: number
    • Default value z: number = this.z

    Returns boolean

onUnserialized

  • onUnserialized(): void

pet

  • pet(): boolean
  • Returns boolean

queueSoundEffect

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

    • type: SfxType
    • Default value delay: number = 0
    • Default value speed: number = this.aberrant ? 0.5 : 1

    Returns void

release

  • release(): boolean
  • Returns boolean

setInFov

  • setInFov(inFov: boolean): void
  • Parameters

    • inFov: boolean

    Returns void

setMoveType

skipNextUpdate

  • skipNextUpdate(): void

tame

  • Parameters

    Returns boolean

update

  • update(creatureId: number): boolean
  • Parameters

    • creatureId: number

    Returns boolean

Generated using TypeDoc