示例#1
0
 public override IWeapon GetAWeapon()
 {
     _223_projectile    = new Projectile("Bullet", 55, ".223");
     _223_ammo          = new Ammo(".223", _223_projectile);
     _mag_with_223_ammo = new Mag(_mag_capacity, _223_ammo);
     _ar15 = new Ar15("Rifle", _mag_with_223_ammo);
     return(_ar15);
 }
示例#2
0
 public override IWeapon GetAWeapon()
 {
     _nine_mm_projectile    = new Projectile("Bullet", 115, "9MM");
     _nine_mm_ammo          = new Ammo("9MM", _nine_mm_projectile);
     _mag_with_nine_mm_ammo = new Mag(_mag_capacity, _nine_mm_ammo);
     _glock = new Glock("Pistol", _mag_with_nine_mm_ammo);
     return(_glock);
 }
示例#3
0
 public override IWeapon GetAWeapon()
 {
     _12_gauge_shots         = new Projectile("Shots", 3, "8.4");
     _12_gauge_shells        = new Ammo("12 Gauge", _12_gauge_shots);
     _mag_with_12_gauge_ammo = new Mag(_mag_capacity, _12_gauge_shells);
     _shotgun = new Shotgun("Shotgun", _mag_with_12_gauge_ammo);
     return(_shotgun);
 }
示例#4
0
 public Ar15(string Type, Mag Magazine)
 {
     this.Type     = Type;
     this.Magazine = Magazine;
 }
示例#5
0
 public Shotgun(string Type, Mag Magazine)
 {
     this.Type     = Type;
     this.Magazine = Magazine;
 }
示例#6
0
 public Glock(string Type, Mag Magazine)
 {
     this.Type     = Type;
     this.Magazine = Magazine;
 }