Package mage.client.game

Examples of mage.client.game.GamePane


     * @param gameId
     * @param playerId
     */
    public void showGame(UUID gameId, UUID playerId) {
        try {
            GamePane gamePane = new GamePane();
            desktopPane.add(gamePane, JLayeredPane.DEFAULT_LAYER);
            gamePane.setMaximum(true);
            gamePane.setVisible(true);
            gamePane.showGame(gameId, playerId);
            setActive(gamePane);
        } catch (PropertyVetoException ex) {
        }
    }
View Full Code Here


                        && ((GamePane) component).getGameId().equals(gameId)) {
                    setActive((GamePane) component);
                    return;
                }
            }
            GamePane gamePane = new GamePane();
            desktopPane.add(gamePane, JLayeredPane.DEFAULT_LAYER);
            gamePane.setMaximum(true);
            gamePane.setVisible(true);
            gamePane.watchGame(gameId);
            setActive(gamePane);
        } catch (PropertyVetoException ex) {
        }
    }
View Full Code Here

        }
    }

    public void replayGame(UUID gameId) {
        try {
            GamePane gamePane = new GamePane();
            desktopPane.add(gamePane, JLayeredPane.DEFAULT_LAYER);
            gamePane.setMaximum(true);
            gamePane.setVisible(true);
            gamePane.replayGame(gameId);
            setActive(gamePane);
        } catch (PropertyVetoException ex) {
        }
    }
View Full Code Here

   
    public void hideGames() {
        JInternalFrame[] windows = desktopPane.getAllFramesInLayer(JLayeredPane.DEFAULT_LAYER);
        for (JInternalFrame window : windows) {
            if (window instanceof GamePane) {
                GamePane gamePane = (GamePane) window;
                gamePane.removeGame();
            }
            if (window instanceof DraftPane) {
                DraftPane draftPane = (DraftPane) window;
                draftPane.removeDraft();
            }
View Full Code Here

TOP

Related Classes of mage.client.game.GamePane

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.