Rogue: Savage Rats, a retro-themed dungeon crawler
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.
 
 
rogue-savage-rats/src/mightypork/rogue/world/map/MapAccess.java

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();
}