public void ChangeMajorEmpireAIState(Empire empire, AIPlayer.PlayerState newState) { if (empire == null) { throw new ArgumentNullException("empire"); } if (this.Released) { return; } Diagnostics.Assert(this.aiPlayerMajorEmpires != null); AIPlayer aiplayer = this.aiPlayerMajorEmpires.Find((AIPlayer_MajorEmpire ai) => ai.MajorEmpire.Index == empire.Index); if (aiplayer != null) { aiplayer.ChangeAIState(newState); } }