All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nkasenides.athlos.model.TerrainGenerator Maven / Gradle / Ivy

There is a newer version: 0.1.3
Show newest version
package com.nkasenides.athlos.model;

import com.nkasenides.athlos.exception.ChunkOutOfBoundsException;

public abstract class TerrainGenerator {

    protected final TWorld world;

    public TerrainGenerator(TWorld world) {
        this.world = world;
    }

    public TWorld getWorld() {
        return world;
    }

    protected abstract TTerrainCell generateCell(int cellRow, int cellCol);

    public abstract TTerrainCell acquireCell(int cellRow, int cellCol) throws ChunkOutOfBoundsException;

    public abstract TTerrainChunk generateChunk(int chunkRow, int chunkCol);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy