Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Moveable

The base class for all moving objects. Implements standard methods for moving and hit detection

Hierarchy

Index

Constructors

Protected constructor

  • Parameters

    Returns Moveable

Properties

expendable

expendable: boolean = false

Protected hitRadius

hitRadius: number = 0

position

position: Vector

velocity

velocity: Vector

Methods

Abstract draw

  • draw(): void
  • Returns void

hit

  • hit(): void
  • Returns void

isHitBy

  • Parameters

    Returns boolean

move

  • move(_timeslice: number): void
  • Parameters

    • _timeslice: number

    Returns void

Generated using TypeDoc