Class GameStateSetter
java.lang.Object
com.mg105.use_cases.set_up.state_setter.GameStateSetter
- All Implemented Interfaces:
StateSetter
This class should only be called in the "main" file. It has a method that is used to set information about the
GameState
This is essentially the facade of the StateSetters class that fills the GameState with the data it needs to when the game starts
-
Constructor Summary
ConstructorDescriptionGameStateSetter
(@NotNull StateSetter[] setters) Creates a new instance of GameStateSetters -
Method Summary
-
Constructor Details
-
GameStateSetter
Creates a new instance of GameStateSetters- Parameters:
setters
- a group of objects that help store information in the game state
-
-
Method Details
-
setState
Description copied from interface:StateSetter
Sets some aspect of the gameState in this method- Specified by:
setState
in interfaceStateSetter
- Parameters:
state
- the game state to act on.
-