Advertisement
Guest User

Untitled

a guest
Oct 10th, 2015
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. public static void main(String[] args) throws InTransitException, ItemNotForSaleException {
  2. JFrame main_frame = new JFrame();
  3. main_frame.setTitle("Adventure");
  4. main_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  5.  
  6. Squad s = SquadImpl.generateSquad(5);
  7. Adventure a = new Adventure(Adventure.Difficulty.HARD, s);
  8.  
  9. AdventureConsole c = new AdventureConsole(a);
  10. c.start();
  11.  
  12. AdventureView v = new AdventureView(a);
  13. main_frame.setContentPane(v);
  14.  
  15. main_frame.pack();
  16. main_frame.setVisible(true);
  17.  
  18. try {
  19. c.join();
  20. } catch (InterruptedException e) {
  21. }
  22. System.exit(0);
  23. }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement