Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreatureManager

Hierarchy

  • CreatureManager

Implements

Index

Methods

checkSpawnReputation

getCreaturesWithSpawnGroup

  • getCreaturesWithSpawnGroup(group?: SpawnGroup.Any | SpawnGroup.Guardians | SpawnGroup.Water | SpawnGroup.WaterCave | SpawnGroup.Cave | SpawnGroup.Night, checkReputation?: boolean): (CreatureType.Slime | CreatureType.JellyCube | CreatureType.GiantSpider | CreatureType.Bear | CreatureType.Rabbit | CreatureType.Snake | CreatureType.GiantRat | CreatureType.Rat | CreatureType.VampireBat | CreatureType.GreyWolf | CreatureType.Imp | CreatureType.Bogling | CreatureType.LivingRock | CreatureType.Shark | CreatureType.Zombie | CreatureType.Skeleton | CreatureType.PirateGhost | CreatureType.TimeSkitter | CreatureType.Chicken | CreatureType.TrapdoorSpider | CreatureType.FireElemental | CreatureType.Cod | CreatureType.Hobgoblin | CreatureType.LivingMushroom | CreatureType.Kraken | CreatureType.Blindfish | CreatureType.Harpy | CreatureType.AcidSpitterDemon | CreatureType.SkeletalMage | CreatureType.Blood | CreatureType.ClawWorm | CreatureType.Drake | CreatureType.Sandcat | CreatureType.WaterBlood | CreatureType.LavaBeetle | CreatureType.Goat)[]
  • Parameters

    • Optional group: SpawnGroup.Any | SpawnGroup.Guardians | SpawnGroup.Water | SpawnGroup.WaterCave | SpawnGroup.Cave | SpawnGroup.Night
    • Optional checkReputation: boolean

    Returns (CreatureType.Slime | CreatureType.JellyCube | CreatureType.GiantSpider | CreatureType.Bear | CreatureType.Rabbit | CreatureType.Snake | CreatureType.GiantRat | CreatureType.Rat | CreatureType.VampireBat | CreatureType.GreyWolf | CreatureType.Imp | CreatureType.Bogling | CreatureType.LivingRock | CreatureType.Shark | CreatureType.Zombie | CreatureType.Skeleton | CreatureType.PirateGhost | CreatureType.TimeSkitter | CreatureType.Chicken | CreatureType.TrapdoorSpider | CreatureType.FireElemental | CreatureType.Cod | CreatureType.Hobgoblin | CreatureType.LivingMushroom | CreatureType.Kraken | CreatureType.Blindfish | CreatureType.Harpy | CreatureType.AcidSpitterDemon | CreatureType.SkeletalMage | CreatureType.Blood | CreatureType.ClawWorm | CreatureType.Drake | CreatureType.Sandcat | CreatureType.WaterBlood | CreatureType.LavaBeetle | CreatureType.Goat)[]

getHappinessLevel

getMovePenalty

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

getMoveTypesInFov

maybeSpawnClawWorm

  • maybeSpawnClawWorm(player: IPlayer): void

remove

spawn

  • spawn(creatureType: CreatureType.Slime | CreatureType.JellyCube | CreatureType.GiantSpider | CreatureType.Bear | CreatureType.Rabbit | CreatureType.Snake | CreatureType.GiantRat | CreatureType.Rat | CreatureType.VampireBat | CreatureType.GreyWolf | CreatureType.Imp | CreatureType.Bogling | CreatureType.LivingRock | CreatureType.Shark | CreatureType.Zombie | CreatureType.Skeleton | CreatureType.PirateGhost | CreatureType.TimeSkitter | CreatureType.Chicken | CreatureType.TrapdoorSpider | CreatureType.FireElemental | CreatureType.Cod | CreatureType.Hobgoblin | CreatureType.LivingMushroom | CreatureType.Kraken | CreatureType.Blindfish | CreatureType.Harpy | CreatureType.AcidSpitterDemon | CreatureType.SkeletalMage | CreatureType.Blood | CreatureType.ClawWorm | CreatureType.Drake | CreatureType.Sandcat | CreatureType.WaterBlood | CreatureType.LavaBeetle | CreatureType.Goat, x: number, y: number, z: number, bypass?: boolean, forceAberrant?: boolean): ICreature | undefined
  • Parameters

    • creatureType: CreatureType.Slime | CreatureType.JellyCube | CreatureType.GiantSpider | CreatureType.Bear | CreatureType.Rabbit | CreatureType.Snake | CreatureType.GiantRat | CreatureType.Rat | CreatureType.VampireBat | CreatureType.GreyWolf | CreatureType.Imp | CreatureType.Bogling | CreatureType.LivingRock | CreatureType.Shark | CreatureType.Zombie | CreatureType.Skeleton | CreatureType.PirateGhost | CreatureType.TimeSkitter | CreatureType.Chicken | CreatureType.TrapdoorSpider | CreatureType.FireElemental | CreatureType.Cod | CreatureType.Hobgoblin | CreatureType.LivingMushroom | CreatureType.Kraken | CreatureType.Blindfish | CreatureType.Harpy | CreatureType.AcidSpitterDemon | CreatureType.SkeletalMage | CreatureType.Blood | CreatureType.ClawWorm | CreatureType.Drake | CreatureType.Sandcat | CreatureType.WaterBlood | CreatureType.LavaBeetle | CreatureType.Goat
    • x: number
    • y: number
    • z: number
    • Optional bypass: boolean
    • Optional forceAberrant: boolean

    Returns ICreature | undefined

spawnFromGroup

  • spawnFromGroup(creatureGroup: SpawnGroup.Any | SpawnGroup.Guardians | SpawnGroup.Water | SpawnGroup.WaterCave | SpawnGroup.Cave | SpawnGroup.Night, x: number, y: number, z: number, bypass?: boolean): ICreature | undefined
  • Parameters

    • creatureGroup: SpawnGroup.Any | SpawnGroup.Guardians | SpawnGroup.Water | SpawnGroup.WaterCave | SpawnGroup.Cave | SpawnGroup.Night
    • x: number
    • y: number
    • z: number
    • Optional bypass: boolean

    Returns ICreature | undefined

updateAll

  • updateAll(): void

updateFov

  • updateFov(): number

Generated using TypeDoc