- Removed some unused functions.

This commit is contained in:
Sloth
2012-05-23 15:33:25 +00:00
parent 6ef642cdf1
commit 2c2d6df64e
3 changed files with 2 additions and 34 deletions

View File

@@ -107,12 +107,6 @@ public class AbilityTriggered extends Ability implements Command {
return false;
} // this is a triggered ability: it cannot be "played"
/** {@inheritDoc} */
@Override
public final boolean canAfford() {
return false;
} // this is a triggered ability: it cannot be "afforded"
/** {@inheritDoc} */
@Override
public final void resolve() {

View File

@@ -30,7 +30,6 @@ import forge.card.abilityfactory.AbilityFactory;
import forge.card.cost.Cost;
import forge.card.mana.Mana;
import forge.control.input.Input;
import forge.game.player.ComputerUtil;
import forge.game.player.Player;
//only SpellAbility can go on the stack
@@ -161,29 +160,6 @@ public abstract class SpellAbility {
*/
public abstract boolean canPlay();
/**
* Can afford.
*
* @return boolean
*/
public boolean canAfford() {
Player activator = this.getActivatingPlayer();
if (activator == null) {
activator = this.getSourceCard().getController();
}
return ComputerUtil.canPayCost(this, activator);
}
/**
* Can play and afford.
*
* @return true, if successful
*/
public final boolean canPlayAndAfford() {
return this.canPlay() && this.canAfford();
}
// all Spell's and Abilities must override this method
/**
* <p>

View File

@@ -19,8 +19,6 @@ package forge.card.spellability;
import java.util.ArrayList;
import forge.game.player.ComputerUtil;
/**
* <p>
* SpellAbilityList class.
@@ -135,7 +133,7 @@ public class SpellAbilityList {
* execute.
* </p>
*/
public final void execute() {
/*public final void execute() {
for (int i = 0; i < this.size(); i++) {
if (!ComputerUtil.canPayCost(this.get(i))) {
throw new RuntimeException("SpellAbilityList : execute() error, cannot pay for the spell "
@@ -144,7 +142,7 @@ public class SpellAbilityList {
ComputerUtil.playNoStack(this.get(i));
}
} // execute()
}*/ // execute()
/** {@inheritDoc} */
@Override