Class AttackCard
- java.lang.Object
-
- edu.cnm.deepdive.cardcombat.model.entity.AttackCard
-
public class AttackCard extends Object
Holds data in the database for attack cards. This includes enumerated types from * theAttackType
enums.
-
-
Constructor Summary
Constructors Constructor Description AttackCard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttackType
getAttackType()
Returns the attack type of the attack card: an enumerated type from theAttackType
enum.long
getId()
Returns the auto-generated id for the attack card.long
getUnitCardId()
Returns the unit card id of the attack card.void
setAttackType(AttackType attackType)
Sets the attack type of the attack card: an enumerated type from theAttackType
enum.void
setId(long id)
Sets the auto-generated id for the player.void
setUnitCardId(long unitCardId)
Sets the unit card id of the attack card.
-
-
-
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 theAttackType
enum.- Returns:
-
setAttackType
public void setAttackType(@NonNull AttackType attackType)
Sets the attack type of the attack card: an enumerated type from theAttackType
enum.- Parameters:
attackType
- The attack type of the attack card.
-
-