Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public override void OnStrike(short dmg, GEnemy ge)
 {
     score += dmg;
     hp += (short)(dmg / 5);
 }
Exemplo n.º 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);
Exemplo n.º 4
0
 public override void OnStrike(short dmg, GEnemy ge)
 {
     score += dmg;
 }