Esempio n. 1
0
 // The entire setup of Spells, Players and spell casting has been removed
 // from the World class, and is now "injected" through the single parameter
 // to the constructor, of type IWorldSetup.
 public World(IWorldSetup worldSetup) // Modified
 {
     _players = worldSetup.Setup();
 }
Esempio n. 2
0
 public static void SetupGame()
 {
     _setup = new WorldSetupDefault(); // THIS IS WHERE A SPECIFIC WORLD SETUP IS CHOSEN
     _world = new World(_setup);
 }