I have committed a bunch of changes, none of which should have any visible
consequences.
The main things are:
- Got rid of many static methods in GameManager and PhaseManager, all
replaced by instance methods.
- Removed many direct references from the UI to these classes, channeling
these through GameUIManager.
GameUIManager should in the future become the UI equivalent of GameManager
in the game engine,
and these two classes will share much of the game state information.
- To aid this, a new class Defs has a number of definitions of such shared
game parameters.
I suspect this class will be greatly extended in the future.
This class also contains my first Java 5 enums.
The general purpose of changes like these is to gradually prepare the system
for a future client/server split as needed for an Internet play version,
by concentrating most of the UI/engine communication through a few dedicated
classes,
in this case GameUIManager and GameManager (PossibleActions is another
example).
Erik Vos
|