Examples of Human


Examples of Character.Races.RInstances.Human

      switch (teamJ1) {
      case 0:
        race1 = new Elf();
        break;
      case 1:
        race1 = new Human();
        break;
      case 2:
        race1 = new Undead();
        break;
      case 3:
        race1 = new Orc();
        break;
      default:
        System.err.println("Error choosing race from Player 1");
        System.exit(1);
      }
      switch (teamJ2) {
      case 0:
        race2 = new Elf();
        break;
      case 1:
        race2 = new Human();
        break;
      case 2:
        race2 = new Undead();
        break;
      case 3:
View Full Code Here

Examples of com.secondstack.training.basic.abstracts.Human

     * hello
     *
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        Human human = new Human();
        Cow cow = new Cow();
        Mammalia kanggoroo = new Mammalia() {
            @Override
            public void walk() {
                System.out.println("Kanggoroo walks by jumping...");
View Full Code Here

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

Examples of hexenschach.player.Human

    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

Examples of javaEffect.characters.Human

     *
     * System.out.println("\tLast name:" ); String lastName=input.next();
     */

    if (race.equalsIgnoreCase("Human")) {
      this.player = new Human(firstName, lastName, 100);
    } else if (race.equalsIgnoreCase("Asari")) {
      this.player = new Asari(firstName, lastName, 100);
    } else if (race.equalsIgnoreCase("Krogan")) {
      this.player = new Krogan(firstName, lastName, 100);
    }
View Full Code Here

Examples of javaEffect.characters.Human

      if (!Character.isInList(character.getAttributeValue("firstName"),
          character.getAttributeValue("lastName"))) {

        if (character.getAttributeValue("race").equalsIgnoreCase(
            "Human")) {
          npg = new Human(character.getAttributeValue("firstName"),
              character.getAttributeValue("lastName"));
        } else if (character.getAttributeValue("race")
            .equalsIgnoreCase("Asari")) {
          npg = new Asari(character.getAttributeValue("firstName"),
              character.getAttributeValue("lastName"));
View Full Code Here

Examples of koth.user.Human

            }
            if (!running || simulator.getGame().isFinished())
                return;
            // If it is a human, wait until graphical interaction
            if (simulator.getAi() instanceof Human) {
                Human human = (Human)simulator.getAi();
                synchronized (lock) {
                    waiting = true;
                    pawn = null;
                    action = null;
                    while (waiting && running) {
                        try {
                            lock.wait(100);
                        } catch (InterruptedException e) {}
                    }
                    human.set(action);
                    waiting = false;
                    pawn = null;
                    action = null;
                }
            }
View Full Code Here

Examples of lec03.glab.boxing.Human

     
    Raceable[] racRacers = new Raceable[3];
   
   
   
    racRacers[0] = new Human("file:\\\\\\C:\\dev\\lec03\\src\\edu\\uchicago\\cs\\java\\lec03\\resources\\run_human.gif",
        Raceable.DIM);
   
    racRacers[1] = new Gazelle("file:\\\\\\C:\\dev\\lec03\\src\\edu\\uchicago\\cs\\java\\lec03\\resources\\run_gazelle.jpg",
        Raceable.DIM);
   
View Full Code Here

Examples of net.sf.abproject.addressbook.ab.datamodel.Human

  }

    public static void saveAll(NamedCaller nc, ab app, AddressBook addressBook, CFrame f, Runnable lastStep) {
        try {
            Shepherd.moveAddressbookToHDD/*save*/(nc, app, addressBook);
            final Human fake = addressBook.createUnlinkedHuman();
            fake.setFirstNameAscii("...Refreshing...");
            addressBook.addmerkaba(fake);
            addressBook.hidemerkaba(fake);
            if(lastStep!=null)lastStep.run();
            MsgBoxUtil.showMessage(nc, f,"Saved.");
        } catch (Throwable throwable) {
View Full Code Here

Examples of org.baeldung.java8.entity.Human

    // tests -

    @Test
    public final void givenPreLambda_whenSortingEntitiesByName_thenCorrectlySorted() {
        final List<Human> humans = Lists.newArrayList(new Human("Sarah", 10), new Human("Jack", 12));
        Collections.sort(humans, new Comparator<Human>() {
            @Override
            public final int compare(final Human h1, final Human h2) {
                return h1.getName().compareTo(h2.getName());
            }
        });
        Assert.assertThat(humans.get(0), equalTo(new Human("Jack", 12)));
    }
View Full Code Here
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.