Class ChunkTracker

Direct Known Subclasses:
DistanceManager.ChunkTicketTracker, DistanceManager.FixedPlayerDistanceChunkTracker, TickingTracker

public abstract class ChunkTracker extends DynamicGraphMinFixedPoint
  • Constructor Details

    • ChunkTracker

      protected ChunkTracker(int firstQueuedLevel, int width, int height)
  • Method Details

    • isSource

      protected boolean isSource(long pos)
      Overrides:
      isSource in class DynamicGraphMinFixedPoint
    • checkNeighborsAfterUpdate

      protected void checkNeighborsAfterUpdate(long pos, int level, boolean isDecreasing)
      Specified by:
      checkNeighborsAfterUpdate in class DynamicGraphMinFixedPoint
    • getComputedLevel

      protected int getComputedLevel(long pos, long excludedSourcePos, int level)
      Computes level propagated from neighbors of specified position with given existing level, excluding the given source position.
      Specified by:
      getComputedLevel in class DynamicGraphMinFixedPoint
    • computeLevelFromNeighbor

      protected int computeLevelFromNeighbor(long startPos, long endPos, int startLevel)
      Returns level propagated from start position with specified level to the neighboring end position.
      Specified by:
      computeLevelFromNeighbor in class DynamicGraphMinFixedPoint
    • getLevelFromSource

      protected abstract int getLevelFromSource(long pos)
    • update

      public void update(long pos, int level, boolean isDecreasing)