Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PredictionManager

Hierarchy

  • PredictionManager

Index

Constructors

constructor

  • Parameters

    • root: any

    Returns PredictionManager

Methods

draw

  • draw(params: any): void
  • Draws all ongoing predictions

    Parameters

    • params: any

    Returns void

getPredictionsByType

  • getPredictionsByType(predictionClass: any): any
  • Returns all predictions of the given id

    Parameters

    • predictionClass: any

    Returns any

helperGetStructurePredictedEnhancementLevel

  • helperGetStructurePredictedEnhancementLevel(uid: any, enhancement: any): any
  • Returns the predicted enhancement level, or null

    Parameters

    • uid: any
    • enhancement: any

    Returns any

helperGetTilePredictedContents

  • helperGetTilePredictedContents(tile: any): any
  • Returns if the given tile has a predicted building

    Parameters

    • tile: any

    Returns any

    If there is a predictino, return which building it is

queuePrediction

  • queuePrediction(prediction: any): void
  • Queues a new prediction

    Parameters

    • prediction: any

    Returns void

removeAllPredictions

  • removeAllPredictions(): void
  • Removes all predictions, used after a resync

    Returns void

update

  • update(): void
  • Updates the manager, removing all predictions which timed out

    Returns void