Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Ufo

Describes a Ufo. Ufo changes direction and dispatches events to the main program to create Projectiles

Hierarchy

Index

Constructors

constructor

  • new Ufo(): Ufo

Properties

expendable

expendable: boolean = false

Protected hitRadius

hitRadius: number = 0

position

position: Vector

velocity

velocity: Vector

Static Private speed

speed: number = 50

Methods

draw

  • draw(): void

hit

  • hit(): void
  • Returns void

isHitBy

move

  • move(_timeslice: number): void
  • Parameters

    • _timeslice: number

    Returns void

Protected playSound

  • playSound(): void
  • Returns void

Protected scale

  • scale(): void
  • Returns void

Private shoot

  • shoot(): void
  • Returns void

Generated using TypeDoc