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/models/AbstractNullTile.java

58 lines
662 B

package mightypork.rogue.world.tile.models;
import mightypork.rogue.world.tile.Tile;
/**
* Null tile
*
* @author MightyPork
*/
public abstract class AbstractNullTile extends SimpleTile {
private Tile inst;
public AbstractNullTile(int id)
{
super(id);
}
@Override
public boolean isNullTile()
{
return true;
}
@Override
public Tile createTile()
{
if (inst == null) {
inst = new Tile(this);
}
return inst;
}
@Override
public boolean hasPersistentMetadata()
{
return false;
}
@Override
public boolean hasDroppedItems()
{
return false;
}
@Override
public abstract boolean isWalkable();
}