Maescool/Catacomb-Snatch — Issue #120: Refactoring of the level class (implementing game mode possibility)
Author: Scorpion1122
Created: 2012-02-22 09:28:05+00:00
State: open
Labels: Refactoring

To make the code a bit more flexibel i wil start refactoring the way the level is created and updated.

What i have in mind:

GameMode : Class that handles what should be loaded in the level, with what properties. This will be the base class loading default stuff. Will also create the ability to load the home base at different locations.
GameModeVanilla : Class that extends GameMode, loads 2 players hostile to eachother and creates the victory condition of reaching 100% treasure.
IVictoryConditions : interface that is called every tick, to check if victory conditions are met.

I hate rotting code, and i hope this will help reduce it.