示例#1
0
文件: Gun.cs 项目: havri/ActionGame
 /// <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
文件: Gun.cs 项目: havri/ActionGame
 /// <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)
 {
 }