Exemplo n.º 1
0
 public abstract void undoEffect(Tower tower);
Exemplo 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;
 }
Exemplo n.º 5
0
 protected float Distance(Tower tower)
 {
     // Standard distance formula
     return (tower.Center - center).Length ();
 }