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; }
public void Add(Unit unit) { this.army.Add(unit); if (!this.count.ContainsKey(unit.ID)) { this.count[unit.ID] = 0; } this.count[unit.ID]++; }
public void AddUnit(Unit unit) { this.army.Add(unit); }