Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ShieldComponent

Hierarchy

Index

Constructors

constructor

Methods

absorbDamage

  • absorbDamage(): void
  • Absorbs damage

    Returns void

absorbExplosionReturnRemaining

  • absorbExplosionReturnRemaining(): number
  • Absorbs an explosion, those take multiple shield points

    Returns number

    Percentage of how much damage is remaining to apply

addShield

  • addShield(amount?: number): void
  • Adds a single shield

    Parameters

    • Default value amount: number = 1

    Returns void

canAbsorb

  • canAbsorb(): boolean
  • Whether this shield has resources left to absorb

    Returns boolean

deserialize

  • deserialize(data: any): any

getDebugString

  • getDebugString(): string

isFullyCharged

  • isFullyCharged(): boolean
  • Whether the shield is fully charged

    Returns boolean

serialize

  • serialize(): object

Static getCachedSchema

  • getCachedSchema(): any

Static getId

  • getId(): string
  • Returns string

Static getSchema

  • getSchema(): object

Static verify

  • verify(data: any): string