diff --git a/includes/animal_template.hpp b/includes/animal_template.hpp index eb86d79..2b6258c 100644 --- a/includes/animal_template.hpp +++ b/includes/animal_template.hpp @@ -114,7 +114,7 @@ void Animal::procreation(void) noexcept { std::uniform_int_distribution aleatoire_enfant(0, cases_possible_enfant.size() - 1); auto enfant = new Espece(m_univers_ID, cases_possible_enfant[static_cast(aleatoire_enfant(graine))]); - std::cout << "'" << lettre(ID) << "' (" << ID << "/" << coordoneeeEchequier() <<") fait naître '" << lettre(enfant->ID) << "' (" << enfant->ID << "/" << enfant->coordoneeeEchequier() << ")" << std::endl; + std::cout << "'" << lettre(ID) << "' (" << coordoneeeEchequier() <<") fait naître '" << lettre(enfant->ID) << "' (" << enfant->coordoneeeEchequier() << ")" << std::endl; } // sinon il ne nait pas m_reproduire -= m_attente_reproduction; // doit attendre avant de pouvoir se reproduire encore diff --git a/src/animal.cpp b/src/animal.cpp index 94cc9c9..84e5810 100644 --- a/src/animal.cpp +++ b/src/animal.cpp @@ -143,7 +143,7 @@ void Animal::deplacement(int index, bool verification) noexcept { // Ajoute l'index actuel au vecteurs des index libres Univers::m_index_libres_univers[m_univers_ID].second.push_back(m_index); - std::cout << "'" << lettre(ID) << "' (" << ID << ") " << coordoneeeEchequier() << " -> "; + std::cout << "'" << lettre(ID) << "' : " << coordoneeeEchequier() << " -> "; // Déplace l'animal m_index = index; diff --git a/src/loup.cpp b/src/loup.cpp index 7230c04..5b7f38c 100644 --- a/src/loup.cpp +++ b/src/loup.cpp @@ -47,7 +47,7 @@ void Loup::action(void) { proie->m_deposer_sediment = false; proie->mortOrganisme(); m_faim = 0; - std::cout << "'" << lettre(ID) << "' (" << ID << "/" << coordoneeeEchequier() << ") mange '" << lettre(proie->ID) << "' (" << proie->ID << "/" << proie->coordoneeeEchequier() << ")" << std::endl; + std::cout << "'" << lettre(ID) << "' (" << coordoneeeEchequier() << ") mange '" << lettre(proie->ID) << "' (" << proie->coordoneeeEchequier() << ")" << std::endl; deplacement(proie->position().first); deplacement_effectue = true; break; diff --git a/src/mouton.cpp b/src/mouton.cpp index 8bc1bf9..4e4c9d4 100644 --- a/src/mouton.cpp +++ b/src/mouton.cpp @@ -39,7 +39,7 @@ void Mouton::action(void) { if(organisme->position().first == m_index) { // si 1 organisme sur ma position if(dynamic_cast(organisme)) { // si c'est de l'herbe organisme->mortOrganisme(); - std::cout << "'" << lettre(ID) << "' (" << ID << "/" << coordoneeeEchequier() << ") mange '" << lettre(organisme->ID) << "' (" << organisme->ID << "/" << organisme->coordoneeeEchequier() << ")" << std::endl; + std::cout << "'" << lettre(ID) << "' (" << coordoneeeEchequier() << ") mange '" << lettre(organisme->ID) << "' (" << organisme->coordoneeeEchequier() << ")" << std::endl; m_faim = 0; break; } diff --git a/src/organisme.cpp b/src/organisme.cpp index 13c930c..81cefe5 100644 --- a/src/organisme.cpp +++ b/src/organisme.cpp @@ -82,7 +82,7 @@ void Organisme::mortOrganisme(void) noexcept { // On déclare mort l'organisme mort = true; - std::cout << "Mort de '" << lettre(ID) << "' (" << ID << "/" << coordoneeeEchequier() << ")" << std::endl; + std::cout << "Mort de '" << lettre(ID) << "' (" << coordoneeeEchequier() << ")" << std::endl; } void Organisme::suppresionVecteurs(void) noexcept {