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/tile/TileType.java

48 lines
871 B

package mightypork.rogue.world.tile;
import mightypork.gamecore.util.math.color.Color;
/**
* Kinds of tiles
*
* @author MightyPork
*/
public enum TileType
{
/** No tile */
NULL(TileColors.NULL, false),
/** Floor tile */
FLOOR(TileColors.FLOOR, true),
/** Wall tile */
WALL(TileColors.WALL, false),
/** Door/gate tile */
DOOR(TileColors.DOOR, true),
/** Passage (ie secret door) */
PASSAGE(TileColors.COLLAPSED_WALL, true),
/** Stairs */
STAIRS(TileColors.WALL, false);
private final Color mapColor;
private final boolean potentiallyWalkable;
private TileType(Color defaultMapColor, boolean potentiallyWalkable)
{
this.mapColor = defaultMapColor;
this.potentiallyWalkable = potentiallyWalkable;
}
public Color getMapColor()
{
return mapColor;
}
public boolean isPotentiallyWalkable()
{
return potentiallyWalkable;
}
}