mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
a little more WheneverKeyword cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)));
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user