All Implemented Interfaces:
Serializable, Cloneable, Comparable<Entity>, HasCard

public final class Minion extends Actor
See Also:
  • Constructor Details

    • Minion

      public Minion(Card sourceCard)
  • Method Details

    • clone

      public Minion clone()
      Description copied from class: Entity
      Clone an entity, including its ID and location.

      Use this method for emulating an "immutable" view on an entity. This kind of cloning is not suitable for most gameplay situations, because using the clone will cause two entities with identical IDs and locations to exist. Instead, a subclass will provide a getCopy() method that is more helpful for gameplay.

      Overrides:
      clone in class Actor
      Returns:
      An exact clone.
    • getAttack

      public int getAttack()
      Overrides:
      getAttack in class Actor
    • getEntityType

      public com.hiddenswitch.spellsource.rpc.Spellsource.EntityTypeMessage.EntityType getEntityType()
      Description copied from class: Entity
      Gets the type of entity this is. These will very nearly match up with the classes, but are primarily used for filters that e.g. draw a Spell or destroy all Secrets.
      Specified by:
      getEntityType in class Entity
      Returns:
      An Spellsource.EntityTypeMessage.EntityType
    • setBaseStats

      protected void setBaseStats(int baseAttack, int baseHp)
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getCopy

      public Minion getCopy()
      Overrides:
      getCopy in class Actor
    • getDefaultActiveTriggerZones

      public com.hiddenswitch.spellsource.rpc.Spellsource.ZonesMessage.Zones[] getDefaultActiveTriggerZones()
      Description copied from class: Actor
      Gets the zones where the CardDesc.getTrigger() and CardDesc.getTriggers() are active by default.
      Specified by:
      getDefaultActiveTriggerZones in class Actor
      Returns: