public GPChain(Vector2 position, GPlayer shoot, GEnemy target, List<GEnemy> list) : base(position, 14, Vector2.Zero, shoot) { tar = target; list.Add(tar); tag = list; bolt = new LightningBolt(pos, tar.pos); }
public override void OnStrike(short dmg, GEnemy ge) { score += dmg; hp += (short)(dmg / 5); }
/// <summary>Called when this player has dealt damage to an enemy</summary> /// <param name="dmg">Amount of damage dealt</param> /// <param name="ge">The struck enemy</param> public abstract void OnStrike(short dmg, GEnemy ge);
public override void OnStrike(short dmg, GEnemy ge) { score += dmg; }