Class ChallengeAttemptWithPlayer
- java.lang.Object
-
- edu.cnm.deepdive.scalescroller.model.entity.ChallengeAttempt
-
- edu.cnm.deepdive.scalescroller.model.pojo.ChallengeAttemptWithPlayer
-
public class ChallengeAttemptWithPlayer extends ChallengeAttempt
ChallengeAttemptWithPlayerextends theChallengeAttemptentity to provide support for queries that need thePlayerobject in addition to the ChallengeAttempt object.
-
-
Constructor Summary
Constructors Constructor Description ChallengeAttemptWithPlayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlayergetPlayer()Returns thePlayerassociated with theChallengeAttempt.voidsetPlayer(Player player)Sets thePlayerassociated with theChallengeAttempt.-
Methods inherited from class edu.cnm.deepdive.scalescroller.model.entity.ChallengeAttempt
getCorrectCoins, getId, getIncorrectCoins, getLastScaleId, getPlayerId, getTimestamp, getTotalScore, setCorrectCoins, setId, setIncorrectCoins, setLastScaleId, setPlayerId, setTimestamp, setTotalScore
-
-
-
-
Method Detail
-
getPlayer
public Player getPlayer()
Returns thePlayerassociated with theChallengeAttempt.- Returns:
- The player associated with the attempt.
-
setPlayer
public void setPlayer(Player player)
Sets thePlayerassociated with theChallengeAttempt.- Parameters:
player- ThePlayerobject to be set.
-
-