Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Laser

The laser beam pointing from the Gun to the Hotspot

Hierarchy

Index

Constructors

constructor

  • new Laser(_path: Function, _charge: number): Laser

Properties

Private charge

charge: number

expendable

expendable: boolean = false

Protected hitRadius

hitRadius: number = 0

Protected lifetime

lifetime: number = Projectile.maxLifetime

Private path

path: Function

position

position: Vector

velocity

velocity: Vector

Static Protected maxLifetime

maxLifetime: number = 0.1

Methods

draw

  • draw(): void

hit

  • hit(): void
  • Returns void

isHitBy

move

  • move(_timeslice: number): void

Generated using TypeDoc