public override void Shutdown() { this.m_CommandAI = (CombatAI)null; this.m_PatrolObjective = (PatrolObjective)null; this.m_ThreatsInRange.Clear(); base.Shutdown(); }
public DefendPlanetObjective( StellarBody planet, CombatAI command, PatrolObjective patrolObjective) { this.m_ObjectiveType = ObjectiveType.DEFEND_TARGET; this.m_Planet = planet; this.m_CommandAI = command; this.m_TaskGroups = new List <TaskGroup>(); this.m_ThreatsInRange = new List <EnemyGroup>(); this.m_RequestTaskGroup = false; this.m_PatrolObjective = patrolObjective; }
public EvadeEnemyObjective( CombatAI command, PatrolObjective patrolObjective, float sensorRange) { this.m_ObjectiveType = ObjectiveType.EVADE_ENEMY; this.m_CommandAI = command; this.m_TaskGroups = new List <TaskGroup>(); this.m_ThreatsInRange = new List <EnemyGroup>(); this.m_RequestTaskGroup = false; this.m_IsUnsafe = false; this.m_PatrolObjective = patrolObjective; this.m_ShipSensorRange = sensorRange; }