Package com.deco2800.game.files.stats
Class GameRecords.Score
java.lang.Object
com.deco2800.game.files.stats.GameRecords.Score
- Enclosing class:
- GameRecords
public static class GameRecords.Score
extends java.lang.Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Score()
-
Method Summary
Modifier and Type Method Description java.time.LocalDateTime
getDateTime()
Returns local date and time object of when the game ended, i.e, the time of player's death.java.lang.Integer
getScore()
In game score
-
Field Details
-
Constructor Details
-
Score
public Score()
-
-
Method Details
-
getDateTime
public java.time.LocalDateTime getDateTime()Returns local date and time object of when the game ended, i.e, the time of player's death.LocalDateTime objects are easier to work with. Parse the given dateTime string into a LocalDateTime object.
Note: This could be mapped to the JSON but the FileLoader gives SEVERE type errors when reading the file.
- Returns:
- LocalDateTime object of the dateTime property
-
getScore
public java.lang.Integer getScore()In game score- Returns:
- the score of the particular game
-