ajout de taille.h + changemet de makefile

This commit is contained in:
2024-10-24 16:08:15 +02:00
parent 5f4288ee67
commit 9ba0c335b0
2 changed files with 21 additions and 12 deletions

View File

@@ -4,12 +4,13 @@ but : game
# CHAPITRE 2 : VARIABLES
OFILES = main.o \
interface.o \
game.o \
ai.o \
graphics.o \
events.o
OFILES = deplacement.o \
main.o \
menu.o \
pion.o \
taille.o \
grille.o \
obstacle.o
CC = gcc
@@ -17,17 +18,18 @@ CFLAGS = -Wall -ansi -pedantic -g -lgraph
# CHAPITRE 3 : DEPENDANCES (REGLES IMPLICITES)
main.o : interface.h game.h graphics.h ai.h events.h
deplacement.o : pion.o
interface.o : interface.h graphics.h game.h
menu.o : taille.o
pion.o : deplacement.o obstacle.o
game.o : game.h interface.h graphics.h
taille.o : grille.o
ai.o : ai.h game.h interface.h
grille.o : menu.o
graphics.o : graphics.h game.h
obstacle.o : pion.o
events.o : events.h game.h interface.h
# CHAPITRE 4 : DEPENDANCES AVEC COMMANDES

View File

@@ -0,0 +1,7 @@
#ifndef TAILLE_H
#define TAILLE_H
void GererChoixTaille(int *TailleGrille);