public EnemyLander(Pathfinder pathfinder, PseudoBlock landingGear) { this.m_pathfinder = pathfinder; if (landingGear == null) { Logger.DebugLog("landingGear param is null, not going to land"); return; } this.m_hasLandingGear = landingGear.Block is IMyLandingGear; if (!this.m_hasLandingGear) { Logger.DebugLog("landingGear param is not landing gear: " + landingGear.Block.getBestName() + ", not going to land"); return; } this.m_flyToGrid = new FlyToGrid(pathfinder, finder: m_navSet.Settings_Current.EnemyFinder, landingBlock: landingGear); }
public EnemyLander(Mover mover, AllNavigationSettings navSet, PseudoBlock landingGear) { this.m_logger = new Logger(GetType().Name); this.m_navSet = navSet; if (landingGear == null) { m_logger.debugLog("landingGear param is null, not going to land"); return; } this.m_hasLandingGear = landingGear.Block is IMyLandingGear; if (!this.m_hasLandingGear) { m_logger.debugLog("landingGear param is not landing geat: " + landingGear.Block.getBestName() + ", not going to land"); return; } this.m_flyToGrid = new FlyToGrid(mover, navSet, finder: m_navSet.Settings_Current.EnemyFinder, landingBlock: landingGear); }