Class ChunkTracker

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

public abstract class ChunkTracker extends DynamicGraphMinFixedPoint
  • Constructor Details

    • ChunkTracker

      protected ChunkTracker(int pFirstQueuedLevel, int pWidth, int pHeight)
  • Method Details

    • isSource

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

      protected void checkNeighborsAfterUpdate(long pPos, int pLevel, boolean pIsDecreasing)
      Specified by:
      checkNeighborsAfterUpdate in class DynamicGraphMinFixedPoint
    • getComputedLevel

      protected int getComputedLevel(long pPos, long pExcludedSourcePos, int pLevel)
      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 pStartPos, long pEndPos, int pStartLevel)
      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 pPos)
    • update

      public void update(long pPos, int pLevel, boolean pIsDecreasing)