Package com.mg105.data_control.creator
Class DataStorageCreator
java.lang.Object
com.mg105.data_control.creator.DataStorageCreator
- All Implemented Interfaces:
CreateDataStorage
- Direct Known Subclasses:
MoveDataCreator
,PartyDataCreator
This class should be extended for aspect of the game's state that need to have storage systems created
Really the only reason for this class is get rid of the duplicate code warnings (the CreateDataStorage)
interface is really enough for OOP
-
Constructor Summary
ConstructorDescriptionDataStorageCreator
(@NotNull String path, @NotNull String[][] initialData) Creates a new instance of DataStorageCreator -
Method Summary
Modifier and TypeMethodDescriptionvoid
Creates a data storage system for the specific aspect of the game this class pertains to
-
Constructor Details
-
DataStorageCreator
Creates a new instance of DataStorageCreator- Parameters:
path
- the file path to create data toinitialData
- the inital data to create
-
-
Method Details
-
createDataStorage
public void createDataStorage()Creates a data storage system for the specific aspect of the game this class pertains to- Specified by:
createDataStorage
in interfaceCreateDataStorage
-