Fix: print ranking list with my rank

This commit is contained in:
2018-05-18 10:28:16 +09:00
parent 60bd151c92
commit 2cecc26e12
5 changed files with 107 additions and 31 deletions
+6 -1
View File
@@ -1,7 +1,8 @@
class RankingRecord {
constructor(rank, userName, score) {
constructor(rank, userID, userName, score) {
this.rank = rank;
this.userID = userID;
this.userName = userName;
this.score = score;
}
@@ -35,6 +36,10 @@ class RankingRecordManager {
return this.rankingRecords[index].rank;
}
getUserIDAt(index) {
return this.rankingRecords[index].userID;
}
getUserNameAt(index) {
return this.rankingRecords[index].userName;
}