Пример #1
0
 public ApplySilencer(AutomaticGun gun) : base(gun)
 {
     this.FireOptions = new FireOptions
     {
         Accuracy    = gun.FireOptions.Accuracy,
         Volume      = gun.FireOptions.Volume - 1,
         Convenience = gun.FireOptions.Convenience
     };
 }
Пример #2
0
 public ApplyLaserSight(AutomaticGun gun) : base(gun)
 {
     this.FireOptions = new FireOptions
     {
         Accuracy    = gun.FireOptions.Accuracy + 5,
         Volume      = gun.FireOptions.Volume,
         Convenience = gun.FireOptions.Convenience
     };
 }
Пример #3
0
 public ApplyButt(AutomaticGun gun) : base(gun)
 {
     this.FireOptions = new FireOptions
     {
         Accuracy    = gun.FireOptions.Accuracy,
         Volume      = gun.FireOptions.Volume,
         Convenience = gun.FireOptions.Convenience + 10
     };
 }
Пример #4
0
 public AutomaticGunDecorator(AutomaticGun gun)
 {
     this.gun = gun;
 }