public void Setup()
        {
            _clients.Clear();

            _gameApplication = InstanceHelper.GetGame(SERVER_PORT_GAME);
            _mmApplication   = InstanceHelper.GetMm(SERVER_PORT_MM, SERVER_PORT_GAME, _gameApplication, TOTAL_PLAYERS_NEEDED_1, 1000);

            _mmApplication.Start();
            _gameApplication.Start();
        }
Exemplo n.º 2
0
        public void Setup()
        {
            _gameApplication = InstanceHelper.GetGame(SERVER_PORT);
            _mmApplication   = InstanceHelper.GetMm(MM_SERVER_PORT, 0, _gameApplication, 2, 500);
            _mmApplication.Start();
            _gameApplication.Start();

            //setup client
            _client1 = new TestClientPeer(_clientLogger, taskSchedulerFactory, serializer);
            _client2 = new TestClientPeer(_clientLogger, taskSchedulerFactory, serializer);
            _client3 = new TestClientPeer(_clientLogger, taskSchedulerFactory, serializer);
        }