Class UnitCard
- java.lang.Object
-
- edu.cnm.deepdive.cardcombat.model.entity.UnitCard
-
-
Constructor Summary
Constructors Constructor Description UnitCard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCurrentHitPoints()
Returns the current hit points of the unit card.int
getCurrentMagicPoints()
Returns the current magic points of the unit card.long
getDeckId()
Returns the deck id for the unit card.long
getId()
Returns the auto-generated id for the unit card.Unit
getUnit()
Returns the unit of the unit card (SWORDMASTER, DRAGOON, etc.): an enumerated type from theUnit
enum.void
setCurrentHitPoints(int currentHitPoints)
Sets the current hit points of the unit card.void
setCurrentMagicPoints(int currentMagicPoints)
Sets the current magic points of the unit card.void
setDeckId(long deckId)
Sets the deck id for the unit card.void
setId(long id)
Sets the auto-generated id for the scale.void
setUnit(Unit unit)
Sets the unit of the unit card (SWORDMASTER, DRAGOON, etc.): an enumerated type from theUnit
enum.
-
-
-
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 theUnit
enum.- Returns:
-
setUnit
public void setUnit(@NonNull Unit unit)
Sets the unit of the unit card (SWORDMASTER, DRAGOON, etc.): an enumerated type from theUnit
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.
-
-