private void AddWeaponSupplement(Unit unit)
 {
     Weapon weapon = null;
     if (unit is Marine)
     {
         weapon = new Weapon(Weapon.WeaponHealth, Weapon.WeaponPower, Weapon.WeaponAggression);
     }
     else
     {
         weapon = new Weapon();
     }
     unit.AddSupplement(weapon);
 }
 protected void InsertUnit(Unit unit)
 {
     this.containedUnits.Add(unit);
 }
Esempio n. 3
0
 public UnitInfo(Unit unit) 
     : this(unit.Id, unit.UnitClassification, unit.Health, unit.Power, unit.Aggression)
 {
 }