示例#1
0
 public Building(Resource resource, int resourceCycle, Unit unit, int unitCycle)
 {
     this.Resource = resource;
     this.ResourceCycle = resourceCycle;
     this.Unit = unit;
     this.UnitCycle = unitCycle;
     this.counter = 0;
 }
示例#2
0
文件: Army.cs 项目: byclops/softuni
 public void Add(Unit unit)
 {
     this.army.Add(unit);
     if (!this.count.ContainsKey(unit.ID))
     {
         this.count[unit.ID] = 0;
     }
     this.count[unit.ID]++;
 }
示例#3
0
文件: BaseDB.cs 项目: byclops/softuni
 public void AddUnit(Unit unit)
 {
     this.army.Add(unit);
 }