public virtual void TroopCombatMethodAttack(Troop sending, Troop receiving, CombatMethod combatMethod) { }
public virtual void TroopSetCombatMethod(Troop troop, CombatMethod combatMethod) { }
private void troop_OnSetCombatMethod(Troop troop, CombatMethod combatMethod) { Session.MainGame.mainGameScreen.TroopSetCombatMethod(troop, combatMethod); }
private void troop_OnCombatMethodAttack(Troop sending, Troop receiving, CombatMethod combatMethod) { Session.MainGame.mainGameScreen.TroopCombatMethodAttack(sending, receiving, combatMethod); }
private void troop_OnSetCombatMethod(Troop troop, CombatMethod combatMethod) { troop.Scenario.GameScreen.TroopSetCombatMethod(troop, combatMethod); }
private void troop_OnCombatMethodAttack(Troop sending, Troop receiving, CombatMethod combatMethod) { sending.Scenario.GameScreen.TroopCombatMethodAttack(sending, receiving, combatMethod); }
internal void SetTroop(Troop troop) { bool leader; this.ShowingTroop = troop; this.TroopNameText.Text = troop.DisplayName; List <LabelText> .Enumerator enumerator = this.LabelTexts.GetEnumerator(); try { while (true) { leader = enumerator.MoveNext(); if (!leader) { break; } LabelText current = enumerator.Current; current.Text.Text = StaticMethods.GetPropertyValue(troop, current.PropertyName).ToString(); } } finally { enumerator.Dispose(); } this.OtherPersonText.AddText("其他人物", Color.Yellow); this.OtherPersonText.AddNewLine(); int personCount = troop.PersonCount - 1; this.OtherPersonText.AddText(string.Concat(personCount.ToString(), "人"), Color.Lime); this.OtherPersonText.AddNewLine(); IEnumerator enumerator1 = troop.Persons.GetEnumerator(); try { while (true) { leader = enumerator1.MoveNext(); if (!leader) { break; } Person person = (Person)enumerator1.Current; leader = person != troop.Leader; if (leader) { this.OtherPersonText.AddText(person.Name); this.OtherPersonText.AddNewLine(); } } } finally { IDisposable disposable = enumerator1 as IDisposable; leader = disposable == null; if (!leader) { disposable.Dispose(); } } this.OtherPersonText.ResortTexts(); this.CombatMethodText.AddText("部队战法", Color.Yellow); this.CombatMethodText.AddNewLine(); personCount = troop.CombatMethods.Count; this.CombatMethodText.AddText(string.Concat(personCount.ToString(), "种"), Color.Lime); this.CombatMethodText.AddNewLine(); Dictionary <int, CombatMethod> .ValueCollection.Enumerator enumerator2 = troop.CombatMethods.CombatMethods.Values.GetEnumerator(); try { while (true) { leader = enumerator2.MoveNext(); if (!leader) { break; } CombatMethod combatMethod = enumerator2.Current; this.CombatMethodText.AddText(combatMethod.Name, Color.Red); personCount = combatMethod.Combativity - troop.DecrementOfCombatMethodCombativityConsuming; this.CombatMethodText.AddText(string.Concat(" 战意消耗", personCount.ToString()), Color.LightGreen); this.CombatMethodText.AddNewLine(); } } finally { enumerator2.Dispose(); } this.CombatMethodText.ResortTexts(); this.StuntText.AddText("部队特技", Color.Yellow); this.StuntText.AddNewLine(); personCount = troop.Stunts.Count; this.StuntText.AddText(string.Concat(personCount.ToString(), "种"), Color.Lime); this.StuntText.AddNewLine(); Dictionary <int, Stunt> .ValueCollection.Enumerator enumerator3 = troop.Stunts.Stunts.Values.GetEnumerator(); try { while (true) { leader = enumerator3.MoveNext(); if (!leader) { break; } Stunt stunt = enumerator3.Current; this.StuntText.AddText(stunt.Name, Color.Red); personCount = stunt.Combativity; this.StuntText.AddText(string.Concat(" 战意消耗", personCount.ToString()), Color.LightGreen); this.StuntText.AddNewLine(); } } finally { enumerator3.Dispose(); } this.StuntText.ResortTexts(); this.InfluenceText.AddText("部队特性", Color.Yellow); this.InfluenceText.AddNewLine(); this.InfluenceText.AddText(this.ShowingTroop.Army.Kind.Name, Color.Lime); this.InfluenceText.AddNewLine(); Dictionary <int, Influence> .ValueCollection.Enumerator enumerator4 = this.ShowingTroop.Army.Kind.Influences.Influences.Values.GetEnumerator(); try { while (true) { leader = enumerator4.MoveNext(); if (!leader) { break; } Influence influence = enumerator4.Current; this.InfluenceText.AddText(influence.Name, Color.Red); this.InfluenceText.AddText(influence.Description, Color.LightGreen); this.InfluenceText.AddNewLine(); } } finally { enumerator4.Dispose(); } this.InfluenceText.ResortTexts(); }