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 * theAttackTypeenums.
-
-
Constructor Summary
Constructors Constructor Description AttackCard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttackTypegetAttackType()Returns the attack type of the attack card: an enumerated type from theAttackTypeenum.longgetId()Returns the auto-generated id for the attack card.longgetUnitCardId()Returns the unit card id of the attack card.voidsetAttackType(AttackType attackType)Sets the attack type of the attack card: an enumerated type from theAttackTypeenum.voidsetId(long id)Sets the auto-generated id for the player.voidsetUnitCardId(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 theAttackTypeenum.- Returns:
-
setAttackType
public void setAttackType(@NonNull AttackType attackType)
Sets the attack type of the attack card: an enumerated type from theAttackTypeenum.- Parameters:
attackType- The attack type of the attack card.
-
-