N'affiche pas les ID des organismes

This commit is contained in:
Mylloon 2022-04-18 20:06:15 +02:00
parent 895ba4a0f8
commit 62390227dc
Signed by: Anri
GPG key ID: A82D63DFF8D1317F
5 changed files with 5 additions and 5 deletions

View file

@ -114,7 +114,7 @@ void Animal::procreation(void) noexcept {
std::uniform_int_distribution<int> aleatoire_enfant(0, cases_possible_enfant.size() - 1);
auto enfant = new Espece(m_univers_ID, cases_possible_enfant[static_cast<uint64_t>(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

View file

@ -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;

View file

@ -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;

View file

@ -39,7 +39,7 @@ void Mouton::action(void) {
if(organisme->position().first == m_index) { // si 1 organisme sur ma position
if(dynamic_cast<Herbe *>(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;
}

View file

@ -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 {