Package com.deco2800.game.memento
package com.deco2800.game.memento
-
ClassesClassDescriptionthe caretaker object records and stores the player state into the internal memory for the engine to retrieve in the future A combination of singleton and memento design pattern, which allows memento to be retrieved from anywhere in the game and restrict it to only having one instance, hence preventing duplication of memento and allows better managementthe object that is maintaining the state of the originator.Part of the memento design pattern, originator is the object to store the states of the player, this includes the player's inventory states (e.g.