Class AttackCard


  • public class AttackCard
    extends Object
    Holds data in the database for attack cards. This includes enumerated types from * the AttackType enums.
    • Constructor Detail

      • AttackCard

        public AttackCard()
    • Method Detail

      • getId

        public long getId()
        Returns the auto-generated id for the attack card.
        Returns:
      • setId

        public void setId​(long id)
        Sets the auto-generated id for the player.
        Parameters:
        id - The id to be set.
      • getUnitCardId

        public long getUnitCardId()
        Returns the unit card id of the attack card.
        Returns:
      • setUnitCardId

        public void setUnitCardId​(long unitCardId)
        Sets the unit card id of the attack card.
        Parameters:
        unitCardId - The id of the unitcard.
      • getAttackType

        @NonNull
        public AttackType getAttackType()
        Returns the attack type of the attack card: an enumerated type from the AttackType enum.
        Returns:
      • setAttackType

        public void setAttackType​(@NonNull
                                  AttackType attackType)
        Sets the attack type of the attack card: an enumerated type from the AttackType enum.
        Parameters:
        attackType - The attack type of the attack card.