Example #1
0
  // Méthode appelé pour ajouter un nouvel animal
  public boolean ajouterAnimal(Animal animal, String nom, char sexe, char leader, Point position) {
    System.out.println(
        "Animal => "
            + animal.getNom()
            + " : "
            + nom
            + ", "
            + sexe
            + ", "
            + leader
            + ", "
            + position);
    Espece tmpAnimal;
    tmpAnimal = _managerAnimaux.getMonde().ajoutAnimaux(animal, position.x, position.y);
    fenetre.getGrille().ajouterAnimal(tmpAnimal);

    return true;
  }