1 / 21

GUI – Server 통신

GUI – Server 통신. Mainwow Game 시작 전에 ... Nickname 기다린다. Playerwow.ClientHandler ... Nickname 받는 것. Nickname 보내는 것. serverURL 여기서 옵니다. Playerwow.nickname 여기서 옵니다. 이 버턴의 ActionListener 필요합니다 !. Connect! 버턴의 ActionListener 은 setUpNetworking 메소드를 호출합니다. 접속 후.

vielka-diaz
Download Presentation

GUI – Server 통신

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. GUI – Server 통신

  2. Mainwow Game 시작 전에... Nickname 기다린다

  3. Playerwow.ClientHandler... Nickname 받는 것

  4. Nickname 보내는 것 serverURL여기서 옵니다 Playerwow.nickname여기서 옵니다 이 버턴의 ActionListener 필요합니다! Connect! 버턴의 ActionListener은 setUpNetworking메소드를 호출합니다.

  5. 접속 후 public void changeConnectButtons(boolean bob) {모모... setVisible(bob); 모모... setEditable(bob); setUpNetworking에서 changeConnectButtons메소드를 호출합니다. Connect! 버턴을 눌을때 서버에 nickname 보냅니다. 동시에 JFrame안에 있는 serverURLJTextField과Connect! 버턴을 보지 안께, nickname 수정 안께하세요

  6. 코딩 타임 입니다 changeConnectButtons(…)

  7. Game 크레스 Game ArrayList<Playerwow> players Deck d Thread t GameHandlergh PlayerwowcurrentPlayer intthePot Game(ArrayList<Playerwow> b) start() GameHandler run() bettingRound() findWinner() tellEveryone() inner class GameHandler run() is the poker game main routine

  8. Game 크레스 생성자... Game 시작

  9. GUI 듣는 것 Integer / int 메소드를 호출

  10. GUI Player setup

  11. GUI Player setup 8/Cool Hand Luke/500 9/Cincinnati Kid/500 10/Devilfish/500

  12. Nested for loops X Y

  13. X1 Y2 Y3 Y4 Y1 X2 Y2 Y3 Y4 Y1 Y2 Y3 Y4 Y1 X3 Y2 Y3 Y4 Y1 X4

  14. 서버 메시지를 봅시다 메소드가 5 개 필요합니다... public void setStash(int x, String s) public void setJPlayer1(String nick) etc

  15. print player’s name to JTextField • set JTextField to editable(false) • remove JTextField border

  16. 코딩 타임 입니다 setJPlayer1(…) & setStash(…)

  17. Dealing Cards in Game class:

  18. GUI 듣는 것 Integer / int in PokerFrame.java

  19. 코딩 타임 입니다 switch block, case 1 - 7

More Related