Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseDamageType

Hierarchy

Index

Constructors

constructor

Methods

applySingleTarget

  • applySingleTarget(entity: any): void
  • Applies the damage to a single target

    Parameters

    • entity: any

    Returns void

applySplash

  • applySplash(root: any, worldPosition: any, sourceFaction: any): void
  • Applies the damage to multiple targets at the given position. Only damages entities which are hostile to the sourceFaction

    Parameters

    • root: any
    • worldPosition: any
    • sourceFaction: any

    Returns void

deserialize

  • deserialize(data: any): any

getDebugString

  • getDebugString(): string
  • Returns a string representation

    Returns string

isSplash

  • isSplash(): boolean
  • Returns whether this damage type is a splash damage type

    Returns boolean

isTargetAvailable

  • isTargetAvailable(sourceFaction: any, targetEntity: any, root: any): boolean
  • Helper method to check if an entity is available as a target

    Parameters

    • sourceFaction: any
    • targetEntity: any
    • root: any

    Returns boolean

reserveIncomingDamageSingleTarget

  • reserveIncomingDamageSingleTarget(entity: any): void
  • Reserves incoming damage so we can check if an entity is about to die anyways

    Parameters

    • entity: any

    Returns void

serialize

  • serialize(): object

Static getCachedSchema

  • getCachedSchema(): any

Static getId

  • getId(): string

Static getSchema

  • getSchema(): object

Static verify

  • verify(data: any): string