Ajout commentaires
This commit is contained in:
parent
05e2ab95cf
commit
33ac77e2e6
1 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
||||||
#include "../includes/mouton.hpp"
|
#include "../includes/mouton.hpp"
|
||||||
#include "../includes/loup.hpp"
|
#include "../includes/loup.hpp"
|
||||||
|
|
||||||
|
// Lance la simulation pour un univers
|
||||||
void lancerSimulation(Univers ** univers, int m, int n, int nb_moutons, int nb_loups) {
|
void lancerSimulation(Univers ** univers, int m, int n, int nb_moutons, int nb_loups) {
|
||||||
*univers = new Univers(m, n);
|
*univers = new Univers(m, n);
|
||||||
|
|
||||||
|
@ -15,6 +16,7 @@ void lancerSimulation(Univers ** univers, int m, int n, int nb_moutons, int nb_l
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Arrête la simulation d'un univers
|
||||||
void arreterSimulation(Univers * univers) {
|
void arreterSimulation(Univers * univers) {
|
||||||
delete univers;
|
delete univers;
|
||||||
univers = nullptr;
|
univers = nullptr;
|
||||||
|
|
Reference in a new issue