Class Player

All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Entity>, HasCard

public class Player
extends Entity
implements java.io.Serializable
The Player class stores almost the state that corresponds to a particular player, like a collection of EntityZone objects and select Attribute and PlayerAttribute attributes as an Entity that exists in the game.

Unusually, the Zones.WEAPON and Zones.HERO_POWER zones are located on the Hero entity retrievable by getHero().

More state is discoverable on the GameContext.getEnvironment() and GameContext.getTriggers() fields.

Player entities are the appropriate target of many effects, especially text that seems to "live on" after a card is played. For example, take the card Mark of the Future, which reads: "The next minion you play gains +2/+2 and Taunt." The Enchantment (called also a "trigger" in the card JSON format described by CardDesc) that actually gives the next minion played its buff lives on the EntityReference.FRIENDLY_PLAYER, not on the spell.

See Also:
for more on what player entities are requests to do., for a description of the difference zones (i.e. lists) of entities that each player has., for a description of the class that stores the objects in the game., Serialized Form