Package org.odinware.odinrunes
Class Main
java.lang.Object
org.odinware.odinrunes.Main
The Main class is the entry point of the application.
It handles the GUI and user interactions.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Context
deserializeContext
(String filePath) Deserializes a Context object from a file.static void
The main method of the application.static void
serializeContext
(Context context, String filePath) Serializes a Context object to a file.
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
main
The main method of the application. It is responsible for starting the application.- Parameters:
args
- command line arguments (not used)
-
serializeContext
Serializes a Context object to a file.- Parameters:
context
- The Context object to be serialized.filePath
- The path of the file where the Context object will be serialized.
-
deserializeContext
Deserializes a Context object from a file.- Parameters:
filePath
- The path of the file from which the Context object will be deserialized.- Returns:
- The deserialized Context object.
-