Exemple #1
0
        //
        // Constructor
        //
        public Client(ScreenManager mgr)
        {
            menuScreen = mgr.MenuScreen;
            lobbyScreen = mgr.LobbyScreen;
            gameScreen = mgr.GameScreen;

            Thread thread = new Thread(ClientLoop);
            thread.IsBackground = true;
            thread.Start();
        }
        public ScreenManager(Game game)
        {
            this.game = game;

            menuScreen = new MenuScreen(this);
            lobbyScreen = new LobbyScreen(this);
            gameScreen = new GameScreen(this);

            statusBar = new StatusBar(this);
            statusBar.Text = statusBarStartText;
        }