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.
40 lines
680 B
40 lines
680 B
package mightypork.rogue.world.gen.rooms;
|
|
|
|
|
|
import java.util.Random;
|
|
|
|
import mightypork.rogue.world.gen.MapTheme;
|
|
import mightypork.rogue.world.gen.TileProtectLevel;
|
|
import mightypork.rogue.world.tile.TileModel;
|
|
import mightypork.utils.math.algo.Coord;
|
|
|
|
|
|
public class DeadEndRoom extends AbstractRectRoom {
|
|
|
|
@Override
|
|
protected Coord getInnerSize(Random rand)
|
|
{
|
|
return Coord.make(1, 1);
|
|
}
|
|
|
|
|
|
@Override
|
|
protected TileProtectLevel getWallProtectionLevel()
|
|
{
|
|
return TileProtectLevel.STRONG;
|
|
}
|
|
|
|
|
|
@Override
|
|
protected TileModel getDoorType(MapTheme theme, Random rand)
|
|
{
|
|
return theme.floor();
|
|
}
|
|
|
|
|
|
@Override
|
|
protected int getDoorCount(Random rand)
|
|
{
|
|
return 1;
|
|
}
|
|
}
|
|
|