public void Configure(int x, int y, MapCell[,] map, DungeonGeneratorIA dungeon)
 {
     id = idSeed;
     idSeed++;
     this.map = map;
     mapWidth = map.GetLength(0) - 2;
     mapHeight = map.GetLength(1) - 2;
     pos = new int[2];
     pos[0] = x;
     pos[1] = y;
     this.dungeon = dungeon;
     probabilities = new float[4] { 8.0f, 3.0f, 3.0f, 1.0f };
 }
Exemple #2
0
 public void Configure(int x, int y, MapCell[,] map, DungeonGeneratorIA dungeon)
 {
     id = idSeed;
     idSeed++;
     this.map      = map;
     mapWidth      = map.GetLength(0) - 2;
     mapHeight     = map.GetLength(1) - 2;
     pos           = new int[2];
     pos[0]        = x;
     pos[1]        = y;
     this.dungeon  = dungeon;
     probabilities = new float[4] {
         8.0f, 3.0f, 3.0f, 1.0f
     };
 }