open2jamorg/open2jam — pull request #21 by dtinth (2012-11-13 04:22:59+00:00)
Title: Use XML to store game options instead

I found a class, "XMLEncoder" which encodes a JavaBean into XML file.

I think that this is less messy than the current "properties" implementation...

The commits in this branch removes all the manual serialization of GameOptions and back (GameOptions <-> Properties), and uses XMLEncoder and XMLDecoder instead.

In addition, the GameOptions class no longer contains the logic for loading and saving game options to file system. It is now the responsibility of the Config class to do it. The GameOptions class now only contains the options.