Ejemplo n.º 1
0
 public LaserTurret(LaserTurret turret)
 {
     Offset              = turret.Offset;
     EnergyCost          = turret.EnergyCost;
     TurnRate            = turret.TurnRate;
     Type                = turret.Type;
     Cooldown            = turret.Cooldown + turret.Duration;
     Length              = turret.Length;
     MiddleLength        = turret.MiddleLength;
     BaseTurnrate        = turret.BaseTurnrate;
     Speed               = turret.Speed;
     Range               = turret.Range;
     Duration            = turret.Duration;
     Start               = turret.Start;
     Middle              = turret.Middle;
     End                 = turret.End;
     Damage              = turret.Damage;
     SoundEffect         = turret.SoundEffect;
     SoundEffectInstance = turret.SoundEffectInstance;
     //Sprite
     Rotation  = turret.Rotation;
     Position  = turret.Position;
     Rectangle = turret.Rectangle;
     Origin    = turret.Origin;
     Texture   = turret.Texture;
     //End
     Start  = new Sprite(turret.Start);
     Middle = new Sprite(turret.Middle);
     End    = new Sprite(turret.End);
 }
Ejemplo n.º 2
0
        public ITurret CloneTurret(ITurret turret)
        {
            var tempTurret = new LaserTurret();

            tempTurret = (LaserTurret)turret;
            return(tempTurret);
        }