예제 #1
0
 public Minions(int unitID, int count)
     : base(unitID)
 {
     this.TotalCount = count;
     this.AliveCount = this.TotalCount;
     this.DeadCount = 0;
     this.CurrentHP = this.MaxHP;
     this.Equip = null;
 }
예제 #2
0
 public Corps(int unitID, int count)
     : base(unitID)
 {
     if (count == 0)
     {
         count = 1;
     }
     this.TotalCount = count;
     this.AliveCount = this.TotalCount;
     this.DeadCount = 0;
     this.CurrentHP = this.MaxHP;
     this.Equip = null;
 }
예제 #3
0
 /// <summary>
 /// 默认构造函数
 /// </summary>
 /// <param name="unitID">单位id</param>
 /// <param name="leadership">英雄领导力</param>
 public Hero(int unitID, int leadership)
     : base(unitID)
 {
     this.Leadership = leadership;
     this.Equip = null;
 }