a little more WheneverKeyword cleanup

This commit is contained in:
jendave
2011-08-06 23:56:08 +00:00
parent a08a71c553
commit 25efb35467
4 changed files with 0 additions and 18 deletions

View File

@@ -33,10 +33,6 @@ public class AIPlayer extends Player{
return p1.getName().equals(this.name);
}
protected Card getPlayerCard() {
return AllZone.CardFactory.ComputerNullCard;
}
///////////////
///
/// End transition methods

View File

@@ -33,10 +33,6 @@ public class HumanPlayer extends Player{
return p1.getName().equals(this.name);
}
protected Card getPlayerCard() {
return AllZone.CardFactory.HumanNullCard;
}
///////////////
///
/// End transition methods

View File

@@ -154,8 +154,6 @@ public abstract class Player extends MyObservable{
return newLifeSet;
}
protected abstract Card getPlayerCard();
public boolean canGainLife() {
if(AllZoneUtil.isCardInPlay("Sulfuric Vortex") || AllZoneUtil.isCardInPlay("Leyline of Punishment") ||
AllZoneUtil.isCardInPlay("Platinum Emperion", this) || AllZoneUtil.isCardInPlay("Forsaken Wastes")) return false;

View File

@@ -59,9 +59,6 @@ public class CardFactory implements NewConstants {
private HashSet<String> removedCardList;
private Card blankCard = new Card(); //new code
// The Following "Cards" are used by the Whenever Keyword
public Card HumanNullCard = new Card();
public Card ComputerNullCard = new Card();
public CardFactory(String filename) {
this(new File(filename));
@@ -88,11 +85,6 @@ public class CardFactory implements NewConstants {
blankCard.setOwner(AllZone.HumanPlayer);
blankCard.setController(AllZone.HumanPlayer);
HumanNullCard.setOwner(AllZone.HumanPlayer);
HumanNullCard.setController(AllZone.HumanPlayer);
ComputerNullCard.setOwner(AllZone.ComputerPlayer);
ComputerNullCard.setController(AllZone.ComputerPlayer);
removedCardList = new HashSet<String>(FileUtil.readFile(ForgeProps.getFile(REMOVED)));