コード例 #1
0
 public HomingProjectile(Game game, Creature target, Creature attacker, OnHitProjectileDelegate onHitDelegate)
     : base(game, attacker, onHitDelegate)
 {
     this.target = target;
     this.duration = null;
     onHit = onHitDelegate;
 }
コード例 #2
0
 public EnchantedCrystalArrowProjectile(Game game, Creature attacker, float damage, float duration, OnHitProjectileDelegate onHit)
     : base(game, attacker, onHit)
 {
     this.damage = damage;
     this.duration = TimeSpan.FromSeconds(duration);
 }
コード例 #3
0
ファイル: Projectile.cs プロジェクト: DanielWieder/Dota-2d
 public Projectile(Game game, Creature attacker, OnHitProjectileDelegate onHit)
     : base(game)
 {
     this.attacker = attacker;
     this.onHit += onHit;
 }