Package window.panel

Examples of window.panel.PanelInfoIAPlayers


  public void buildInfoPlayers() throws RealPlayerException {
   
    // panel for the Real Player
    PanelInfoRealPlayer panelRealPlayer = this.panelInfoRealPlayer;
    // panel for the IA Players
    PanelInfoIAPlayers panelIAPlayers = this.panelInfoIAPlayers;
   
    // we loop on each player
    for(final Player p: Game.getInstance().getPlayerManager().getPlayers()) {
     
      // if it is the RealPlayer, we fill the panelRealPlayer
      if(p instanceof RealPlayer) {
       
        panelRealPlayer.buildPanel(width, height, (RealPlayer)p);
     
     
      // else if it is an IA JPlayer we fill the panelIAPlayers with a new JPanel for each IAPlayer
      else {
        panelIAPlayers.buildPanel(width, height, p);
      }
    }
   
    // finally we add the two panels (panelRealPlayer and panelIAPlayers) to the window
    content.add(panelRealPlayer);
View Full Code Here


   */
  public void init(String title, int width, int height, boolean resize, String pathImage) throws MapFileException, JDOMException, IOException, RealPlayerException{
    this.width = width;
    this.height = height;
   
    this.panelInfoIAPlayers =  new PanelInfoIAPlayers();
    this.panelInfoRealPlayer = new PanelInfoRealPlayer();
    this.MenuLose = new PanelLose();
    this.MenuWin = new PanelWin();
   
    buildWindow(title, resize); // On initialise notre fenetre (We initiate the window)
View Full Code Here

TOP

Related Classes of window.panel.PanelInfoIAPlayers

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.