Package pdp.scrabble

Source Code of pdp.scrabble.Main_old

package pdp.scrabble;

import java.io.File;
import java.util.TreeMap;

import javax.swing.JPanel;

import pdp.scrabble.game.GameEngine;
import pdp.scrabble.game.GameEnvironment;
import pdp.scrabble.game.impl.GameEnvImpl;
import pdp.scrabble.ihm.MainFrame_old;
import pdp.scrabble.ihm.MenuBar;
import pdp.scrabble.utility.Theme;
import pdp.scrabble.utility.Debug;
import pdp.scrabble.utility.Statistics;
import static java.lang.Runtime.getRuntime;

/** Main class, which will be called on startup.
* Project: JScrabble
* @version 1.0.0
* @author Larrieu-Arguille Pierre-Alexandre, Mesplet Jérémy, Capelle Thomas, Peluard Jeremie
* @since 13/01/2011
*/
public class Main_old {
  private static final long serialVersionUID = 1L;

  public static final String PROGRAM_NAME = "JScrabble";
  public static final String PROGRAM_VERSION = "1.0.0";
  public static final String SEPARATOR = java.io.File.separator;
  public static final String RESSOURCES_PATH = "ressources" + SEPARATOR;
  public static final int CPU_CORES_NUMBER = getRuntime().availableProcessors();

  /** Game reference. */
  // private Game game = null;
  private GameEngine gameEng;
  private GameEnvironment gameEnv;

  /** Frame language. */
  private String lang = null;


  /** Stop simulation flag. */
  private boolean stopSimulation = false;

  /** Game type used. */
  private int gameType = 0;

  /** Current save file. */
  private File saveFile = null;


  public static void main_old(String[] args) {
    if (Debug.STATE) {
      Statistics.start("./");
    }
   
   
    Theme.initLookAndFeel("System", null);
    MainFrame_old mainFrame = new MainFrame_old(null);
    mainFrame.start();
  }
}
TOP

Related Classes of pdp.scrabble.Main_old

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.