Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Hotspot

The area of destruction the laser gun creates. The higher the charge, the bigger and more robust it is.

Hierarchy

Index

Constructors

constructor

Properties

Private charge

charge: number

expendable

expendable: boolean = false

Protected hitRadius

hitRadius: number = 0

Protected lifetime

lifetime: number = Projectile.maxLifetime

Private maxLifetime

maxLifetime: number

position

position: Vector

velocity

velocity: Vector

Static Protected maxLifetime

maxLifetime: number = 2

Methods

draw

  • draw(): void

hit

  • hit(): void
  • Returns void

isHitBy

move

  • move(_timeslice: number): void
  • Parameters

    • _timeslice: number

    Returns void

Generated using TypeDoc