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

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

  • 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.

      clone in class Actor
      An exact clone.
    • getAttack

      public int getAttack()
      getAttack in class Actor
    • getEntityType

      public com.hiddenswitch.spellsource.client.models.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
      An EntityType
    • setBaseStats

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

      public boolean equals​(java.lang.Object other)
      equals in class java.lang.Object
    • getCopy

      public Minion getCopy()
      getCopy in class Actor
    • getDefaultActiveTriggerZones

      public 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