From 10d3751ec21d7bbf482ea05f50a03abb23eb5cae Mon Sep 17 00:00:00 2001
From: Henri Montjoie <henri.montjoie@insa-rennes.fr>
Date: Tue, 3 May 2016 16:29:12 +0200
Subject: [PATCH] ajout de l'etat actuel dans les parametres

---
 src/SDL_bis.c    | 4 +++-
 src/controleur.c | 1 -
 src/structures.h | 3 +--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/SDL_bis.c b/src/SDL_bis.c
index 34db21b..3e6758a 100644
--- a/src/SDL_bis.c
+++ b/src/SDL_bis.c
@@ -3,10 +3,12 @@
 #include <SDL/SDL.h>
 #include <SDL/SDL_ttf.h>
 #include "SDL.h"
+#include "structures.h"
 
 
 int SDL_bis()
 {   int quitter=0;
+    EtatsJeu etat=SAISIE_JOUEURS;
     SDL_Surface* ecran=NULL;
     SDL_Event event;
     SDL_Surface* logo = NULL;
@@ -61,7 +63,7 @@ int SDL_bis()
     char nom_joueur1[15] = "";
     fgets(nom_joueur1, sizeof(nom_joueur1), stdin);
     char nom_joueur2[15] = "";
-    ajouter_joueurs(nom_joueur1,nom_joueur2); //a coder par colin
+    ajouter_joueurs(nom_joueur1,nom_joueur2, &etat); //a coder par colin
 
     while(quitter==0)
     {
diff --git a/src/controleur.c b/src/controleur.c
index 2e9c69e..b06c812 100644
--- a/src/controleur.c
+++ b/src/controleur.c
@@ -8,7 +8,6 @@
 
 #include "partie.h"
 #include "joueur.h"
-#include "affichageConsole2.h"
 #include "joueurList.h"
 #include "case.h"
 #include "personnage.h"
diff --git a/src/structures.h b/src/structures.h
index b6ccbd3..19b21ca 100644
--- a/src/structures.h
+++ b/src/structures.h
@@ -51,8 +51,7 @@ typedef enum {faux, vrai} boolean;
   * tout réunir dans l'état TOUR_JxPy. Dites moi ce que vous en pensez.
   * En tout cas les premiers états jusqu'à CONFIGURATION devraient permettre de rendre la V2.
   */
-typedef enum    {SAISIE_J1,
-                SAISIE_J2,
+typedef enum    {SAISIE_JOUEURS,
                 LANCEMENT,
                 CONFIGURATION,
                 TOUR_J1P1,
-- 
GitLab