Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Creature

Index

Variables

defines

defines: Array<ICreatureDescription> = Array<ICreatureDescription | undefined>()

spawnableTiles

spawnableTiles: Array<Array<TerrainType>> = Array<TerrainType[]>()

Functions

checkSpawnMalignity

  • Parameters

    Returns boolean

getCreaturesWithSpawnGroup

  • Parameters

    • Optional group: SpawnGroup
    • Optional checkMalignity: boolean

    Returns CreatureType[]

getHappinessLevel

getMalignityAberrantBonus

  • getMalignityAberrantBonus(): number
  • Returns number

getMovePenalty

  • getMovePenalty(moveType: MoveType, tile: ITile, isFinalMove?: boolean): number
  • Parameters

    • moveType: MoveType
    • tile: ITile
    • Default value isFinalMove: boolean = false

    Returns number

getMoveTypesInFov

  • Returns MoveType[]

remove

  • Parameters

    Returns void

spawn

  • spawn(creatureType: CreatureType, x: number, y: number, z: number, bypass?: boolean, forceAberrant?: boolean): number | null
  • Parameters

    • creatureType: CreatureType
    • x: number
    • y: number
    • z: number
    • Optional bypass: boolean
    • Optional forceAberrant: boolean

    Returns number | null

spawnClawWorm

  • spawnClawWorm(): void
  • Returns void

spawnFromGroup

  • spawnFromGroup(creatureGroup: SpawnGroup, x: number, y: number, z: number, bypass?: boolean): number | null
  • Parameters

    • creatureGroup: SpawnGroup
    • x: number
    • y: number
    • z: number
    • Optional bypass: boolean

    Returns number | null

updateAll

  • Parameters

    Returns void

Generated using TypeDoc