formatage

This commit is contained in:
2024-12-14 03:18:48 +01:00
parent d5abc56d1b
commit 5a2a2afe0a
2 changed files with 65 additions and 62 deletions

View File

@@ -1,8 +1,8 @@
#ifndef FONCTION_H
#define FONCTION_H
#include <stdlib.h>
#include <stdbool.h>
#include <stdlib.h>
#include <time.h>
#define EMPTY 0
@@ -15,8 +15,8 @@
typedef struct Vecteur
{
int x;
int y;
int x;
int y;
} vect;
typedef struct Score
@@ -27,17 +27,14 @@ typedef struct Score
unsigned int move_box;
} score;
unsigned short int **creatArea2D(const unsigned int N);
void free2D(unsigned short int **tab, int N);
void screenDisplay( unsigned short int **tab,int size);
void inGameLoop (unsigned short int **tab2d, int N, vect *playerPos, vect *targets, int nbr_targets);
bool isWin(unsigned short int **tab2d, vect *targets, int nbr_targets);
bool islose(unsigned short int ** tab2d,const int N);
bool blockBox(unsigned short int **tab2d, vect box_coor);
unsigned short int **creatArea2D (const unsigned int N);
void free2D (unsigned short int **tab, int N);
void screenDisplay (unsigned short int **tab, int size);
void inGameLoop (unsigned short int **tab2d, int N, vect *playerPos,
vect *targets, int nbr_targets);
bool isWin (unsigned short int **tab2d, vect *targets, int nbr_targets);
bool islose (unsigned short int **tab2d, const int N);
bool blockBox (unsigned short int **tab2d, vect box_coor);
vect plusVect (vect one, vect two);
#endif // FONCTION_H