예제 #1
0
        public double MinDamage; // for Fireball

        public AProjectile(Projectile unit) : base(unit)
        {
            SpeedX            = unit.SpeedX;
            SpeedY            = unit.SpeedY;
            Speed             = Geom.Hypot(SpeedX, SpeedY);
            Type              = unit.Type;
            OwnerUnitId       = unit.OwnerUnitId;
            RemainingDistance = 0; // это значение должно перезаписываться использующим кодом
            _setupDefaultDamage();
        }
예제 #2
0
 public AProjectile(AProjectile unit) : base(unit)
 {
     SpeedX            = unit.SpeedX;
     SpeedY            = unit.SpeedY;
     Speed             = Geom.Hypot(SpeedX, SpeedY);
     Type              = unit.Type;
     OwnerUnitId       = unit.OwnerUnitId;
     RemainingDistance = unit.RemainingDistance;
     Damage            = unit.Damage;
     MinDamage         = unit.MinDamage;
 }