Fix: change score -> record, bestRecord

This commit is contained in:
2018-05-29 20:35:38 +09:00
parent 089a7d0b5c
commit f1cab7de3f
11 changed files with 68 additions and 64 deletions
+4 -4
View File
@@ -1,10 +1,10 @@
class RankingRecord {
constructor(rank, userID, userName, score) {
constructor(rank, userID, userName, bestRecord) {
this.rank = rank;
this.userID = userID;
this.userName = userName;
this.score = score;
this.bestRecord = bestRecord;
}
}
@@ -44,8 +44,8 @@ class RankingRecordManager {
return this.rankingRecords[index].userName;
}
getScoreAt(index) {
return this.rankingRecords[index].score;
getBestRecordAt(index) {
return this.rankingRecords[index].bestRecord;
}
}