Example #1
0
 public Room(BuildParams @params)
 {
     Openings = new List <Opening>();
     if (@params.TileImage != null)
     {
         Brush = new TextureBrush(@params.TileImage);
     }
     else
     {
         Brush = Brushes.White;
     }
     buildParams = @params;
 }
Example #2
0
 public DungeonMap(BuildParams @params)
 {
     Random      = new Random();
     Width       = @params.DungeonWidth;
     Height      = @params.DungeonHeight;
     Rooms       = new List <Room>();
     Corridors   = new List <Corridor>();
     buildParams = @params;
     if (@params.WallImage != null)
     {
         Brush = new TextureBrush(@params.WallImage);
     }
     else
     {
         Brush = Brushes.Black;
     }
     Map = new bool[Width, Height];
 }
Example #3
0
 public DungeonPrinter(BuildParams @params)
 {
     dungeonMap = new DungeonMap(@params);
 }