public LocationGenerator(TilesMap tilesMap, LocationsMap locationsMap, ObjectsMap objectsMap, Random random)
 {
     this.tilesMap              = tilesMap;
     this.locationsMap          = locationsMap;
     this.objectsMap            = objectsMap;
     this.random                = random;
     this.rouletteWheelSelector = new RouletteWheelSelector(random);
 }
Ejemplo n.º 2
0
        public ObjectGenerator(TilesMap map, Random random)
        {
            this.random = random;
            this.map    = map;

            rouletteWheelSelector = new RouletteWheelSelector(random);
            objectsMap            = new ObjectsMap(map.Width, map.Height);
            locationsMap          = new LocationsMap(map.Width, map.Height);
            locationsMap.MarkBlockedTiles(map);
        }
 public LocationShapeGenerator(TilesMap tilesMap, LocationsMap locationsMap, Random random)
 {
     this.tilesMap              = tilesMap;
     this.locationsMap          = locationsMap;
     this.rouletteWheelSelector = new RouletteWheelSelector(random);
 }