Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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();
     }
 }
Ejemplo n.º 4
0
 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;
 }