Few days of development and I finished the basic scenario model, which holds now the map data, and can also hold unlimited number of unit teams with unlimited number of units. It was time to do some refactoring again and to put all classes in the right place. Finally, I created the main game class, which is a singleton. This class will hold all necessary game data and it’s totally separated from the renderer. The class implements also methods for loading and decoding game data from a source or saving and encoding data to a destination – although I didn’t finish this part yet.
I also made that diagram mentioned before which shows how the classes are organized and how they depend on each other. Helps a lot when I need to implement something new and overall when designing main game architecture.
