Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Projectile

Describes a small projectile as fired by the Ufos

Hierarchy

Index

Constructors

constructor

Properties

expendable

expendable: boolean = false

Protected hitRadius

hitRadius: number = 0

Protected lifetime

lifetime: number = Projectile.maxLifetime

position

position: Vector

velocity

velocity: Vector

Static Protected maxLifetime

maxLifetime: number = 2

Methods

draw

  • draw(): void
  • Returns void

hit

  • hit(): void
  • Returns void

isHitBy

move

  • move(_timeslice: number): void
  • Parameters

    • _timeslice: number

    Returns void

Generated using TypeDoc