Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Asteroid

Describes an asteroid with individual size and shape (type)

Hierarchy

Index

Constructors

constructor

Properties

expendable

expendable: boolean = false

Protected hitRadius

hitRadius: number = 0

position

position: Vector

size

size: number

Private type

type: number

velocity

velocity: Vector

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