예제 #1
0
 public static void Start(
     Settings settings = null,
     ICreatureFactory creatureFactory     = null,
     IItemFactory itemFactory             = null,
     DefaultTerrainFactory terrainFactory = null
     )
 {
     settings        = settings ?? new Settings();
     creatureFactory = creatureFactory ?? new DefaultCreatureFactory();
     terrainFactory  = terrainFactory ?? new DefaultTerrainFactory();
     itemFactory     = itemFactory ?? new DefaultItemFactory();
     CurrentGame     = new Game(settings, creatureFactory, itemFactory, terrainFactory);
     CurrentGame.Start();
     CurrentGame.Stop();
 }