Abstract Player class. @author Forge @version $Id$
| 73 | * @version $Id$ |
| 74 | */ |
| 75 | public class Player extends GameEntity implements Comparable<Player> { |
| 76 | public static final List<ZoneType> ALL_ZONES = Collections.unmodifiableList(Arrays.asList(ZoneType.Battlefield, |
| 77 | ZoneType.Library, ZoneType.Graveyard, ZoneType.Hand, ZoneType.Exile, ZoneType.Command, ZoneType.Ante, |
| 78 | ZoneType.Sideboard, ZoneType.PlanarDeck, ZoneType.SchemeDeck, ZoneType.AttractionDeck, ZoneType.ContraptionDeck, |
| 79 | ZoneType.Junkyard, ZoneType.Merged, ZoneType.Subgame, ZoneType.None)); |
| 80 | |
| 81 | private int life = 20; |
| 82 | private int startingLife = 20; |
| 83 | private int lifeStartedThisTurnWith = startingLife; |
| 84 | private int lifeLostThisTurn; |
| 85 | private int lifeLostLastTurn; |
| 86 | private int lifeGainedThisTurn; |
| 87 | private int lifeGainedTimesThisTurn; |
| 88 | private int lifeGainedByTeamThisTurn; |
| 89 | private int maxHandSize = 7; |
| 90 | private int startingHandSize = 7; |
| 91 | private boolean unlimitedHandSize = false; |
| 92 | private Card lastDrawnCard; |
| 93 | private int numDrawnThisTurn; |
| 94 | private int numExtraDrawnThisTurn; |
| 95 | private int numDrawnLastTurn; |
| 96 | private int numDrawnThisDrawStep; |
| 97 | private int numCardsInHandStartedThisTurnWith; |
| 98 | private int numExploredThisTurn; |
| 99 | private int numTokenCreatedThisTurn; |
| 100 | private int numForetoldThisTurn; |
| 101 | private int landsPlayedThisTurn; |
| 102 | private int landsPlayedLastTurn; |
| 103 | private int numPowerSurgeLands; |
| 104 | private int spellsCastThisTurn; |
| 105 | private int spellsCastThisGame; |
| 106 | private int spellsCastLastTurn; |
| 107 | private List<Card> spellsCastSinceBeginningOfLastTurn = Lists.newArrayList(); |
| 108 | private int investigatedThisTurn; |
| 109 | private int surveilThisTurn; |
| 110 | private int committedCrimeThisTurn; |
| 111 | private int numFlipsThisTurn; |
| 112 | private int numRollsThisTurn; |
| 113 | private List<Integer> diceRollsThisTurn = Lists.newArrayList(); |
| 114 | private int expentThisTurn; |
| 115 | private int numLibrarySearchedOwn; //The number of times this player has searched his library |
| 116 | private int venturedThisTurn; |
| 117 | private int attractionsVisitedThisTurn; |
| 118 | private int descended; |
| 119 | private int numRingTemptedYou; |
| 120 | private int devotionMod; |
| 121 | private Card ringBearer, theRing; |
| 122 | private int speed; |
| 123 | |
| 124 | private List<Card> discardedThisTurn = new ArrayList<>(); |
| 125 | private List<Card> sacrificedThisTurn = new ArrayList<>(); |
| 126 | |
| 127 | private int simultaneousDamage = 0; |
| 128 | |
| 129 | private int lastTurnNr = 0; |
| 130 | |
| 131 | private String namedCard = ""; |
| 132 |