From 672e9edf26f311790142bfe3cf56f3f6e3973242 Mon Sep 17 00:00:00 2001 From: Amaury Date: Tue, 21 Apr 2020 14:56:20 +0200 Subject: [PATCH] Chgt instanciation d'un nouveau mob a la godot --- .../DungeonAndDemaonScript/GestionMobs.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionMobs.cpp b/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionMobs.cpp index 485c9c7..739a9b2 100644 --- a/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionMobs.cpp +++ b/DungeonAndDeamonScript/DungeonAndDemaonScript/GestionMobs.cpp @@ -1,8 +1,11 @@ #include "GestionMobs.h" +#include "MobsCorpACorpIA.h" + void GestionMobs::AjoutMobC2C(int pvMax, int speed, int degat, int cooldown, int rangeDegat, int rangeAgro) { - //mobs.push_back(FireElement); + MobsCorpACorpIA* fireElement = (MobsCorpACorpIA*) MobsCorpACorpIA::_new(); + mobs.push_back(fireElement); } void GestionMobs::AjoutMobDistance(int pvMax, int speed, int degat, int cooldown, int rangeAgro)