// 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(); }
public static void SetupGame() { _setup = new WorldSetupDefault(); // THIS IS WHERE A SPECIFIC WORLD SETUP IS CHOSEN _world = new World(_setup); }