// // Created by Alban on 04/12/2024. // #ifndef PROJET_RESEAUX_TROPHIQUES_EQUIPE_3B_STRUCTURE_H #define PROJET_RESEAUX_TROPHIQUES_EQUIPE_3B_STRUCTURE_H #define NB_IMAGE 23 #define MODE allegro enum { console = 0, allegro = 1 }; #include #include #include #include #include typedef struct b{ char *nom_fichier_json; char *nom_fichier_mmd; char *nom_fichier_png; }nom_fichier_extension; typedef struct a{ ALLEGRO_DISPLAY * display; ALLEGRO_EVENT_QUEUE * eventQueue; ALLEGRO_BITMAP * tabImage[NB_IMAGE]; ALLEGRO_FONT * font_rikiki; ALLEGRO_FONT * font_small; ALLEGRO_FONT * font_mid; ALLEGRO_FONT * font_large; ALLEGRO_TIMER * timer; }toutAllegro; /* tab[i] 0 Menu vide 1 menu affichage 2 menu simulation 3 menu quitter 4 nom fichier valider en gris 5 nom fichier valider en couleur 6 choix reseau valider en gris 7 choix reseau valider en couleur 8 choix des populations suivant en gris 9 choix des populations suivant en couleur 10 ecran de chargement 14-20 Menu_Pause */ enum { menu = 0, afficher = 1, simulation = 2, quitter = 3, nom_fichier_gris = 4, nom_fichier_couleur = 5, choix_reseau_gris = 6, choix_reseau_couleur = 7, choix_population_gris = 8, choix_population_couleur = 9, chargement = 10, graphe_total = 11, fond_affichage = 12, fond_simulation = 13, menu_pause0 = 14, menu_pause1 = 15, menu_pause2 = 16, menu_pause3 = 17, menu_pause4 = 18, menu_pause5 = 19, menu_pause6 = 20, menu_pause7 = 21, menu_pause8 = 22, }; #endif //PROJET_RESEAUX_TROPHIQUES_EQUIPE_3B_STRUCTURE_H