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); }
public Projectile(Game game, Creature attacker, OnHitProjectileDelegate onHit) : base(game) { this.attacker = attacker; this.onHit += onHit; }