Class ChunckedTrail<W extends World>

    • Field Detail

      • worlds

        protected W extends World[] worlds
        The worlds.
      • current

        protected W extends World current
        The current world.
    • Constructor Detail

      • ChunckedTrail

        public ChunckedTrail()
    • Method Detail

      • worldPop

        public void worldPop​(int worldIndex)
        Moving down to the previous world.
        Specified by:
        worldPop in interface IStorage
        Parameters:
        worldIndex - current world index
      • worldCommit

        public void worldCommit​(int worldIndex)
        Description copied from interface: IStorage
        Comitting the current world: merging it with the previous one.

        Not used yet.

        Specified by:
        worldCommit in interface IStorage
      • allocated

        public int allocated()
        Returns the allocated trail size.
        Returns:
        a positive number