Package views

Source Code of views.GameTest

package views;

import models.Bank;
import models.CurrentCardList;
import models.CurrentPlayerList;
import 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);
    currentPlayerList.addPlayer(player2);
    currentPlayerList.drawForAll();
    PlayerListPanel playerListPanel = new PlayerListPanel(currentPlayerList,helpPanel);
    BankPanel bankPanel = new BankPanel(bank);
    StatisticsPanel statisticsPanel = new StatisticsPanel(currentPlayerList,helpPanel);
    CurrentPlayerPanel currentPlayerPanel = new CurrentPlayerPanel(player1);
    MainFrame frame = new MainFrame(menuBar,helpPanel, statisticsPanel, buttonPanel,playerListPanel,  bankPanel,  currentPlayerPanel);
  }
}
TOP

Related Classes of views.GameTest

TOP
Copyright © 2018 www.massapi.com. 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.