Class PlayerLeaderboardEntry
- java.lang.Object
-
- com.cmput301w23t09.qrhunter.leaderboard.LeaderboardEntry
-
- com.cmput301w23t09.qrhunter.leaderboard.PlayerLeaderboardEntry
-
- All Implemented Interfaces:
LeaderboardAdapterItem<LeaderboardEntry>
public class PlayerLeaderboardEntry extends LeaderboardEntry
Represents a player leaderboard entry item.
-
-
Constructor Summary
Constructors Constructor Description PlayerLeaderboardEntry(int position, Player player, long score, java.lang.String scoreSuffix)
Constructor for a player leaderboard entry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Player
getPlayer()
Retrieve the player this entry represents.-
Methods inherited from class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardEntry
getName, getPosition, getScore, getScoreSuffix, getView
-
-
-
-
Constructor Detail
-
PlayerLeaderboardEntry
public PlayerLeaderboardEntry(int position, Player player, long score, java.lang.String scoreSuffix)
Constructor for a player leaderboard entry- Parameters:
player
- player of the leaderboard entryscore
- score of the leaderboard entryscoreSuffix
- suffix to use for the leaderboard entry
-
-
Method Detail
-
getPlayer
public Player getPlayer()
Retrieve the player this entry represents.- Returns:
- the player
-
-