コード例 #1
0
ファイル: Grenade.cs プロジェクト: 1jonathan123/Server
 public Grenade(Vector position, Vector direction, GrenadeData grenadeData, Universe.Map map)
     : base(position, direction, grenadeData, map)
 {
     shrapnelsData = grenadeData.shrapnelsData;
     this.map      = map;
     isBombing     = false;
 }
コード例 #2
0
 public VolleyBulletData(int bulletsNumber, int delay, double precision, IBulletData bulletsData)
 {
     this.bulletsNumber = bulletsNumber;
     this.delay         = delay;
     this.precision     = precision;
     this.bulletsData   = bulletsData;
 }
コード例 #3
0
 public MagicBulletData(string modelID, double range, double speed, double radius, IBulletData data)
 {
     this.modelID = modelID;
     this.speed   = speed;
     this.range   = range;
     this.radius  = radius;
     this.data    = data;
 }
コード例 #4
0
 public WeaponData(IBulletData bulletData, int delay, string name)
 {
     this.bulletData = bulletData;
     this.delay      = delay;
     this.name       = name;
 }
コード例 #5
0
ファイル: GrenadeData.cs プロジェクト: 1jonathan123/Server
 public GrenadeData(string modelID, double range, double speed, int shrapnelsNumber, IBulletData shrapnelsData)
     : base(modelID, range, speed, 0, 0, true)
 {
     this.shrapnelsNumber = shrapnelsNumber;
     this.shrapnelsData   = shrapnelsData;
 }
コード例 #6
0
 public Weapon(IBulletData data, int delay, string name)
 {
     this.data  = data;
     this.delay = delay;
     this.name  = name;
 }