示例#1
0
        protected SubsetSolver(Level level, bool incremental)
        {
            this.level = level;

            pathFinder = PathFinder.CreateInstance(level,false, incremental);
            regionFinder = RegionFinder.CreateInstance(level);

            sokobanMap = new Array2D<bool>(level.Height, level.Width);
            cancelInfo = new CancelInfo();
        }
示例#2
0
 private void Initialize()
 {
     this.data = level.Data;
     this.boxCoordinates = level.BoxCoordinates;
     this.boxes = level.Boxes;
     this.cancelInfo = new CancelInfo();
 }
示例#3
0
 public Solver()
 {
     this.maximumNodes = 10000000;
     this.initialCapacity = 10000000;
     this.optimizeMoves = true;
     this.optimizePushes = true;
     this.info = "Not started";
     this.error = "";
     this.allocated = false;
     this.verbose = false;
     this.detectNoInfluencePushes = true;
     this.calculateDeadlocks = true;
     this.hardCodedDeadlocks = false;
     this.CollectSolutions = true;
     this.solutions = new List<MoveList>();
     this.deadlocksDirectory = null;
     this.cancelInfo = new CancelInfo();
 }