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;
}
}
Aggregations