示例#1
0
 public HomingProjectile(Game game, Creature target, Creature attacker, OnHitProjectileDelegate onHitDelegate)
     : base(game, attacker, onHitDelegate)
 {
     this.target = target;
     this.duration = null;
     onHit = onHitDelegate;
 }
 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
 public Projectile(Game game, Creature attacker, OnHitProjectileDelegate onHit)
     : base(game)
 {
     this.attacker = attacker;
     this.onHit += onHit;
 }