コード例 #1
0
 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);
 }
コード例 #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);
        }
コード例 #3
0
 public LocationShapeGenerator(TilesMap tilesMap, LocationsMap locationsMap, Random random)
 {
     this.tilesMap              = tilesMap;
     this.locationsMap          = locationsMap;
     this.rouletteWheelSelector = new RouletteWheelSelector(random);
 }