\doxysection{function.\+h} \label{function_8h_source} \begin{DoxyCode}{0} \DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ FONCTION\_H}} \DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ FONCTION\_H}} \DoxyCodeLine{00003\ } \DoxyCodeLine{00004\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00007\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00008\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00009\ \textcolor{preprocessor}{\#include\ }} \DoxyCodeLine{00010\ } \DoxyCodeLine{00011\ \textcolor{preprocessor}{\#define\ EMPTY\ 0}} \DoxyCodeLine{00012\ \textcolor{preprocessor}{\#define\ WALL\ 1}} \DoxyCodeLine{00013\ \textcolor{preprocessor}{\#define\ BOX\ 2}} \DoxyCodeLine{00014\ \textcolor{preprocessor}{\#define\ TARGET\ 3}} \DoxyCodeLine{00015\ \textcolor{preprocessor}{\#define\ BOX\_ON\_TARGET\ 4}} \DoxyCodeLine{00016\ \textcolor{preprocessor}{\#define\ PLAYER\ 5}} \DoxyCodeLine{00017\ \textcolor{preprocessor}{\#define\ PLAYER\_ON\_TARGET\ 6}} \DoxyCodeLine{00018\ } \DoxyCodeLine{00019\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }Vecteur} \DoxyCodeLine{00020\ \{} \DoxyCodeLine{00021\ \ \ \ \ \textcolor{keywordtype}{int}\ x;} \DoxyCodeLine{00022\ \ \ \ \ \textcolor{keywordtype}{int}\ y;} \DoxyCodeLine{00023\ \}\ vect;} \DoxyCodeLine{00024\ } \DoxyCodeLine{00025\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }Score} \DoxyCodeLine{00026\ \{} \DoxyCodeLine{00027\ \ \ \ \ time\_t\ before;} \DoxyCodeLine{00028\ \ \ \ \ time\_t\ after;} \DoxyCodeLine{00029\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ move\_player;} \DoxyCodeLine{00030\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ move\_box;} \DoxyCodeLine{00031\ \}\ score;} \DoxyCodeLine{00032\ } \DoxyCodeLine{00033\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }essential\_sdl} \DoxyCodeLine{00034\ \{} \DoxyCodeLine{00035\ \ \ \ \ SDL\_Window\ *window;} \DoxyCodeLine{00036\ \ \ \ \ SDL\_Renderer\ *renderer;} \DoxyCodeLine{00037\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ size\_window;} \DoxyCodeLine{00038\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ size\_box;} \DoxyCodeLine{00039\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ size\_menu;} \DoxyCodeLine{00040\ \}\ dis;} \DoxyCodeLine{00041\ } \DoxyCodeLine{00042\ \textcolor{keywordtype}{char}\ **creatArea2D\ (\textcolor{keyword}{const}\ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ N);} \DoxyCodeLine{00043\ \textcolor{keywordtype}{void}\ free2D\ (\textcolor{keywordtype}{char}\ **tab,\ \textcolor{keywordtype}{int}\ N);} \DoxyCodeLine{00044\ \textcolor{keywordtype}{void}\ screenDisplay\ (\textcolor{keywordtype}{char}\ **tab,\ \textcolor{keywordtype}{int}\ size);} \DoxyCodeLine{00045\ \textcolor{keywordtype}{bool}\ isWin\ (\textcolor{keywordtype}{char}\ **tab2d,\ vect\ *targets,\ \textcolor{keywordtype}{int}\ nbr\_targets);} \DoxyCodeLine{00046\ \textcolor{keywordtype}{bool}\ islose\ (\textcolor{keywordtype}{char}\ **tab2d,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{int}\ N);} \DoxyCodeLine{00047\ \textcolor{keywordtype}{bool}\ blockBox\ (\textcolor{keywordtype}{char}\ **tab2d,\ vect\ box\_coor);} \DoxyCodeLine{00048\ vect\ plusVect\ (vect\ one,\ vect\ two);} \DoxyCodeLine{00049\ \textcolor{keywordtype}{void}\ inGameLoop\ (\textcolor{keywordtype}{char}\ **tab2d,\ \textcolor{keywordtype}{int}\ N,\ vect\ *playerPos,} \DoxyCodeLine{00050\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ vect\ *targets,\ \textcolor{keywordtype}{int}\ nbr\_targets,\ dis\ *display\_user,\ score\ *score\_user);} \DoxyCodeLine{00051\ \textcolor{keywordtype}{char}\ *timeToText(time\_t\ time);} \DoxyCodeLine{00052\ } \DoxyCodeLine{00053\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ FONCTION\_H}} \end{DoxyCode}