Expanded the Whenever Keyword to allow it to trigger when a player gains life and added an object array to the Whenever keyword to store some data. Added Ageless Entity, Ajani Pridemate and Angelic Chorus

This commit is contained in:
jendave
2011-08-06 05:14:45 +00:00
parent f6357681fa
commit b3a1924ab9
8 changed files with 60 additions and 14 deletions

View File

@@ -28,6 +28,9 @@ 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));
@@ -54,6 +57,11 @@ public class CardFactory implements NewConstants {
blankCard.setOwner(Constant.Player.Human);
blankCard.setController(Constant.Player.Human);
HumanNullCard.setOwner(Constant.Player.Human);
HumanNullCard.setController(Constant.Player.Human);
ComputerNullCard.setOwner(Constant.Player.Computer);
ComputerNullCard.setController(Constant.Player.Computer);
removedCardList = new HashSet<String>(FileUtil.readFile(ForgeProps.getFile(REMOVED)));