Search in sources :

Example 1 with CampaignInterface

use of Campaign.campaignGUI.CampaignInterface in project cardgame1 by joey101937.

the class CampaignManager method returnToInterface.

/**
 * ends the current game instance and returns to campaign interface
 */
public static void returnToInterface() {
    Board board = Board.getMainBoard();
    board.running = false;
    Window window = board.window;
    JFrame frame = window.frame;
    if (frame == null) {
        System.out.println("frame is null");
        System.exit(1);
    } else {
        frame.dispose();
        board.running = false;
        new CampaignInterface();
    // available = true;
    }
}
Also used : Window(cardgame1.Window) Board(cardgame1.Board) CampaignInterface(Campaign.campaignGUI.CampaignInterface) JFrame(javax.swing.JFrame)

Aggregations

CampaignInterface (Campaign.campaignGUI.CampaignInterface)1 Board (cardgame1.Board)1 Window (cardgame1.Window)1 JFrame (javax.swing.JFrame)1