Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Projectile

Hierarchy

Index

Constructors

constructor

  • new Projectile(root: any, boundingRadius?: number): Projectile

Methods

belongsToFaction

  • belongsToFaction(faction: any): boolean

deserialize

  • deserialize(data: any): any

doDraw

  • doDraw(parameters: any): void
  • Draws the object

    Parameters

    • parameters: any

    Returns void

draw

  • draw(parameters: any): void
  • Override, draws the object

    Parameters

    • parameters: any

    Returns void

finalizeBeforeSave

  • finalizeBeforeSave(): void
  • Override, do anything before saving. Return DESTROY_OBJECT to destroy the object

    Returns void

getPosition

  • Returns the world space position of this projectile

    Returns Vector

isImportantForGame

  • isImportantForGame(): boolean
  • Override, should return false if this object is no longer important for the game, e.g. because it now only displays cosmetic effects or so

    Returns boolean

onDestroyed

  • onDestroyed(): void
  • Override to perform any action right before the object is destroyed

    Returns void

onSpawned

  • onSpawned(params: any): void
  • Parameters

    • params: any

    Returns void

serialize

  • serialize(): object

update

  • update(): number
  • Override, updates the object, return either KEEP_OBJECT or DESTROY_OBJECT

    Returns number

Static getCachedSchema

  • getCachedSchema(): any

Static getId

  • getId(): string
  • Returns string

Static getSchema

  • getSchema(): any

Static verify

  • verify(data: any): string