private void Paint() { level.MarkForClearing(); level.Fill(Tile.WallA); var room = new RegularRoom(); if (fixedSize) { room.Resize(Math.Min(level.Width, roomWidth) + 1, Math.Min(level.Height, roomHeight) + 1); } else { room.SetSizeWithLimit(level.Width, level.Height); } room.SetPos((int)Math.Floor((level.Width - room.GetWidth()) / 2f), (int)Math.Floor((level.Height - room.GetHeight()) / 2f)); if (currentFloor == 0) { room.PaintFloor(level); } else if (currentFloor > 1) { FloorRegistry.Paint(level, room, currentFloor - 2); } if (currentWall == 0) { room.Paint(level); } else if (currentWall > 1) { WallRegistry.Paint(level, room, null, currentWall - 2); } level.TileUp(); }
public override void PaintFloor(Level level) { FloorRegistry.Paint(level, this, -1, true); }
public override void PaintFloor(Level level) { FloorRegistry.Paint(level, this, -1, true); Painter.Rect(level, this, 1, Tile.FloorD); }
public virtual void PaintFloor(Level level) { Painter.Fill(level, this, Tile.WallA); FloorRegistry.Paint(level, this, -1, Painter.AllGold); }