Beispiel #1
0
 void StartClient()
 {
     client = new Client.Client(this, spriteBatch, gameConfigName, this.gameType);
     Components.Add(client);
     activeScreen.Hide();
     activeScreen = client;
     activeScreen.Show();
 }
Beispiel #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();
        }
Beispiel #3
0
 void StartClient()
 {
     client = new Client.Client(this, spriteBatch, gameConfigName, this.gameType);
     Components.Add(client);
     activeScreen.Hide();
     activeScreen = client;
     activeScreen.Show();
 }