com.nkasenides.athlos.model.TerrainGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of athlos-core Show documentation
Show all versions of athlos-core Show documentation
An MMOG development framework.
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);
}