Ejemplo n.º 1
0
 public BasicTurret(BasicTurret turret)
 {
     Offset      = turret.Offset;
     EnergyCost  = turret.EnergyCost;
     TurnRate    = turret.TurnRate;
     Type        = turret.Type;
     Cooldown    = turret.Cooldown;
     Speed       = turret.Speed;
     Range       = turret.Range;
     SoundEffect = turret.SoundEffect;
     //Sprite
     Rotation  = turret.Rotation;
     Position  = turret.Position;
     Rectangle = turret.Rectangle;
     Origin    = turret.Origin;
     Texture   = turret.Texture;
     //End
     Shot = new Shot(turret.Shot);
 }
Ejemplo n.º 2
0
        public ITurret CloneTurret(ITurret turret)
        {
            var tempTurret = new BasicTurret((BasicTurret)turret);

            return(tempTurret);
        }