
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@260 72836036-5685-4462-b002-a69064685172
45 lines
1 KiB
Java
45 lines
1 KiB
Java
package jrummikub;
|
|
|
|
import java.awt.Color;
|
|
|
|
import javax.swing.UIManager;
|
|
|
|
import jrummikub.control.GameControl;
|
|
import jrummikub.model.GameSettings;
|
|
import jrummikub.model.PlayerSettings;
|
|
import jrummikub.view.impl.View;
|
|
|
|
/**
|
|
* The main class
|
|
*/
|
|
public class JRummikub {
|
|
|
|
/**
|
|
* The main method
|
|
*
|
|
* @param args
|
|
* command line arguments
|
|
*/
|
|
public static void main(String[] args) {
|
|
String nativeLF = UIManager.getSystemLookAndFeelClassName();
|
|
|
|
try {
|
|
UIManager.setLookAndFeel(nativeLF);
|
|
} catch (Exception e) {
|
|
}
|
|
|
|
GameSettings gameSettings = new GameSettings();
|
|
gameSettings.getPlayerList().add(new PlayerSettings("Ida", Color.RED));
|
|
gameSettings.getPlayerList().add(
|
|
new PlayerSettings("Matthias", Color.YELLOW));
|
|
gameSettings.getPlayerList().add(new PlayerSettings("Jannis", Color.GREEN));
|
|
gameSettings.getPlayerList().add(new PlayerSettings("Bennet", Color.BLACK));
|
|
|
|
View view = new View();
|
|
|
|
GameControl gameControl = new GameControl(gameSettings, view);
|
|
gameControl.startGame();
|
|
|
|
}
|
|
|
|
}
|