Modif mineur pour debug gestion jeu

This commit is contained in:
Amaury 2020-04-21 08:58:19 +02:00
parent 06c34c881e
commit 0ea30f75ee

View File

@ -8,6 +8,8 @@
#include <Texture.hpp> #include <Texture.hpp>
#include <AnimatedSprite.hpp> #include <AnimatedSprite.hpp>
#include "MobsCorpACorpIA.h"
using namespace godot; using namespace godot;
GestionJeu::GestionJeu() GestionJeu::GestionJeu()
@ -57,9 +59,10 @@ void GestionJeu::create_scene()
add_child(gPlayer); add_child(gPlayer);
add_child(gTerrain); add_child(gTerrain);
gMobs->AjoutMobC2C(10, 20, 5, 0, 1, 25); 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);
} }
} }