Exemplo n.º 1
0
 void StartClient()
 {
     client = new Client.Client(this, spriteBatch, gameConfigName, this.gameType);
     Components.Add(client);
     activeScreen.Hide();
     activeScreen = client;
     activeScreen.Show();
 }
Exemplo n.º 2
0
        void StartServer(Client.Client.GameType gameType)
        {
            int maxConnections = 0;
            if (gameType == Client.Client.GameType.local)
                maxConnections = 1;
            else
                maxConnections = hostGameScreen.MaxConnections;

            server = new Server.Server(this, spriteBatch, gameConfigName, maxConnections);
            Components.Add(server);
            //server.Hide();
            StartClient();
        }
Exemplo n.º 3
0
 void StartClient()
 {
     client = new Client.Client(this, spriteBatch, gameConfigName, this.gameType);
     Components.Add(client);
     activeScreen.Hide();
     activeScreen = client;
     activeScreen.Show();
 }