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.
67 lines
991 B
67 lines
991 B
package mightypork.rogue.world.tile.models;
|
|
|
|
|
|
import mightypork.rogue.world.tile.Tile;
|
|
import mightypork.rogue.world.tile.renderers.DoorRenderer;
|
|
import mightypork.util.math.color.COMMODORE;
|
|
import mightypork.util.math.color.Color;
|
|
import mightypork.util.math.color.PAL16;
|
|
import mightypork.util.math.color.RGB;
|
|
|
|
|
|
public class SimpleDoor extends AbstractTile {
|
|
|
|
public SimpleDoor(int id)
|
|
{
|
|
super(id);
|
|
setRenderer(new DoorRenderer("tile.door.closed", "tile.door.open"));
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean isPotentiallyWalkable()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean isWalkable(Tile tile)
|
|
{
|
|
return !isLocked(tile);
|
|
}
|
|
|
|
|
|
protected boolean isLocked(Tile tile)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean isDoor()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean doesCastShadow()
|
|
{
|
|
return true;
|
|
}
|
|
|
|
|
|
@Override
|
|
public boolean hasDroppedItems()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
|
|
@Override
|
|
public Color getMapColor(Tile tile)
|
|
{
|
|
return PAL16.NEWPOOP;
|
|
}
|
|
}
|
|
|