mirror of
https://forge.univ-lyon1.fr/tplifap4/dungeonanddeamon.git
synced 2024-02-27 13:31:50 +01:00
gMobs devient un ptr, et AjoutMobsC2C est appellé dans l'init
This commit is contained in:
parent
74fbc1ed6c
commit
4f9c15a206
@ -14,6 +14,8 @@ GestionJeu::GestionJeu()
|
|||||||
{
|
{
|
||||||
gPlayer = GestionPlayer::_new();
|
gPlayer = GestionPlayer::_new();
|
||||||
gTerrain = GestionTerrain::_new();
|
gTerrain = GestionTerrain::_new();
|
||||||
|
|
||||||
|
gMobs = new GestionMobs();
|
||||||
}
|
}
|
||||||
|
|
||||||
GestionJeu::~GestionJeu()
|
GestionJeu::~GestionJeu()
|
||||||
@ -53,6 +55,8 @@ void GestionJeu::create_scene()
|
|||||||
{
|
{
|
||||||
add_child(gPlayer);
|
add_child(gPlayer);
|
||||||
add_child(gTerrain);
|
add_child(gTerrain);
|
||||||
|
gMobs->AjoutMobC2C(10, 20, 5, 0, 1, 25);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GestionJeu::setup_scene()
|
void GestionJeu::setup_scene()
|
||||||
|
@ -20,7 +20,7 @@ private:
|
|||||||
public:
|
public:
|
||||||
//Gestion des deifferents parties du jeu
|
//Gestion des deifferents parties du jeu
|
||||||
GestionPlayer* gPlayer;
|
GestionPlayer* gPlayer;
|
||||||
GestionMobs gMobs;
|
GestionMobs* gMobs;
|
||||||
GestionTerrain* gTerrain;
|
GestionTerrain* gTerrain;
|
||||||
GestionCollision gCollision;
|
GestionCollision gCollision;
|
||||||
GestionItem gItem;
|
GestionItem gItem;
|
||||||
|
Loading…
Reference in New Issue
Block a user