Exemple #1
0
 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);
 }
Exemple #2
0
 public override void OnStrike(short dmg, GEnemy ge)
 {
     score += dmg;
     hp += (short)(dmg / 5);
 }
Exemple #3
0
 /// <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);
Exemple #4
0
 public override void OnStrike(short dmg, GEnemy ge)
 {
     score += dmg;
 }