Пример #1
0
 /// <summary>
 /// Creates a new gun
 /// </summary>
 /// <param name="type">The type of this gun</param>
 /// <param name="bullets">The number of available ammo</param>
 /// <param name="handler">The holder of this gun</param>
 /// <param name="game">The game</param>
 public Gun(GunType type, int bullets, Human handler, ActionGame game)
     : base(type.Icon, handler, game)
 {
     this.type    = type;
     this.bullets = bullets;
 }
Пример #2
0
 /// <summary>
 /// Creates a new gun.
 /// </summary>
 /// <param name="type">The type of this gun</param>
 /// <param name="bullets">The number of available ammo</param>
 /// <param name="game">The game</param>
 public Gun(GunType type, int bullets, ActionGame game)
     : this(type, bullets, null, game)
 {
 }