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.
45 lines
648 B
45 lines
648 B
package mightypork.rogue.world.tile.models;
|
|
|
|
|
|
import mightypork.rogue.world.level.Level;
|
|
import mightypork.rogue.world.tile.Tile;
|
|
import mightypork.util.annotations.DefaultImpl;
|
|
|
|
|
|
/**
|
|
* Basic implementation of a tile.
|
|
*
|
|
* @author MightyPork
|
|
*/
|
|
public abstract class SimpleTile extends TileModel {
|
|
|
|
public SimpleTile(int id)
|
|
{
|
|
super(id);
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean isWalkable(Tile tile)
|
|
{
|
|
return isWalkable();
|
|
}
|
|
|
|
|
|
@Override
|
|
public abstract boolean isWalkable();
|
|
|
|
|
|
@Override
|
|
public boolean hasMetadata()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
|
|
@Override
|
|
@DefaultImpl
|
|
public void update(Tile tile, Level level, double delta)
|
|
{
|
|
}
|
|
}
|
|
|