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