Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • YChargeable

Index

Constructors

constructor

Methods

Static charge

  • charge(target: YEntity, amount: number): void
  • Allows to increase charge of target entity.

    Parameters

    Returns void

Static deplete

  • deplete(target: YEntity, amount: number): void
  • Allows to decrease charge from target entity.

    Parameters

    Returns void

Static getCurrentCharge

  • getCurrentCharge(target: YEntity): number
  • Returns current power charge of target entity.

    Parameters

    Returns number

Static setCurrentCharge

  • setCurrentCharge(target: YEntity, value: number): void
  • Allows to set current power charge of target entity.

    Parameters

    Returns void

Generated using TypeDoc