Package com.mg105.use_cases
Class ReplayGenerator
java.lang.Object
com.mg105.use_cases.ReplayGenerator
A class that implement the game restart and replay function.
this class have players' attribute inheritance method and players' inventory clean method.
-
Constructor Summary
ConstructorDescriptionReplayGenerator
(@NotNull GameState state, @NotNull Resetable... resetables) Create a new ReplayGenerator -
Method Summary
Modifier and TypeMethodDescriptionvoid
replay()
Replay the game by interacting with the MapGenerator classvoid
Revive all characters and add them to the list of alive characters
-
Constructor Details
-
Method Details
-
reviveCharacters
public void reviveCharacters()Revive all characters and add them to the list of alive characters -
replay
public void replay()Replay the game by interacting with the MapGenerator class
-