Ejemplo n.º 1
0
 public LevelConfiguration(TweakPicker tp, SegPicker sp, OptimizationSetup optimizationSetup, InitialWanderSetup iws)
 {
     TweakPicker        = tp;
     SegPicker          = sp;
     OptimizationSetup  = optimizationSetup;
     InitialWanderSetup = iws;
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 3
0
        public string GetStr()
        {
            var os = OptimizationSetup.GetStr();

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