Package hexenschach.player

Examples of hexenschach.player.Human


  /**
   * Erzeugt ein Neues Gameplay,
   */
  private void startNewGame() {
    // 3 menschliche Spieler erstellen
    Player player1 = new Human(true, "white");
    Player player2 = new Human(true, "brown");
    Player player3 = new Human(true, "black");
    // Gameplay erzeugen
    Gameplay gameplay = new Gameplay(player1, player2, player3, gui);
    gui.setGameplay(gameplay);
  }
View Full Code Here


    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.Human

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.