Esempio n. 1
0
        private GameContext()
        {
            randomNumberGenerator  = new SystemRandomNumberGenerator();
            tagFactory             = new TagFactory(randomNumberGenerator);
            itemFactory            = new ItemFactory(tagFactory);
            jsonItemListFactory    = new JsonItemListFactory(itemFactory);
            characterNameGenerator = new CharacterNameGenerator(randomNumberGenerator);
            CharacterSafeCodeGenerator characterSafeCodeGenerator = new CharacterSafeCodeGenerator(randomNumberGenerator);

            characterFactory = new CharacterFactory(randomNumberGenerator, itemFactory, tagFactory, characterNameGenerator, characterSafeCodeGenerator);
            roomFactory      = new RoomFactory(characterFactory, itemFactory, randomNumberGenerator);
            gameServer       = new GameServer();
        }