From 56d445cadd19fe4789ed39a746c383b1bf82b263 Mon Sep 17 00:00:00 2001 From: mahmoudrabia Date: Fri, 24 May 2024 22:36:25 +0200 Subject: [PATCH] rapport finale --- liste.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+), 0 deletions(-) create mode 100644 liste.h diff --git a/liste.h b/liste.h new file mode 100644 index 0000000..3c5349c --- /dev/null +++ b/liste.h @@ -0,0 +1,20 @@ +#include +#include +#define TAILLE_X 700 + + +typedef struct entite +{int image;int x;int y;int speed;}entite; + + +typedef struct l_entite +{entite ent;struct l_entite* next;}l_entite; + +l_entite* create_l_entite (int x,int y,int speed,int image); +entite create_entite (entite ent,int x,int y, int speed, int image); +void add_entite (l_entite** head,int x,int y,int speed,int image); +void display_l_entite (l_entite* mons); +void display_entite (entite ent); +void moveMissile (l_entite* msl); +void addMissile (l_entite** head, entite vaisseau,int image); +void detecterCollisions(l_entite* l_missile, l_entite* l_monstre); -- libgit2 0.21.2