Class UnitCard


  • public class UnitCard
    extends Object
    Holds data in the database for available unit cards to be used. This includes enumerated types from the Unit enum.
    • Constructor Detail

      • UnitCard

        public UnitCard()
    • Method Detail

      • getId

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

        public void setId​(long id)
        Sets the auto-generated id for the scale.
        Parameters:
        id - The id for the scale.
      • getDeckId

        public long getDeckId()
        Returns the deck id for the unit card.
        Returns:
      • setDeckId

        public void setDeckId​(long deckId)
        Sets the deck id for the unit card.
        Parameters:
        deckId - The deck id for the unit card.
      • getUnit

        @NonNull
        public Unit getUnit()
        Returns the unit of the unit card (SWORDMASTER, DRAGOON, etc.): an enumerated type from the Unit enum.
        Returns:
      • setUnit

        public void setUnit​(@NonNull
                            Unit unit)
        Sets the unit of the unit card (SWORDMASTER, DRAGOON, etc.): an enumerated type from the Unit enum.
        Parameters:
        unit - The unit of the unit card.
      • getCurrentHitPoints

        public int getCurrentHitPoints()
        Returns the current hit points of the unit card.
        Returns:
      • setCurrentHitPoints

        public void setCurrentHitPoints​(int currentHitPoints)
        Sets the current hit points of the unit card.
        Parameters:
        currentHitPoints - The amount of hit points for the unit card.
      • getCurrentMagicPoints

        public int getCurrentMagicPoints()
        Returns the current magic points of the unit card.
        Returns:
      • setCurrentMagicPoints

        public void setCurrentMagicPoints​(int currentMagicPoints)
        Sets the current magic points of the unit card.
        Parameters:
        currentMagicPoints - The amount of magic points the unit card.