Package models

Examples of models.Player


public class GameTest{
  public static void main(String [ ] args){
    CurrentCardList currentCardList = new CurrentCardList();
    Bank bank = new Bank(currentCardList);
    Player player1 = new Player("Jojo");
    Player player2 = new Player("Juju");
    MenuBar menuBar = new MenuBar();
    HelpPanel helpPanel = new HelpPanel();
    ButtonPanel buttonPanel = new ButtonPanel(helpPanel);
    CurrentPlayerList currentPlayerList = new CurrentPlayerList(bank, currentCardList);
    currentPlayerList.addPlayer(player1);
View Full Code Here


    MouseListener listener = new StatisticsPanelManager(helpPanel);
    this.addMouseListener(listener);
  }
  public void showPanel(){
    for (int i=0;i<currentPlayerList.getPlayerList().size();i++){
      Player player = currentPlayerList.getPlayerList().get(i);
      panelList.get(i+1).add(new JLabel(""+player.getName()));
      panelList.get(i+1).add(new JLabel("Victories : "+player.getVictories()));
      panelList.get(i+1).add(new JLabel("Stack : "+player.getStack()));
      panelList.get(i+1).add(new JLabel("Current Bet : "+player.getBetMount()));
      panelList.get(i+1).setBorder(BorderFactory.createLineBorder(Color.black));

    }
  }
View Full Code Here

TOP

Related Classes of models.Player

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.