public GSAI(Empire e) { this.EmpireName = e.data.Traits.Name; this.empire = e; this.DefensiveCoordinator = new Ship_Game.DefensiveCoordinator(e); if (this.empire.data.EconomicPersonality != null) { this.numberOfShipGoals = this.numberOfShipGoals + this.empire.data.EconomicPersonality.ShipGoalsPlus; } // this.desired_ColonyGoals = (int)this.empire.data.difficulty; }
protected void Dispose(bool disposing) { if (!disposed) { if (disposing) { if (this.TaskList != null) this.TaskList.Dispose(); if (this.DefensiveCoordinator != null) this.DefensiveCoordinator.Dispose(); if (this.Goals != null) this.Goals.Dispose(); } this.TaskList = null; this.DefensiveCoordinator = null; this.Goals = null; this.disposed = true; } }