Package hexenschach.player

Examples of hexenschach.player.Computer


    Player player1;
    Player player2;
    Player player3;
    // Ersten Spieler erstellen
    if(playerChoice1.getSelectedItem().equals(Dictionary.NewGameDialogChoice2))
      player1 = new Computer(true, "white", 1);
    else if(playerChoice1.getSelectedItem().equals(Dictionary.NewGameDialogChoice3))
      player1 = new Computer(true, "white", 2);
    else if(playerChoice1.getSelectedItem().equals(Dictionary.NewGameDialogChoice4))
      player1 = new Computer(true, "white", 3);
    else
      player1 = new Human(false, "white");
    // Zweiten Spieler erstellen
    if(playerChoice2.getSelectedItem().equals(Dictionary.NewGameDialogChoice2))
      player2 = new Computer(true, "brown", 1);
    else if(playerChoice2.getSelectedItem().equals(Dictionary.NewGameDialogChoice3))
      player2 = new Computer(true, "brown", 2);
    else if(playerChoice2.getSelectedItem().equals(Dictionary.NewGameDialogChoice4))
      player2 = new Computer(true, "brown", 3);
    else
      player2 = new Human(false, "brown");
    // Dritten Spieler erstellen
    if(playerChoice3.getSelectedItem().equals(Dictionary.NewGameDialogChoice2))
      player3 = new Computer(true, "black", 1);
    else if(playerChoice3.getSelectedItem().equals(Dictionary.NewGameDialogChoice3))
      player3 = new Computer(true, "black", 2);
    else if(playerChoice3.getSelectedItem().equals(Dictionary.NewGameDialogChoice4))
      player3 = new Computer(true, "black", 3);
    else
      player3 = new Human(false, "black");
    // Gameplay erzeugen
    Gameplay gameplay = new Gameplay(player1, player2, player3, parent);
    parent.setGameplay(gameplay);
View Full Code Here

TOP

Related Classes of hexenschach.player.Computer

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.