public static MapSettings HotseatSettings() { eMap mapType = eMap.Basic; eTileShape tileShape = eTileShape.Square; int xDim = 19; int yDim = 19; bool wrapEastWest = false; bool wrapNorthSouth = false; float percentOcean = 0.3f; float percentRiver = 0.01f; int expansionFactor = 0; WaterBodyPrefence wbp = WaterBodyPrefence.Continent; MapSettings settings = new MapSettings(mapType, tileShape, xDim, yDim, wrapEastWest, wrapNorthSouth, percentOcean, percentRiver, expansionFactor, wbp); return(settings); }
public MapInfo(HomelandsGame g, Dictionary <Pos, HomelandsLocation> locs, MapSettings settings, Dictionary <string, Pos> pm) { _settings = settings; game = g; locations = locs; tileShape = settings._tileShape; wrapEW = settings._wrapEastWest; wrapNS = settings._wrapNorthSouth; pathMap = pm; }
public MapSettings(MapConfigs configs) { _mapType = configs._mapType; _tileShape = configs._tileShape; _xDim = configs.xDim; _yDim = configs.yDim; _wrapEastWest = configs.wrapEastWest; _wrapNorthSouth = configs.wrapNorthSouth; _percentOcean = configs.percentLand; _percentRiver = configs.percentRiver; _expansionFactor = configs.expansionFactor; _waterBodyPref = configs.waterBodyPref; }
public static IMapBuilder Make(eMap mapType, eTileShape tileShape, HomelandsGame game) { if (mapType == eMap.Gaea) { return(new MapBuilderGaea(game, tileShape)); } else if (mapType == eMap.Basic) { return(new MapBuilderBasic(game, tileShape)); } else { throw new System.NotImplementedException(); } }
public static IMapLocSetter Make(eTileShape tileShape) { if (tileShape == eTileShape.Square) { return(new MapLocSetterSquare()); } else if (tileShape == eTileShape.Hex) { return(new MapLocSetterHex()); } else { throw new System.NotImplementedException(); } }
public MapSettings(eMap mapType, eTileShape tileShape, int xDim, int yDim, bool wrapEastWest, bool wrapNorthSouth, float percentOcean, float percentRiver, int expansionFactor, WaterBodyPrefence waterBodyPref) { _mapType = mapType; _tileShape = tileShape; _xDim = xDim; _yDim = yDim; _wrapEastWest = wrapEastWest; _wrapNorthSouth = wrapNorthSouth; _percentOcean = percentOcean; _percentRiver = percentRiver; _expansionFactor = expansionFactor; _waterBodyPref = waterBodyPref; }
public MapBuilderBasic(HomelandsGame game, eTileShape tileShape) { _game = game; _tileShape = tileShape; }