public LevelConfiguration(TweakPicker tp, SegPicker sp, OptimizationSetup optimizationSetup, InitialWanderSetup iws)
 {
     TweakPicker        = tp;
     SegPicker          = sp;
     OptimizationSetup  = optimizationSetup;
     InitialWanderSetup = iws;
 }
Exemple #2
0
 //w/h are the "real" version
 public Level(LevelConfiguration lc, int width, int height, Random rnd, int index)
 {
     LevelConfiguration = lc;
     TweakPicker        = lc.TweakPicker;
     Index  = index;
     Rnd    = rnd;
     Width  = width + 2;
     Height = height + 2;
     Segs   = new LinkedList <Seg>();
     Hits   = new HitManager(Width, Height, false, this);
     InitBoard();
 }
        public string GetStr()
        {
            var os = OptimizationSetup.GetStr();

            if (string.IsNullOrWhiteSpace(os))
            {
                os = "";
            }
            else
            {
                os = " " + os;
            }
            return($"{TweakPicker.GetStr()} {SegPicker.GetName()}{os}");
        }