You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
595 B
47 lines
595 B
package mightypork.rogue.world.map;
|
|
|
|
|
|
import mightypork.rogue.world.tile.Tile;
|
|
import mightypork.util.math.noise.NoiseGen;
|
|
|
|
|
|
/**
|
|
* Access interface for a level map.
|
|
*
|
|
* @author MightyPork
|
|
*/
|
|
public interface MapAccess {
|
|
|
|
/**
|
|
* Ge tile at X,Y
|
|
*
|
|
* @param x
|
|
* @param y
|
|
* @return tile
|
|
*/
|
|
Tile getTile(int x, int y);
|
|
|
|
|
|
/**
|
|
* @return map width in tiles
|
|
*/
|
|
int getWidth();
|
|
|
|
|
|
/**
|
|
* @return map height in tiles
|
|
*/
|
|
int getHeight();
|
|
|
|
|
|
/**
|
|
* @return map seed
|
|
*/
|
|
long getSeed();
|
|
|
|
|
|
/**
|
|
* @return level-specific noise generator
|
|
*/
|
|
NoiseGen getNoiseGen();
|
|
}
|
|
|