示例#1
0
 public Pathfinder(IMyCubeGrid grid, AllNavigationSettings navSet, Mover mover)
 {
     grid.throwIfNull_argument("grid");
     m_grid             = grid;
     m_logger           = new Logger(() => grid.DisplayName, () => m_pathState.ToString(), () => m_rotateState.ToString());
     m_pathChecker      = new PathChecker(grid);
     m_rotateChecker    = new RotateChecker(grid);
     m_navSet           = navSet;
     m_mover            = mover;
     m_planetCheckDest  = new PlanetChecker(grid);
     m_planetCheckSpeed = new PlanetChecker(grid);
     m_logger.debugLog("Initialized, grid: " + grid.DisplayName);
 }
示例#2
0
		public Pathfinder(IMyCubeGrid grid, AllNavigationSettings navSet, Mover mover)
		{
			grid.throwIfNull_argument("grid");
			m_grid = grid;
			m_logger = new Logger("Pathfinder", () => grid.DisplayName, () => m_pathState.ToString(), () => m_rotateState.ToString());
			m_pathChecker = new PathChecker(grid);
			m_rotateChecker = new RotateChecker(grid);
			m_navSet = navSet;
			m_mover = mover;
			m_logger.debugLog("Initialized, grid: " + grid.DisplayName, "Pathfinder()");
		}