Package com.csse3200.game.gamestate
Class Achievements
java.lang.Object
com.csse3200.game.gamestate.Achievements
A data struct that contains other data structs to be saved to JSONs by SaveHandler.
Fields MUST be static.
To be kept between playthroughs.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Checks whether GameState correctly loaded.static void
Clears all the GameState contents and resets them to their original state.static void
Clears the contents of the GameState.
-
Field Details
-
achievements
-
-
Method Details
-
resetState
public static void resetState()Clears the contents of the GameState. -
checkState
public static boolean checkState()Checks whether GameState correctly loaded.- Returns:
- a boolean to indicate whether GameState was correctly loaded.
-
clearState
public static void clearState()Clears all the GameState contents and resets them to their original state.
-