Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ReplayedTruck

A fake truck which is not rendered or processes a path, but instead just delivers the given resource at a given time

Hierarchy

Index

Constructors

constructor

Methods

belongsToFaction

  • belongsToFaction(faction: any): boolean
  • Override, should return true if the object does belong to the given faction

    Parameters

    • faction: any

    Returns boolean

deliver

  • deliver(): boolean
  • Returns boolean

deserialize

  • deserialize(data: any): any

doDraw

  • doDraw(): void
  • Returns void

draw

  • draw(): void
  • 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

isDeliveryTimeReached

  • isDeliveryTimeReached(): boolean

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

onSpawned

  • onSpawned(params: any): void
  • Parameters

    • params: any

    Returns void

serialize

  • serialize(): object

update

  • update(): 2 | 1
  • Returns 2 | 1

Static getCachedSchema

  • getCachedSchema(): any

Static getId

  • getId(): string
  • Returns string

Static getSchema

  • getSchema(): object

Static verify

  • verify(data: any): string