コード例 #1
0
 /// <summary>
 /// This method adds a combatant to the party.
 /// </summary>
 /// <param name="comb">The combatant to be added</param>
 /// <param name="stat">The status of the combatant</param>
 public void AddCombatant(Combatant comb, Status stat)
 {
     this.combatants.Add(comb, stat);
 }
コード例 #2
0
 /// <summary>
 /// This method is meant to be overridden.
 /// It is used to affect the combatant in some way.
 /// </summary>
 public virtual void Affect(Combatant c)
 {
 }
コード例 #3
0
 /// <summary>
 /// This method removes a combatant from the party.
 /// </summary>
 /// <param name="comb">The combatant to be removed</param>
 public void RemoveCombatant(Combatant comb)
 {
     this.combatants.Remove(comb);
 }