Esempio n. 1
0
 public abstract void undoEffect(Tower tower);
Esempio n. 2
0
 public abstract void applyEffect(Tower tower);
 public override void applyEffect(Tower tower)
 {
     if (tower.DefaultDamage != 0) {
         tower.CurrentDamage = (int)(tower.DefaultDamage * (1 + damageInc));
     }
 }
 public override void undoEffect(Tower tower)
 {
     tower.CurrentDamage = tower.DefaultDamage;
 }
Esempio n. 5
0
 protected float Distance(Tower tower)
 {
     // Standard distance formula
     return (tower.Center - center).Length ();
 }