Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TransporterConnectionsSystem

Hierarchy

Index

Constructors

constructor

Methods

draw

  • draw(parameters: any): void
  • Parameters

    • parameters: any

    Returns void

getScore

  • getScore(entity: any): number
  • Parameters

    • entity: any

    Returns number

invalidateIfTransporter

  • invalidateIfTransporter(building: any): void
  • Parameters

    • building: any

    Returns void

recompute

  • recompute(): void
  • Recomputes the connections between transporters, so we don't have to do that every frame. The way it works is, that for every transporter, it checks all other transporters in range. We compute a score of the transporter utilizing the distance to the player base and such. To avoid drawing double lines, we only draw from higher score -> lower score

    Returns void

startDraw

  • startDraw(parameters: any): void
  • see

    GameSystem.draw Wrapper arround the draw method

    Parameters

    • parameters: any

    Returns void

update

  • update(): void
  • Updates the game system, override to perform logic

    Returns void