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