Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 protected void InsertUnit(Unit unit)
 {
     this.containedUnits.Add(unit);
 }
Ejemplo n.º 3
0
 public UnitInfo(Unit unit) 
     : this(unit.Id, unit.UnitClassification, unit.Health, unit.Power, unit.Aggression)
 {
 }