From 0ea30f75eef92eff1fcda33ef4abd0def112d29d Mon Sep 17 00:00:00 2001 From: Amaury Date: Tue, 21 Apr 2020 08:58:19 +0200 Subject: [PATCH] Modif mineur pour debug gestion jeu --- .../DungeonAndDemaonScript/GestionJeu.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionJeu.cpp b/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionJeu.cpp index d2135bc..57f260a 100644 --- a/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionJeu.cpp +++ b/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionJeu.cpp @@ -8,6 +8,8 @@ #include #include +#include "MobsCorpACorpIA.h" + using namespace godot; GestionJeu::GestionJeu() @@ -57,9 +59,10 @@ void GestionJeu::create_scene() add_child(gPlayer); add_child(gTerrain); gMobs->AjoutMobC2C(10, 20, 5, 0, 1, 25); - for (MobsIA m : gMobs->mobs) + for (MobsIA* m : gMobs->mobs) { - add_child(&m); + Godot::print("Add child mob"); + add_child(m); } }