fix doxy comment
This commit is contained in:
@@ -11,8 +11,7 @@
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+ttf.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$stdio.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
|
||||
Graphe des dépendances par inclusion de display.\+c\+:
|
||||
\nopagebreak
|
||||
Graphe des dépendances par inclusion de display.\+c\+:\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
@@ -22,9 +21,9 @@ Graphe des dépendances par inclusion de display.\+c\+:
|
||||
\doxysubsubsection*{Fonctions}
|
||||
\begin{DoxyCompactItemize}
|
||||
\item
|
||||
void \textbf{ screen\+Display} (char $\ast$$\ast$tab, int size)
|
||||
void \textbf{ screen\+Display} (char $\ast$$\ast$tab, int x, int y)
|
||||
\begin{DoxyCompactList}\small\item\em La fonction permet d\textquotesingle{}afficher simplement le plateau de jeu dans le terminal. \end{DoxyCompactList}\item
|
||||
void \textbf{ screen\+Display\+Game\+SDL} (char $\ast$$\ast$tab, \textbf{ dis} $\ast$display\+\_\+user)
|
||||
void \textbf{ screen\+Display\+Game\+SDL} (char $\ast$$\ast$tab, \textbf{ vect} dim\+\_\+tab, \textbf{ dis} $\ast$display\+\_\+user, \textbf{ vect} $\ast$player\+\_\+pos, int fov)
|
||||
\begin{DoxyCompactList}\small\item\em La fonction affiche a l\textquotesingle{}aide de SDL la zone de jeu. \end{DoxyCompactList}\item
|
||||
int \textbf{ get\+Max\+Size} (\textbf{ dis} display\+\_\+user)
|
||||
\begin{DoxyCompactList}\small\item\em Taille de l\textquotesingle{}ecrant carre en fonction de l\textquotesingle{}ecrant du joueur avec une marge. \end{DoxyCompactList}\item
|
||||
@@ -36,6 +35,9 @@ void \textbf{ display\+Text\+SDL} (\textbf{ dis} $\ast$display\+\_\+user, char $
|
||||
\begin{DoxyCompactList}\small\item\em Cette fonction affiche du texte dans la fenetre de l\textquotesingle{}utilisateur. \end{DoxyCompactList}\end{DoxyCompactItemize}
|
||||
|
||||
|
||||
\doxysubsection{Description détaillée}
|
||||
Fichier contient tout les fonctions pour l\textquotesingle{}affichage.
|
||||
|
||||
\doxysubsection{Documentation des fonctions}
|
||||
\index{display.c@{display.c}!displayImage@{displayImage}}
|
||||
\index{displayImage@{displayImage}!display.c@{display.c}}
|
||||
@@ -134,8 +136,8 @@ Void
|
||||
\index{display.c@{display.c}!screenDisplay@{screenDisplay}}
|
||||
\index{screenDisplay@{screenDisplay}!display.c@{display.c}}
|
||||
\doxysubsubsection{screenDisplay()}
|
||||
{\footnotesize\ttfamily \label{display_8c_a99b9f82dcee1c08efb2101826d2f6b44}
|
||||
void screen\+Display (\begin{DoxyParamCaption}\item[{char $\ast$$\ast$}]{tab}{, }\item[{int}]{size}{}\end{DoxyParamCaption})}
|
||||
{\footnotesize\ttfamily \label{display_8c_affba8627c7c6c768268f64fa670207e5}
|
||||
void screen\+Display (\begin{DoxyParamCaption}\item[{char $\ast$$\ast$}]{tab}{, }\item[{int}]{x}{, }\item[{int}]{y}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
@@ -143,9 +145,11 @@ La fonction permet d\textquotesingle{}afficher simplement le plateau de jeu dans
|
||||
|
||||
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
{\em tab} & Le tableau 2d carre du plateau. \\
|
||||
{\em tab} & Le tableau 2d du plateau. \\
|
||||
\hline
|
||||
{\em size} & La taille du plateau. \\
|
||||
{\em x} & Le mombre de ligne. \\
|
||||
\hline
|
||||
{\em y} & Le nombre de colonnes. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
@@ -154,8 +158,8 @@ Void
|
||||
\index{display.c@{display.c}!screenDisplayGameSDL@{screenDisplayGameSDL}}
|
||||
\index{screenDisplayGameSDL@{screenDisplayGameSDL}!display.c@{display.c}}
|
||||
\doxysubsubsection{screenDisplayGameSDL()}
|
||||
{\footnotesize\ttfamily \label{display_8c_a6f451a9d0fd4d2325d9f03d7cda4a189}
|
||||
void screen\+Display\+Game\+SDL (\begin{DoxyParamCaption}\item[{char $\ast$$\ast$}]{tab}{, }\item[{\textbf{ dis} $\ast$}]{display\+\_\+user}{}\end{DoxyParamCaption})}
|
||||
{\footnotesize\ttfamily \label{display_8c_a9ed2db696b902038cc72feee1d0c30f3}
|
||||
void screen\+Display\+Game\+SDL (\begin{DoxyParamCaption}\item[{char $\ast$$\ast$}]{tab}{, }\item[{\textbf{ vect}}]{dim\+\_\+tab}{, }\item[{\textbf{ dis} $\ast$}]{display\+\_\+user}{, }\item[{\textbf{ vect} $\ast$}]{player\+\_\+pos}{, }\item[{int}]{fov}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
@@ -167,15 +171,12 @@ La fonction affiche a l\textquotesingle{}aide de SDL la zone de jeu.
|
||||
\hline
|
||||
{\em display\+\_\+user} & La structure qui possede tous ce qu\textquotesingle{}il faut pour l\textquotesingle{}affichage SDL \\
|
||||
\hline
|
||||
{\em player\+\_\+pos} & la position du joueur \\
|
||||
\hline
|
||||
{\em fov} & Le fov de la vision du joueur, -\/1 si desactiver. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
Void
|
||||
\end{DoxyReturn}
|
||||
Voici le graphe d\textquotesingle{}appel pour cette fonction \+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=312pt]{display_8c_a6f451a9d0fd4d2325d9f03d7cda4a189_cgraph}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
|
||||
177
rapport/latex/display_8c.tex.tmp
Normal file
177
rapport/latex/display_8c.tex.tmp
Normal file
@@ -0,0 +1,177 @@
|
||||
\doxysection{Référence du fichier display.\+c}
|
||||
\label{display_8c}\index{display.c@{display.c}}
|
||||
{\ttfamily \#include "{}../include/display.\+h"{}}\newline
|
||||
{\ttfamily \#include "{}../include/function.\+h"{}}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+image.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+mutex.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+rect.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+render.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+surface.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+ttf.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$stdio.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
|
||||
Graphe des dépendances par inclusion de display.\+c\+:\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=350pt]{display_8c__incl}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\doxysubsubsection*{Fonctions}
|
||||
\begin{DoxyCompactItemize}
|
||||
\item
|
||||
void \textbf{ screen\+Display} (char $\ast$$\ast$tab, int x, int y)
|
||||
\begin{DoxyCompactList}\small\item\em La fonction permet d\textquotesingle{}afficher simplement le plateau de jeu dans le terminal. \end{DoxyCompactList}\item
|
||||
void \textbf{ screen\+Display\+Game\+SDL} (char $\ast$$\ast$tab, \textbf{ vect} dim\+\_\+tab, \textbf{ dis} $\ast$display\+\_\+user, \textbf{ vect} $\ast$player\+\_\+pos, int fov)
|
||||
\begin{DoxyCompactList}\small\item\em La fonction affiche a l\textquotesingle{}aide de SDL la zone de jeu. \end{DoxyCompactList}\item
|
||||
int \textbf{ get\+Max\+Size} (\textbf{ dis} display\+\_\+user)
|
||||
\begin{DoxyCompactList}\small\item\em Taille de l\textquotesingle{}ecrant carre en fonction de l\textquotesingle{}ecrant du joueur avec une marge. \end{DoxyCompactList}\item
|
||||
void \textbf{ init\+SDL} (\textbf{ dis} $\ast$display\+\_\+user)
|
||||
\begin{DoxyCompactList}\small\item\em Initialise SDL. \end{DoxyCompactList}\item
|
||||
void \textbf{ display\+Image} (SDL\+\_\+\+Renderer $\ast$renderer, SDL\+\_\+\+Texture $\ast$texture, \textbf{ vect} pos, int size)
|
||||
\begin{DoxyCompactList}\small\item\em Cette fonction affiche l\textquotesingle{}image dans la fenetre de l\textquotesingle{}utilisateur. \end{DoxyCompactList}\item
|
||||
void \textbf{ display\+Text\+SDL} (\textbf{ dis} $\ast$display\+\_\+user, char $\ast$text, \textbf{ vect} coor, \textbf{ vect} size, int font\+\_\+size)
|
||||
\begin{DoxyCompactList}\small\item\em Cette fonction affiche du texte dans la fenetre de l\textquotesingle{}utilisateur. \end{DoxyCompactList}\end{DoxyCompactItemize}
|
||||
|
||||
|
||||
\doxysubsection{Description détaillée}
|
||||
Fichier contient tout les fonctions pour l\textquotesingle{}affichage.
|
||||
|
||||
\doxysubsection{Documentation des fonctions}
|
||||
\index{display.c@{display.c}!displayImage@{displayImage}}
|
||||
\index{displayImage@{displayImage}!display.c@{display.c}}
|
||||
\doxysubsubsection{displayImage()}
|
||||
{\footnotesize\ttfamily \label{display_8c_a81a2b2da875550c614a407ec735ff9d9}
|
||||
void display\+Image (\begin{DoxyParamCaption}\item[{SDL\+\_\+\+Renderer $\ast$}]{renderer}{, }\item[{SDL\+\_\+\+Texture $\ast$}]{texture}{, }\item[{\textbf{ vect}}]{pos}{, }\item[{int}]{size}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
Cette fonction affiche l\textquotesingle{}image dans la fenetre de l\textquotesingle{}utilisateur.
|
||||
|
||||
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
{\em renderer} & Le renderer de l\textquotesingle{}utilisateur. \\
|
||||
\hline
|
||||
{\em texture} & La texture de l\textquotesingle{}image à appliquer. \\
|
||||
\hline
|
||||
{\em pos} & La position de l\textquotesingle{}image à afficher. \\
|
||||
\hline
|
||||
{\em size} & La taile de l\textquotesingle{}image. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
Void
|
||||
\end{DoxyReturn}
|
||||
Voici le graphe des appelants de cette fonction \+:
|
||||
% FIG 0
|
||||
\index{display.c@{display.c}!displayTextSDL@{displayTextSDL}}
|
||||
\index{displayTextSDL@{displayTextSDL}!display.c@{display.c}}
|
||||
\doxysubsubsection{displayTextSDL()}
|
||||
{\footnotesize\ttfamily \label{display_8c_af8c0265ee608800f8daba2540c65c5b0}
|
||||
void display\+Text\+SDL (\begin{DoxyParamCaption}\item[{\textbf{ dis} $\ast$}]{display\+\_\+user}{, }\item[{char $\ast$}]{text}{, }\item[{\textbf{ vect}}]{coor}{, }\item[{\textbf{ vect}}]{size}{, }\item[{int}]{font\+\_\+size}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
Cette fonction affiche du texte dans la fenetre de l\textquotesingle{}utilisateur.
|
||||
|
||||
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
{\em display\+\_\+user} & Tous les éléments SDL de l\textquotesingle{}utilisateur. \\
|
||||
\hline
|
||||
{\em text} & Le string à afficher. \\
|
||||
\hline
|
||||
{\em coor} & Les coordonnée du texte. \\
|
||||
\hline
|
||||
{\em size} & La taille du texte. \\
|
||||
\hline
|
||||
{\em font\+\_\+size} & La taille de la font. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
Void
|
||||
\end{DoxyReturn}
|
||||
\index{display.c@{display.c}!getMaxSize@{getMaxSize}}
|
||||
\index{getMaxSize@{getMaxSize}!display.c@{display.c}}
|
||||
\doxysubsubsection{getMaxSize()}
|
||||
{\footnotesize\ttfamily \label{display_8c_ab9c0348d4cff3f20344d763945c96b40}
|
||||
int get\+Max\+Size (\begin{DoxyParamCaption}\item[{\textbf{ dis}}]{display\+\_\+user}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
Taille de l\textquotesingle{}ecrant carre en fonction de l\textquotesingle{}ecrant du joueur avec une marge.
|
||||
|
||||
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
{\em display\+\_\+user} & Qui serra modifier pour stoquer les information. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
La taille max pour la fenetre de l\textquotesingle{}utilisateur.
|
||||
\end{DoxyReturn}
|
||||
\index{display.c@{display.c}!initSDL@{initSDL}}
|
||||
\index{initSDL@{initSDL}!display.c@{display.c}}
|
||||
\doxysubsubsection{initSDL()}
|
||||
{\footnotesize\ttfamily \label{display_8c_a46638b64faa8239921eab8c3817847f4}
|
||||
void init\+SDL (\begin{DoxyParamCaption}\item[{\textbf{ dis} $\ast$}]{display\+\_\+user}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
Initialise SDL.
|
||||
|
||||
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
{\em display\+\_\+user} & Stockage d\textquotesingle{}éléments SDL. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
Void
|
||||
\end{DoxyReturn}
|
||||
\index{display.c@{display.c}!screenDisplay@{screenDisplay}}
|
||||
\index{screenDisplay@{screenDisplay}!display.c@{display.c}}
|
||||
\doxysubsubsection{screenDisplay()}
|
||||
{\footnotesize\ttfamily \label{display_8c_affba8627c7c6c768268f64fa670207e5}
|
||||
void screen\+Display (\begin{DoxyParamCaption}\item[{char $\ast$$\ast$}]{tab}{, }\item[{int}]{x}{, }\item[{int}]{y}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
La fonction permet d\textquotesingle{}afficher simplement le plateau de jeu dans le terminal.
|
||||
|
||||
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
{\em tab} & Le tableau 2d du plateau. \\
|
||||
\hline
|
||||
{\em x} & Le mombre de ligne. \\
|
||||
\hline
|
||||
{\em y} & Le nombre de colonnes. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
Void
|
||||
\end{DoxyReturn}
|
||||
\index{display.c@{display.c}!screenDisplayGameSDL@{screenDisplayGameSDL}}
|
||||
\index{screenDisplayGameSDL@{screenDisplayGameSDL}!display.c@{display.c}}
|
||||
\doxysubsubsection{screenDisplayGameSDL()}
|
||||
{\footnotesize\ttfamily \label{display_8c_a9ed2db696b902038cc72feee1d0c30f3}
|
||||
void screen\+Display\+Game\+SDL (\begin{DoxyParamCaption}\item[{char $\ast$$\ast$}]{tab}{, }\item[{\textbf{ vect}}]{dim\+\_\+tab}{, }\item[{\textbf{ dis} $\ast$}]{display\+\_\+user}{, }\item[{\textbf{ vect} $\ast$}]{player\+\_\+pos}{, }\item[{int}]{fov}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
La fonction affiche a l\textquotesingle{}aide de SDL la zone de jeu.
|
||||
|
||||
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
{\em tab} & Le tableau 2d de la zone de jeu. \\
|
||||
\hline
|
||||
{\em display\+\_\+user} & La structure qui possede tous ce qu\textquotesingle{}il faut pour l\textquotesingle{}affichage SDL \\
|
||||
\hline
|
||||
{\em player\+\_\+pos} & la position du joueur \\
|
||||
\hline
|
||||
{\em fov} & Le fov de la vision du joueur, -\/1 si desactiver. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
Void
|
||||
\end{DoxyReturn}
|
||||
Voici le graphe d\textquotesingle{}appel pour cette fonction \+:
|
||||
% FIG 1
|
||||
@@ -0,0 +1,11 @@
|
||||
digraph "displayImage"
|
||||
{
|
||||
// LATEX_PDF_SIZE
|
||||
bgcolor="transparent";
|
||||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
|
||||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
|
||||
rankdir="RL";
|
||||
Node1 [id="Node000001",label="displayImage",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip="Cette fonction affiche l'image dans la fenetre de l'utilisateur."];
|
||||
Node1 -> Node2 [id="edge2_Node000001_Node000002",dir="back",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node2 [id="Node000002",label="screenDisplayGameSDL",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$display_8c.html#a9ed2db696b902038cc72feee1d0c30f3",tooltip="La fonction affiche a l'aide de SDL la zone de jeu."];
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
digraph "screenDisplayGameSDL"
|
||||
{
|
||||
// LATEX_PDF_SIZE
|
||||
bgcolor="transparent";
|
||||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
|
||||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
|
||||
rankdir="LR";
|
||||
Node1 [id="Node000001",label="screenDisplayGameSDL",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip="La fonction affiche a l'aide de SDL la zone de jeu."];
|
||||
Node1 -> Node2 [id="edge2_Node000001_Node000002",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node2 [id="Node000002",label="displayImage",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$display_8c.html#a81a2b2da875550c614a407ec735ff9d9",tooltip="Cette fonction affiche l'image dans la fenetre de l'utilisateur."];
|
||||
}
|
||||
@@ -9,13 +9,13 @@
|
||||
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ <SDL2/SDL.h>}}
|
||||
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ <SDL2/SDL\_ttf.h>}}
|
||||
\DoxyCodeLine{00007\ }
|
||||
\DoxyCodeLine{00008\ \textcolor{keywordtype}{void}\ screenDisplay\ (\textcolor{keywordtype}{char}\ **tab,\ \textcolor{keywordtype}{int}\ size);}
|
||||
\DoxyCodeLine{00008\ \textcolor{keywordtype}{void}\ screenDisplay\ (\textcolor{keywordtype}{char}\ **tab,\ \textcolor{keywordtype}{int}\ x,\ \textcolor{keywordtype}{int}\ y);}
|
||||
\DoxyCodeLine{00009\ \textcolor{keywordtype}{int}\ getMaxSize\ (dis\ display\_user);}
|
||||
\DoxyCodeLine{00010\ \textcolor{keywordtype}{void}\ displayImage\ (SDL\_Renderer\ *renderer,\ SDL\_Texture\ *texture,\ vect\ pos,}
|
||||
\DoxyCodeLine{00011\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ size);}
|
||||
\DoxyCodeLine{00012\ \textcolor{keywordtype}{void}\ initSDL\ (dis\ *display\_user);}
|
||||
\DoxyCodeLine{00013\ \textcolor{keywordtype}{void}\ screenDisplayGameSDL\ (\textcolor{keywordtype}{char}\ **tab,\ dis\ *display\_user);}
|
||||
\DoxyCodeLine{00014\ \textcolor{keywordtype}{void}\ displayTextSDL(dis\ *display\_user,\textcolor{keywordtype}{char}\ *text,\ vect\ coor,\ vect\ size,\ \textcolor{keywordtype}{int}\ font\_size);}
|
||||
\DoxyCodeLine{00013\ \textcolor{keywordtype}{void}\ displayTextSDL(dis\ *display\_user,\textcolor{keywordtype}{char}\ *text,\ vect\ coor,\ vect\ size,\ \textcolor{keywordtype}{int}\ font\_size);}
|
||||
\DoxyCodeLine{00014\ \textcolor{keywordtype}{void}\ screenDisplayGameSDL\ (\textcolor{keywordtype}{char}\ **tab,vect\ dim\_tab,\ dis\ *display\_user,\ vect\ *player\_pos,\ \textcolor{keywordtype}{int}\ fov);}
|
||||
\DoxyCodeLine{00015\ }
|
||||
\DoxyCodeLine{00016\ }
|
||||
\DoxyCodeLine{00017\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ !DISPLAY\_H}}
|
||||
|
||||
@@ -122,6 +122,7 @@
|
||||
% Used by @code ... @endcode
|
||||
\newenvironment{DoxyCode}[1]{%
|
||||
\par%
|
||||
\vspace{2pt}%
|
||||
\scriptsize%
|
||||
\normalfont\ttfamily%
|
||||
\rightskip0pt plus 1fil%
|
||||
@@ -129,14 +130,14 @@
|
||||
\settowidth{\CodeWidthChar}{?}%
|
||||
\settoheight{\CodeHeightChar}{?}%
|
||||
\setlength{\parskip}{0ex plus 0ex minus 0ex}%
|
||||
\ifthenelse{\equal{#1}{0}}
|
||||
{
|
||||
\ifthenelse{\equal{#1}{0}}%
|
||||
{%
|
||||
{\lccode`~32 \lowercase{\global\let~}\NiceSpace}\obeyspaces%
|
||||
}
|
||||
{
|
||||
}%
|
||||
{%
|
||||
{\lccode`~32 \lowercase{\global\let~}}\obeyspaces%
|
||||
}
|
||||
|
||||
}%
|
||||
\vspace{2pt}%
|
||||
}{%
|
||||
\normalfont%
|
||||
\normalsize%
|
||||
|
||||
@@ -3,7 +3,9 @@
|
||||
{\ttfamily \#include "{}../include/function.\+h"{}}\newline
|
||||
{\ttfamily \#include "{}../include/display.\+h"{}}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+events.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+image.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+keycode.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+rect.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+render.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+scancode.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+timer.\+h$>$}\newline
|
||||
@@ -12,26 +14,20 @@
|
||||
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$time.\+h$>$}\newline
|
||||
Graphe des dépendances par inclusion de function.\+c\+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=350pt]{function_8c__incl}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
% FIG 0
|
||||
\doxysubsubsection*{Fonctions}
|
||||
\begin{DoxyCompactItemize}
|
||||
\item
|
||||
char $\ast$$\ast$ \textbf{ creat\+Area2D} (const unsigned int N)
|
||||
\begin{DoxyCompactList}\small\item\em Cette fonction permet de creer une liste 2D carre. \end{DoxyCompactList}\item
|
||||
void \textbf{ free2D} (char $\ast$$\ast$tab, int N)
|
||||
char $\ast$$\ast$ \textbf{ creat\+Area2D} (const int x, const int y)
|
||||
\begin{DoxyCompactList}\small\item\em Cette fonction permet de creer une liste 2D. \end{DoxyCompactList}\item
|
||||
void \textbf{ free2D} (char $\ast$$\ast$tab, int x)
|
||||
\begin{DoxyCompactList}\small\item\em Cette fontion permet de liberer l\textquotesingle{}espace tu tableau 2D de char. \end{DoxyCompactList}\item
|
||||
char \textbf{ can\+IGo\+Direction} (char value\+Of\+NCase, char value\+Of\+NPlus\+One\+Case)
|
||||
\begin{DoxyCompactList}\small\item\em La fontction permet de savoir si le joueur peut ce deplacer dans une direction. \end{DoxyCompactList}\item
|
||||
void \textbf{ move} (char $\ast$$\ast$tab, \textbf{ vect} $\ast$player\+Pos, \textbf{ vect} direction, \textbf{ score} $\ast$score\+\_\+user)
|
||||
\begin{DoxyCompactList}\small\item\em Cette fonction effectue les deplacements du joueur et des boites en fonction de la situation. \end{DoxyCompactList}\item
|
||||
void \textbf{ in\+Game\+Loop} (char $\ast$$\ast$tab2d, int N, \textbf{ vect} $\ast$player\+Pos, \textbf{ vect} $\ast$targets, int nbr\+\_\+targets, \textbf{ dis} $\ast$display\+\_\+user, \textbf{ score} $\ast$score\+\_\+user)
|
||||
\begin{DoxyCompactList}\small\item\em La fonction permet de faire la boucle de jeu. \end{DoxyCompactList}\item
|
||||
int \textbf{ in\+Game\+Loop} (char $\ast$$\ast$tab2d, \textbf{ vect} $\ast$dim\+\_\+tab, \textbf{ vect} $\ast$player\+Pos, \textbf{ vect} $\ast$targets, int nbr\+\_\+targets, \textbf{ dis} $\ast$display\+\_\+user, \textbf{ score} $\ast$score\+\_\+user, bool menu)
|
||||
\begin{DoxyCompactList}\small\item\em La fonction permet de faire la boucle de jeu et le menu. \end{DoxyCompactList}\item
|
||||
bool \textbf{ is\+Win} (char $\ast$$\ast$tab2d, \textbf{ vect} $\ast$targets, int nbr\+\_\+targets)
|
||||
\begin{DoxyCompactList}\small\item\em Cette fonction verrifie si la partie est gagnante. \end{DoxyCompactList}\item
|
||||
bool \textbf{ islose} (char $\ast$$\ast$tab2d, const int N)
|
||||
@@ -44,7 +40,14 @@ int {\bfseries length\+Vect} (\textbf{ vect} vector)
|
||||
bool \textbf{ block\+Box} (char $\ast$$\ast$tab2d, \textbf{ vect} box\+\_\+coor)
|
||||
\begin{DoxyCompactList}\small\item\em La fonction permet de savoir si une boite est dans une situation ou le joueur ne poura pas la debloqué. \end{DoxyCompactList}\item
|
||||
char $\ast$ \textbf{ time\+To\+Text} (time\+\_\+t time)
|
||||
\begin{DoxyCompactList}\small\item\em Cette fonction renvois transforme le forma time en texte. (min\+:sec) \end{DoxyCompactList}\end{DoxyCompactItemize}
|
||||
\begin{DoxyCompactList}\small\item\em Cette fonction renvois transforme le forma time en texte. (min\+:sec) \end{DoxyCompactList}\item
|
||||
void \textbf{ null\+Score} (\textbf{ score} $\ast$player\+\_\+score)
|
||||
\begin{DoxyCompactList}\small\item\em Mets à 0 le score. \end{DoxyCompactList}\item
|
||||
void \textbf{ win\+Or\+Lose\+Loop} (\textbf{ dis} $\ast$display\+\_\+user, \textbf{ score} $\ast$score\+\_\+user, bool win)
|
||||
\begin{DoxyCompactList}\small\item\em Fonction de loop pour la win ou la lose. \end{DoxyCompactList}\item
|
||||
\label{function_8c_aeac9c46be252cd970406e3a2391b8e8c}
|
||||
unsigned int {\bfseries score\+Calculator} (\textbf{ score} $\ast$score\+\_\+user, bool win)
|
||||
\end{DoxyCompactItemize}
|
||||
|
||||
|
||||
\doxysubsection{Description détaillée}
|
||||
@@ -71,8 +74,7 @@ La fonction permet de savoir si une boite est dans une situation ou le joueur ne
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
True si la la boite est bloquer, sinon false.
|
||||
\end{DoxyReturn}
|
||||
Voici le graphe d\textquotesingle{}appel pour cette fonction \+:
|
||||
\nopagebreak
|
||||
Voici le graphe d\textquotesingle{}appel pour cette fonction \+:\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
@@ -80,13 +82,7 @@ Voici le graphe d\textquotesingle{}appel pour cette fonction \+:
|
||||
\end{center}
|
||||
\end{figure}
|
||||
Voici le graphe des appelants de cette fonction \+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=321pt]{function_8c_ac51249b2f7941ca06e6a614e071dd444_icgraph}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
% FIG 1
|
||||
\index{function.c@{function.c}!canIGoDirection@{canIGoDirection}}
|
||||
\index{canIGoDirection@{canIGoDirection}!function.c@{function.c}}
|
||||
\doxysubsubsection{canIGoDirection()}
|
||||
@@ -105,39 +101,35 @@ La fontction permet de savoir si le joueur peut ce deplacer dans une direction.
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
0 Si c\textquotesingle{}est un mur devant le joueur, 1 si c\textquotesingle{}est vide devant le joueur, 2 si c\textquotesingle{}est une boite mais qu\textquotesingle{}on peux la pousser ,3 si le joueur pousse une boite sur un point d\textquotesingle{}interer, 4 si le joueur bouge sur un point d\textquotesingle{}interer, 5 si le joueur peux pousser une boite mais le joueur se place sur un point d\textquotesingle{}interer et 6 si le joeuur pousse une boite sur un point d\textquotesingle{}interer et que le joueu est aussi sur un point d\textquotesingle{}interer.
|
||||
0 Si c\textquotesingle{}est un mur devant le joueur, 1 si c\textquotesingle{}est vide devant le joueur, 2 si c\textquotesingle{}est une boite mais qu\textquotesingle{}on peux la pousser ,3 si le joueur pousse une boite sur un point d\textquotesingle{}interer, 4 si le joueur bouge sur un point d\textquotesingle{}interer, 5 si le joueur peux pousser une boite mais le joueur se place sur un point d\textquotesingle{}interer et 6 si le joueur pousse une boite sur un point d\textquotesingle{}interer et que le joueur est aussi sur un point d\textquotesingle{}interer. 7 si value\+Of\+NCase est un bouton.
|
||||
\end{DoxyReturn}
|
||||
Voici le graphe des appelants de cette fonction \+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=349pt]{function_8c_a76df2bc0c692d3397837706a6852ac36_icgraph}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
% FIG 2
|
||||
\index{function.c@{function.c}!creatArea2D@{creatArea2D}}
|
||||
\index{creatArea2D@{creatArea2D}!function.c@{function.c}}
|
||||
\doxysubsubsection{creatArea2D()}
|
||||
{\footnotesize\ttfamily \label{function_8c_af81182d12b72ee349a71d6685217b097}
|
||||
char $\ast$$\ast$ creat\+Area2D (\begin{DoxyParamCaption}\item[{const unsigned int}]{N}{}\end{DoxyParamCaption})}
|
||||
{\footnotesize\ttfamily \label{function_8c_a1d06514900b90ce163ebe2d5aefc16db}
|
||||
char $\ast$$\ast$ creat\+Area2D (\begin{DoxyParamCaption}\item[{const int}]{x}{, }\item[{const int}]{y}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
Cette fonction permet de creer une liste 2D carre.
|
||||
Cette fonction permet de creer une liste 2D.
|
||||
|
||||
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
{\em N} & La valeur N est le nombre d\textquotesingle{}élément dans le tableau. \\
|
||||
{\em x} & Nombre de ligne. \\
|
||||
\hline
|
||||
{\em y} & Nombre de colonne. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
Le pointeur du tableau 2D carre de char (1 octet).
|
||||
Le pointeur du tableau 2D de char (1 octet).
|
||||
\end{DoxyReturn}
|
||||
\index{function.c@{function.c}!free2D@{free2D}}
|
||||
\index{free2D@{free2D}!function.c@{function.c}}
|
||||
\doxysubsubsection{free2D()}
|
||||
{\footnotesize\ttfamily \label{function_8c_af19c482f0f97b30cbb0253356ed1724b}
|
||||
void free2D (\begin{DoxyParamCaption}\item[{char $\ast$$\ast$}]{tab}{, }\item[{int}]{N}{}\end{DoxyParamCaption})}
|
||||
{\footnotesize\ttfamily \label{function_8c_a9011ea69a97e2101aa9bcc52cc60d4ce}
|
||||
void free2D (\begin{DoxyParamCaption}\item[{char $\ast$$\ast$}]{tab}{, }\item[{int}]{x}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
@@ -147,7 +139,7 @@ Cette fontion permet de liberer l\textquotesingle{}espace tu tableau 2D de char.
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
{\em tab} & Le tableau 2D. \\
|
||||
\hline
|
||||
{\em N} & Le nombre d\textquotesingle{}éléments. \\
|
||||
{\em x} & Le nombre de ligne. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
@@ -156,12 +148,12 @@ Void.
|
||||
\index{function.c@{function.c}!inGameLoop@{inGameLoop}}
|
||||
\index{inGameLoop@{inGameLoop}!function.c@{function.c}}
|
||||
\doxysubsubsection{inGameLoop()}
|
||||
{\footnotesize\ttfamily \label{function_8c_a2387ddb7cde4f9d45198b0c131a60878}
|
||||
void in\+Game\+Loop (\begin{DoxyParamCaption}\item[{char $\ast$$\ast$}]{tab2d}{, }\item[{int}]{N}{, }\item[{\textbf{ vect} $\ast$}]{player\+Pos}{, }\item[{\textbf{ vect} $\ast$}]{targets}{, }\item[{int}]{nbr\+\_\+targets}{, }\item[{\textbf{ dis} $\ast$}]{display\+\_\+user}{, }\item[{\textbf{ score} $\ast$}]{score\+\_\+user}{}\end{DoxyParamCaption})}
|
||||
{\footnotesize\ttfamily \label{function_8c_a7f8e67bce9078c159778bbe2f57e9d2f}
|
||||
int in\+Game\+Loop (\begin{DoxyParamCaption}\item[{char $\ast$$\ast$}]{tab2d}{, }\item[{\textbf{ vect} $\ast$}]{dim\+\_\+tab}{, }\item[{\textbf{ vect} $\ast$}]{player\+Pos}{, }\item[{\textbf{ vect} $\ast$}]{targets}{, }\item[{int}]{nbr\+\_\+targets}{, }\item[{\textbf{ dis} $\ast$}]{display\+\_\+user}{, }\item[{\textbf{ score} $\ast$}]{score\+\_\+user}{, }\item[{bool}]{menu}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
La fonction permet de faire la boucle de jeu.
|
||||
La fonction permet de faire la boucle de jeu et le menu.
|
||||
|
||||
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
@@ -179,18 +171,14 @@ La fonction permet de faire la boucle de jeu.
|
||||
\hline
|
||||
{\em score\+\_\+user} & Toute les données nécessaire pour calculer le score fini du joueur. \\
|
||||
\hline
|
||||
{\em menu} & True si c\textquotesingle{}est la loop du menu. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
Void
|
||||
L\textquotesingle{}indice de la map si c\textquotesingle{}est un menu, sinon renvoie -\/1
|
||||
\end{DoxyReturn}
|
||||
Voici le graphe d\textquotesingle{}appel pour cette fonction \+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=350pt]{function_8c_a2387ddb7cde4f9d45198b0c131a60878_cgraph}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
% FIG 3
|
||||
\index{function.c@{function.c}!islose@{islose}}
|
||||
\index{islose@{islose}!function.c@{function.c}}
|
||||
\doxysubsubsection{islose()}
|
||||
@@ -205,28 +193,19 @@ La fonction renvois si la partie est perdante.
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
{\em tab2d} & Le tableau 2d carre du plateau de jeu. \\
|
||||
\hline
|
||||
{\em N} & Le nombre d\textquotesingle{}éléments dans le tab2d. \\
|
||||
{\em N} & Le nombre d\textquotesingle{}éléments dans le tab2d. (zone de jeu est carré) \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
True si c\textquotesingle{}est perdu, false si c\textquotesingle{}est pas perdu a cette instant.
|
||||
\end{DoxyReturn}
|
||||
Voici le graphe d\textquotesingle{}appel pour cette fonction \+:
|
||||
\nopagebreak
|
||||
Voici le graphe d\textquotesingle{}appel pour cette fonction \+:\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=312pt]{function_8c_ac155bb183b0c26d19758d8d065baf14f_cgraph}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
Voici le graphe des appelants de cette fonction \+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=229pt]{function_8c_ac155bb183b0c26d19758d8d065baf14f_icgraph}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\index{function.c@{function.c}!isWin@{isWin}}
|
||||
\index{isWin@{isWin}!function.c@{function.c}}
|
||||
\doxysubsubsection{isWin()}
|
||||
@@ -249,14 +228,6 @@ Cette fonction verrifie si la partie est gagnante.
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
True si le joueur a remplis tout les points d\textquotesingle{}interer, false si ce n\textquotesingle{}est pas le cas .
|
||||
\end{DoxyReturn}
|
||||
Voici le graphe des appelants de cette fonction \+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=228pt]{function_8c_a618903fbb7302d98ef0f3e2e6b35b99a_icgraph}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
\index{function.c@{function.c}!move@{move}}
|
||||
\index{move@{move}!function.c@{function.c}}
|
||||
\doxysubsubsection{move()}
|
||||
@@ -281,8 +252,7 @@ Cette fonction effectue les deplacements du joueur et des boites en fonction de
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
Void
|
||||
\end{DoxyReturn}
|
||||
Voici le graphe d\textquotesingle{}appel pour cette fonction \+:
|
||||
\nopagebreak
|
||||
Voici le graphe d\textquotesingle{}appel pour cette fonction \+:\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
@@ -290,13 +260,25 @@ Voici le graphe d\textquotesingle{}appel pour cette fonction \+:
|
||||
\end{center}
|
||||
\end{figure}
|
||||
Voici le graphe des appelants de cette fonction \+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=228pt]{function_8c_ac93ca31d854d91eedf3babda7511407d_icgraph}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
% FIG 4
|
||||
\index{function.c@{function.c}!nullScore@{nullScore}}
|
||||
\index{nullScore@{nullScore}!function.c@{function.c}}
|
||||
\doxysubsubsection{nullScore()}
|
||||
{\footnotesize\ttfamily \label{function_8c_a4a66f9d998c95fde67d6f89fef1fded5}
|
||||
void null\+Score (\begin{DoxyParamCaption}\item[{\textbf{ score} $\ast$}]{player\+\_\+score}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
Mets à 0 le score.
|
||||
|
||||
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
{\em player\+\_\+score} & Le score a mettre à 0. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
void
|
||||
\end{DoxyReturn}
|
||||
\index{function.c@{function.c}!plusVect@{plusVect}}
|
||||
\index{plusVect@{plusVect}!function.c@{function.c}}
|
||||
\doxysubsubsection{plusVect()}
|
||||
@@ -318,13 +300,7 @@ La fonction fait une addition de vecteur, (x1+x2, y1+y2).
|
||||
vect Un vecteur de l\textquotesingle{}addition de one et two.
|
||||
\end{DoxyReturn}
|
||||
Voici le graphe des appelants de cette fonction \+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=350pt]{function_8c_a5b10e69716d92eadf2ed0b3942cb9d4d_icgraph}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
% FIG 5
|
||||
\index{function.c@{function.c}!timeToText@{timeToText}}
|
||||
\index{timeToText@{timeToText}!function.c@{function.c}}
|
||||
\doxysubsubsection{timeToText()}
|
||||
@@ -344,10 +320,21 @@ Cette fonction renvois transforme le forma time en texte. (min\+:sec)
|
||||
char Le string du texte.
|
||||
\end{DoxyReturn}
|
||||
Voici le graphe des appelants de cette fonction \+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=252pt]{function_8c_a51c9ba7a24383f1b20dcedfcb570aab5_icgraph}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
% FIG 6
|
||||
\index{function.c@{function.c}!winOrLoseLoop@{winOrLoseLoop}}
|
||||
\index{winOrLoseLoop@{winOrLoseLoop}!function.c@{function.c}}
|
||||
\doxysubsubsection{winOrLoseLoop()}
|
||||
{\footnotesize\ttfamily \label{function_8c_a2dc9de2f6fd2bed3619d7ce8c1f05590}
|
||||
void win\+Or\+Lose\+Loop (\begin{DoxyParamCaption}\item[{\textbf{ dis} $\ast$}]{display\+\_\+user}{, }\item[{\textbf{ score} $\ast$}]{score\+\_\+user}{, }\item[{bool}]{win}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
Fonction de loop pour la win ou la lose.
|
||||
|
||||
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
{\em display\+\_\+user} & Tout les information du display de l\textquotesingle{}utilisateur utile. \\
|
||||
\hline
|
||||
{\em win} & Si on veut un affichage de victoire ou non. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
|
||||
46
rapport/latex/function_8c__incl.dot
Normal file
46
rapport/latex/function_8c__incl.dot
Normal file
@@ -0,0 +1,46 @@
|
||||
digraph "function.c"
|
||||
{
|
||||
// LATEX_PDF_SIZE
|
||||
bgcolor="transparent";
|
||||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
|
||||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
|
||||
Node1 [id="Node000001",label="function.c",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip=" "];
|
||||
Node1 -> Node2 [id="edge23_Node000001_Node000002",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node2 [id="Node000002",label="../include/function.h",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8h_source.html",tooltip=" "];
|
||||
Node2 -> Node3 [id="edge24_Node000002_Node000003",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node3 [id="Node000003",label="SDL2/SDL.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node2 -> Node4 [id="edge25_Node000002_Node000004",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node4 [id="Node000004",label="SDL2/SDL_render.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node2 -> Node5 [id="edge26_Node000002_Node000005",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node5 [id="Node000005",label="SDL2/SDL_video.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node2 -> Node6 [id="edge27_Node000002_Node000006",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node6 [id="Node000006",label="stdbool.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node2 -> Node7 [id="edge28_Node000002_Node000007",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node7 [id="Node000007",label="stdlib.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node2 -> Node8 [id="edge29_Node000002_Node000008",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node8 [id="Node000008",label="time.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node1 -> Node9 [id="edge30_Node000001_Node000009",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node9 [id="Node000009",label="../include/display.h",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$display_8h_source.html",tooltip=" "];
|
||||
Node9 -> Node2 [id="edge31_Node000009_Node000002",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node9 -> Node3 [id="edge32_Node000009_Node000003",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node9 -> Node10 [id="edge33_Node000009_Node000010",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node10 [id="Node000010",label="SDL2/SDL_ttf.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node1 -> Node11 [id="edge34_Node000001_Node000011",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node11 [id="Node000011",label="SDL2/SDL_events.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node1 -> Node12 [id="edge35_Node000001_Node000012",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node12 [id="Node000012",label="SDL2/SDL_image.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node1 -> Node13 [id="edge36_Node000001_Node000013",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node13 [id="Node000013",label="SDL2/SDL_keycode.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node1 -> Node14 [id="edge37_Node000001_Node000014",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node14 [id="Node000014",label="SDL2/SDL_rect.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node1 -> Node4 [id="edge38_Node000001_Node000004",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node1 -> Node15 [id="edge39_Node000001_Node000015",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node15 [id="Node000015",label="SDL2/SDL_scancode.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node1 -> Node16 [id="edge40_Node000001_Node000016",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node16 [id="Node000016",label="SDL2/SDL_timer.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node1 -> Node6 [id="edge41_Node000001_Node000006",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node1 -> Node17 [id="edge42_Node000001_Node000017",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node17 [id="Node000017",label="stdio.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node1 -> Node7 [id="edge43_Node000001_Node000007",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node1 -> Node8 [id="edge44_Node000001_Node000008",color="steelblue1",style="solid",tooltip=" "];
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
digraph "timeToText"
|
||||
{
|
||||
// LATEX_PDF_SIZE
|
||||
bgcolor="transparent";
|
||||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
|
||||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
|
||||
rankdir="RL";
|
||||
Node1 [id="Node000001",label="timeToText",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip="Cette fonction renvois transforme le forma time en texte. (min:sec)"];
|
||||
Node1 -> Node2 [id="edge2_Node000001_Node000002",dir="back",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node2 [id="Node000002",label="inGameLoop",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#a7f8e67bce9078c159778bbe2f57e9d2f",tooltip="La fonction permet de faire la boucle de jeu et le menu."];
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
digraph "plusVect"
|
||||
{
|
||||
// LATEX_PDF_SIZE
|
||||
bgcolor="transparent";
|
||||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
|
||||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
|
||||
rankdir="RL";
|
||||
Node1 [id="Node000001",label="plusVect",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip="La fonction fait une addition de vecteur, (x1+x2, y1+y2)."];
|
||||
Node1 -> Node2 [id="edge5_Node000001_Node000002",dir="back",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node2 [id="Node000002",label="blockBox",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#ac51249b2f7941ca06e6a614e071dd444",tooltip="La fonction permet de savoir si une boite est dans une situation ou le joueur ne poura pas la debloqu..."];
|
||||
Node2 -> Node3 [id="edge6_Node000002_Node000003",dir="back",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node3 [id="Node000003",label="islose",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#ac155bb183b0c26d19758d8d065baf14f",tooltip="La fonction renvois si la partie est perdante."];
|
||||
Node1 -> Node4 [id="edge7_Node000001_Node000004",dir="back",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node4 [id="Node000004",label="move",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#ac93ca31d854d91eedf3babda7511407d",tooltip="Cette fonction effectue les deplacements du joueur et des boites en fonction de la situation."];
|
||||
Node4 -> Node5 [id="edge8_Node000004_Node000005",dir="back",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node5 [id="Node000005",label="inGameLoop",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#a7f8e67bce9078c159778bbe2f57e9d2f",tooltip="La fonction permet de faire la boucle de jeu et le menu."];
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
digraph "canIGoDirection"
|
||||
{
|
||||
// LATEX_PDF_SIZE
|
||||
bgcolor="transparent";
|
||||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
|
||||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
|
||||
rankdir="RL";
|
||||
Node1 [id="Node000001",label="canIGoDirection",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip="La fontction permet de savoir si le joueur peut ce deplacer dans une direction."];
|
||||
Node1 -> Node2 [id="edge3_Node000001_Node000002",dir="back",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node2 [id="Node000002",label="move",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#ac93ca31d854d91eedf3babda7511407d",tooltip="Cette fonction effectue les deplacements du joueur et des boites en fonction de la situation."];
|
||||
Node2 -> Node3 [id="edge4_Node000002_Node000003",dir="back",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node3 [id="Node000003",label="inGameLoop",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#a7f8e67bce9078c159778bbe2f57e9d2f",tooltip="La fonction permet de faire la boucle de jeu et le menu."];
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
digraph "inGameLoop"
|
||||
{
|
||||
// LATEX_PDF_SIZE
|
||||
bgcolor="transparent";
|
||||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
|
||||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
|
||||
rankdir="LR";
|
||||
Node1 [id="Node000001",label="inGameLoop",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip="La fonction permet de faire la boucle de jeu et le menu."];
|
||||
Node1 -> Node2 [id="edge5_Node000001_Node000002",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node2 [id="Node000002",label="move",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#ac93ca31d854d91eedf3babda7511407d",tooltip="Cette fonction effectue les deplacements du joueur et des boites en fonction de la situation."];
|
||||
Node2 -> Node3 [id="edge6_Node000002_Node000003",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node3 [id="Node000003",label="canIGoDirection",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#a76df2bc0c692d3397837706a6852ac36",tooltip="La fontction permet de savoir si le joueur peut ce deplacer dans une direction."];
|
||||
Node2 -> Node4 [id="edge7_Node000002_Node000004",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node4 [id="Node000004",label="plusVect",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#a5b10e69716d92eadf2ed0b3942cb9d4d",tooltip="La fonction fait une addition de vecteur, (x1+x2, y1+y2)."];
|
||||
Node1 -> Node5 [id="edge8_Node000001_Node000005",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node5 [id="Node000005",label="timeToText",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#a51c9ba7a24383f1b20dcedfcb570aab5",tooltip="Cette fonction renvois transforme le forma time en texte. (min:sec)"];
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
digraph "blockBox"
|
||||
{
|
||||
// LATEX_PDF_SIZE
|
||||
bgcolor="transparent";
|
||||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
|
||||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
|
||||
rankdir="RL";
|
||||
Node1 [id="Node000001",label="blockBox",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip="La fonction permet de savoir si une boite est dans une situation ou le joueur ne poura pas la debloqu..."];
|
||||
Node1 -> Node2 [id="edge2_Node000001_Node000002",dir="back",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node2 [id="Node000002",label="islose",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#ac155bb183b0c26d19758d8d065baf14f",tooltip="La fonction renvois si la partie est perdante."];
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
digraph "move"
|
||||
{
|
||||
// LATEX_PDF_SIZE
|
||||
bgcolor="transparent";
|
||||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
|
||||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
|
||||
rankdir="RL";
|
||||
Node1 [id="Node000001",label="move",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip="Cette fonction effectue les deplacements du joueur et des boites en fonction de la situation."];
|
||||
Node1 -> Node2 [id="edge2_Node000001_Node000002",dir="back",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node2 [id="Node000002",label="inGameLoop",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#a7f8e67bce9078c159778bbe2f57e9d2f",tooltip="La fonction permet de faire la boucle de jeu et le menu."];
|
||||
}
|
||||
@@ -12,48 +12,53 @@
|
||||
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#include\ <stdlib.h>}}
|
||||
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#include\ <time.h>}}
|
||||
\DoxyCodeLine{00010\ }
|
||||
\DoxyCodeLine{00011\ \textcolor{preprocessor}{\#define\ EMPTY\ 0}}
|
||||
\DoxyCodeLine{00012\ \textcolor{preprocessor}{\#define\ WALL\ 1}}
|
||||
\DoxyCodeLine{00011\ \textcolor{preprocessor}{\#define\ EMPTY\ 1}}
|
||||
\DoxyCodeLine{00012\ \textcolor{preprocessor}{\#define\ WALL\ 0}}
|
||||
\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}}
|
||||
\DoxyCodeLine{00018\ \textcolor{preprocessor}{\#define\ BUTTON\ 7}}
|
||||
\DoxyCodeLine{00019\ \textcolor{preprocessor}{\#define\ PLAYER\_ON\_BUTTON\ 8}}
|
||||
\DoxyCodeLine{00020\ }
|
||||
\DoxyCodeLine{00021\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }Vecteur}
|
||||
\DoxyCodeLine{00022\ \{}
|
||||
\DoxyCodeLine{00023\ \ \ \ \ \textcolor{keywordtype}{int}\ x;}
|
||||
\DoxyCodeLine{00024\ \ \ \ \ \textcolor{keywordtype}{int}\ y;}
|
||||
\DoxyCodeLine{00025\ \}\ vect;}
|
||||
\DoxyCodeLine{00026\ }
|
||||
\DoxyCodeLine{00027\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }Score}
|
||||
\DoxyCodeLine{00028\ \{}
|
||||
\DoxyCodeLine{00029\ \ \ \ \ time\_t\ before;}
|
||||
\DoxyCodeLine{00030\ \ \ \ \ time\_t\ after;}
|
||||
\DoxyCodeLine{00031\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ move\_player;}
|
||||
\DoxyCodeLine{00032\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ move\_box;}
|
||||
\DoxyCodeLine{00033\ \}\ score;}
|
||||
\DoxyCodeLine{00034\ }
|
||||
\DoxyCodeLine{00035\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }essential\_sdl}
|
||||
\DoxyCodeLine{00036\ \{}
|
||||
\DoxyCodeLine{00037\ \ \ \ \ SDL\_Window\ *window;}
|
||||
\DoxyCodeLine{00038\ \ \ \ \ SDL\_Renderer\ *renderer;}
|
||||
\DoxyCodeLine{00039\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ size\_window;}
|
||||
\DoxyCodeLine{00040\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ size\_box;}
|
||||
\DoxyCodeLine{00041\ \ \ \ \ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ size\_menu;}
|
||||
\DoxyCodeLine{00042\ \}\ dis;}
|
||||
\DoxyCodeLine{00043\ }
|
||||
\DoxyCodeLine{00044\ \textcolor{keywordtype}{char}\ **creatArea2D\ (\textcolor{keyword}{const}\ \textcolor{keywordtype}{int}\ x,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{int}\ y);}
|
||||
\DoxyCodeLine{00045\ \textcolor{keywordtype}{void}\ free2D\ (\textcolor{keywordtype}{char}\ **tab,\ \textcolor{keywordtype}{int}\ x);}
|
||||
\DoxyCodeLine{00046\ \textcolor{keywordtype}{bool}\ isWin\ (\textcolor{keywordtype}{char}\ **tab2d,\ vect\ *targets,\ \textcolor{keywordtype}{int}\ nbr\_targets);}
|
||||
\DoxyCodeLine{00047\ \textcolor{keywordtype}{bool}\ islose\ (\textcolor{keywordtype}{char}\ **tab2d,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{int}\ N);}
|
||||
\DoxyCodeLine{00048\ \textcolor{keywordtype}{bool}\ blockBox\ (\textcolor{keywordtype}{char}\ **tab2d,\ vect\ box\_coor);}
|
||||
\DoxyCodeLine{00049\ vect\ plusVect\ (vect\ one,\ vect\ two);}
|
||||
\DoxyCodeLine{00050\ }
|
||||
\DoxyCodeLine{00051\ \textcolor{keywordtype}{int}\ inGameLoop\ (\textcolor{keywordtype}{char}\ **tab2d,\ vect\ *dim\_tab,\ vect\ *playerPos,\ vect\ *targets,}
|
||||
\DoxyCodeLine{00052\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ nbr\_targets,\ dis\ *display\_user,\ score\ *score\_user,\ \textcolor{keywordtype}{bool}\ menu);}
|
||||
\DoxyCodeLine{00053\ \textcolor{keywordtype}{char}\ *timeToText(time\_t\ time);}
|
||||
\DoxyCodeLine{00054\ \textcolor{keywordtype}{void}\ nullScore(score\ *player\_score);}
|
||||
\DoxyCodeLine{00055\ \textcolor{keywordtype}{void}\ winOrLoseLoop(dis\ *display\_user,score\ *score\_user,\ \textcolor{keywordtype}{bool}\ win);}
|
||||
\DoxyCodeLine{00056\ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ scoreCalculator(score\ *score\_user,\ \textcolor{keywordtype}{bool}\ win);}
|
||||
\DoxyCodeLine{00057\ }
|
||||
\DoxyCodeLine{00058\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ FONCTION\_H}}
|
||||
|
||||
\end{DoxyCode}
|
||||
|
||||
@@ -7,22 +7,17 @@
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+image.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$SDL2/\+SDL\+\_\+render.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$stdio.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$string.\+h$>$}\newline
|
||||
Graphe des dépendances par inclusion de main.\+c\+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=350pt]{main_8c__incl}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
% FIG 0
|
||||
\doxysubsubsection*{Macros}
|
||||
\begin{DoxyCompactItemize}
|
||||
\item
|
||||
\label{main_8c_aa7f4c4d31124c28a9336ac84241cb2a0}
|
||||
\#define {\bfseries SIZE\+\_\+\+PLAY}~19
|
||||
\#define {\bfseries SIZE\+\_\+\+PLAY}~20
|
||||
\item
|
||||
\label{main_8c_a3e022139041191876c2fa02a3c51549f}
|
||||
\#define {\bfseries SIZE\+\_\+\+MENU}~200;
|
||||
\#define {\bfseries SIZE\+\_\+\+MENU}~200
|
||||
\end{DoxyCompactItemize}
|
||||
\doxysubsubsection*{Fonctions}
|
||||
\begin{DoxyCompactItemize}
|
||||
@@ -33,4 +28,4 @@ int {\bfseries main} ()
|
||||
|
||||
|
||||
\doxysubsection{Description détaillée}
|
||||
Le main permet de stocker et de lancer les fonctions permetant de lancer le jeu.
|
||||
Le main permet de stocker et de lancer les fonctions permetant de lancer le jeu.
|
||||
39
rapport/latex/main_8c__incl.dot
Normal file
39
rapport/latex/main_8c__incl.dot
Normal file
@@ -0,0 +1,39 @@
|
||||
digraph "main.c"
|
||||
{
|
||||
// LATEX_PDF_SIZE
|
||||
bgcolor="transparent";
|
||||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
|
||||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
|
||||
Node1 [id="Node000001",label="main.c",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip=" "];
|
||||
Node1 -> Node2 [id="edge19_Node000001_Node000002",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node2 [id="Node000002",label="../include/display.h",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$display_8h_source.html",tooltip=" "];
|
||||
Node2 -> Node3 [id="edge20_Node000002_Node000003",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node3 [id="Node000003",label="../include/function.h",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8h_source.html",tooltip=" "];
|
||||
Node3 -> Node4 [id="edge21_Node000003_Node000004",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node4 [id="Node000004",label="SDL2/SDL.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node3 -> Node5 [id="edge22_Node000003_Node000005",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node5 [id="Node000005",label="SDL2/SDL_render.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node3 -> Node6 [id="edge23_Node000003_Node000006",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node6 [id="Node000006",label="SDL2/SDL_video.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node3 -> Node7 [id="edge24_Node000003_Node000007",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node7 [id="Node000007",label="stdbool.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node3 -> Node8 [id="edge25_Node000003_Node000008",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node8 [id="Node000008",label="stdlib.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node3 -> Node9 [id="edge26_Node000003_Node000009",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node9 [id="Node000009",label="time.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node2 -> Node4 [id="edge27_Node000002_Node000004",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node2 -> Node10 [id="edge28_Node000002_Node000010",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node10 [id="Node000010",label="SDL2/SDL_ttf.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node1 -> Node3 [id="edge29_Node000001_Node000003",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node1 -> Node11 [id="edge30_Node000001_Node000011",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node11 [id="Node000011",label="../include/read.h",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$read_8h_source.html",tooltip=" "];
|
||||
Node11 -> Node3 [id="edge31_Node000011_Node000003",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node1 -> Node4 [id="edge32_Node000001_Node000004",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node1 -> Node12 [id="edge33_Node000001_Node000012",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node12 [id="Node000012",label="SDL2/SDL_image.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node1 -> Node5 [id="edge34_Node000001_Node000005",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node1 -> Node13 [id="edge35_Node000001_Node000013",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node13 [id="Node000013",label="stdio.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node1 -> Node14 [id="edge36_Node000001_Node000014",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node14 [id="Node000014",label="string.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
}
|
||||
@@ -3,25 +3,41 @@
|
||||
{\ttfamily \#include "{}../include/function.\+h"{}}\newline
|
||||
{\ttfamily \#include $<$stdio.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
|
||||
{\ttfamily \#include $<$string.\+h$>$}\newline
|
||||
Graphe des dépendances par inclusion de read.\+c\+:
|
||||
\nopagebreak
|
||||
\begin{figure}[H]
|
||||
\begin{center}
|
||||
\leavevmode
|
||||
\includegraphics[width=350pt]{read_8c__incl}
|
||||
\end{center}
|
||||
\end{figure}
|
||||
% FIG 0
|
||||
\doxysubsubsection*{Fonctions}
|
||||
\begin{DoxyCompactItemize}
|
||||
\item
|
||||
\textbf{ vect} $\ast$ \textbf{ file\+To\+Tab2D} (const char $\ast$name\+\_\+file, char $\ast$$\ast$tab, const unsigned N, \textbf{ vect} $\ast$player, int $\ast$nbr\+\_\+targets)
|
||||
\begin{DoxyCompactList}\small\item\em La fonction permet de stocker la zone de jeu en fonction de la lecture d\textquotesingle{}un fichier. \end{DoxyCompactList}\end{DoxyCompactItemize}
|
||||
\begin{DoxyCompactList}\small\item\em La fonction permet de stocker la zone de jeu en fonction de la lecture d\textquotesingle{}un fichier. \end{DoxyCompactList}\item
|
||||
int \textbf{ count\+Custom\+Maps} (char $\ast$name\+\_\+directory)
|
||||
\begin{DoxyCompactList}\small\item\em La fonction permet de compter le nombre de maps custom dans le fichier des maps. \end{DoxyCompactList}\item
|
||||
char $\ast$$\ast$ \textbf{ generator\+Menu} (char $\ast$name\+\_\+directory, \textbf{ vect} $\ast$size, \textbf{ vect} $\ast$pos\+\_\+player)
|
||||
\begin{DoxyCompactList}\small\item\em La fonction permet de creer la zone de jeu du menu en fonction du nombre de maps custom. \end{DoxyCompactList}\end{DoxyCompactItemize}
|
||||
|
||||
|
||||
\doxysubsection{Description détaillée}
|
||||
Ce fichier est le programe qui lit d\textquotesingle{}autre fichier, nottament les maps.
|
||||
|
||||
\doxysubsection{Documentation des fonctions}
|
||||
\index{read.c@{read.c}!countCustomMaps@{countCustomMaps}}
|
||||
\index{countCustomMaps@{countCustomMaps}!read.c@{read.c}}
|
||||
\doxysubsubsection{countCustomMaps()}
|
||||
{\footnotesize\ttfamily \label{read_8c_a33f349fef5188584733f08c3a0eddbf2}
|
||||
int count\+Custom\+Maps (\begin{DoxyParamCaption}\item[{char $\ast$}]{name\+\_\+directory}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
La fonction permet de compter le nombre de maps custom dans le fichier des maps.
|
||||
|
||||
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
{\em name\+\_\+directory} & Le nom du dossier contenant les maps. return Le nombre de maps custom. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
Voici le graphe des appelants de cette fonction \+:
|
||||
% FIG 1
|
||||
\index{read.c@{read.c}!fileToTab2D@{fileToTab2D}}
|
||||
\index{fileToTab2D@{fileToTab2D}!read.c@{read.c}}
|
||||
\doxysubsubsection{fileToTab2D()}
|
||||
@@ -48,3 +64,24 @@ La fonction permet de stocker la zone de jeu en fonction de la lecture d\textquo
|
||||
\begin{DoxyReturn}{Renvoie}
|
||||
Vect La fonction renvoie le tableau des coordonnée des points d\textquotesingle{}interer.
|
||||
\end{DoxyReturn}
|
||||
\index{read.c@{read.c}!generatorMenu@{generatorMenu}}
|
||||
\index{generatorMenu@{generatorMenu}!read.c@{read.c}}
|
||||
\doxysubsubsection{generatorMenu()}
|
||||
{\footnotesize\ttfamily \label{read_8c_aa77b744c6eb2919d8d69ae718210ce55}
|
||||
char $\ast$$\ast$ generator\+Menu (\begin{DoxyParamCaption}\item[{char $\ast$}]{name\+\_\+directory}{, }\item[{\textbf{ vect} $\ast$}]{size}{, }\item[{\textbf{ vect} $\ast$}]{pos\+\_\+player}{}\end{DoxyParamCaption})}
|
||||
|
||||
|
||||
|
||||
La fonction permet de creer la zone de jeu du menu en fonction du nombre de maps custom.
|
||||
|
||||
|
||||
\begin{DoxyParams}{Paramètres}
|
||||
{\em name\+\_\+directory} & Le nom du dossier contenant les maps. \\
|
||||
\hline
|
||||
{\em size} & La taille de la zone de jeu. \\
|
||||
\hline
|
||||
{\em pos\+\_\+player} & La position du joueur dans le menu. \\
|
||||
\hline
|
||||
\end{DoxyParams}
|
||||
Voici le graphe d\textquotesingle{}appel pour cette fonction \+:
|
||||
% FIG 2
|
||||
|
||||
27
rapport/latex/read_8c__incl.dot
Normal file
27
rapport/latex/read_8c__incl.dot
Normal file
@@ -0,0 +1,27 @@
|
||||
digraph "read.c"
|
||||
{
|
||||
// LATEX_PDF_SIZE
|
||||
bgcolor="transparent";
|
||||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
|
||||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
|
||||
Node1 [id="Node000001",label="read.c",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip=" "];
|
||||
Node1 -> Node2 [id="edge11_Node000001_Node000002",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node2 [id="Node000002",label="../include/function.h",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8h_source.html",tooltip=" "];
|
||||
Node2 -> Node3 [id="edge12_Node000002_Node000003",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node3 [id="Node000003",label="SDL2/SDL.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node2 -> Node4 [id="edge13_Node000002_Node000004",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node4 [id="Node000004",label="SDL2/SDL_render.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node2 -> Node5 [id="edge14_Node000002_Node000005",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node5 [id="Node000005",label="SDL2/SDL_video.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node2 -> Node6 [id="edge15_Node000002_Node000006",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node6 [id="Node000006",label="stdbool.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node2 -> Node7 [id="edge16_Node000002_Node000007",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node7 [id="Node000007",label="stdlib.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node2 -> Node8 [id="edge17_Node000002_Node000008",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node8 [id="Node000008",label="time.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node1 -> Node9 [id="edge18_Node000001_Node000009",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node9 [id="Node000009",label="stdio.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
Node1 -> Node7 [id="edge19_Node000001_Node000007",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node1 -> Node10 [id="edge20_Node000001_Node000010",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node10 [id="Node000010",label="string.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
digraph "countCustomMaps"
|
||||
{
|
||||
// LATEX_PDF_SIZE
|
||||
bgcolor="transparent";
|
||||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
|
||||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
|
||||
rankdir="RL";
|
||||
Node1 [id="Node000001",label="countCustomMaps",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip="La fonction permet de compter le nombre de maps custom dans le fichier des maps."];
|
||||
Node1 -> Node2 [id="edge2_Node000001_Node000002",dir="back",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node2 [id="Node000002",label="generatorMenu",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$read_8c.html#aa77b744c6eb2919d8d69ae718210ce55",tooltip="La fonction permet de creer la zone de jeu du menu en fonction du nombre de maps custom."];
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
digraph "generatorMenu"
|
||||
{
|
||||
// LATEX_PDF_SIZE
|
||||
bgcolor="transparent";
|
||||
edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
|
||||
node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
|
||||
rankdir="LR";
|
||||
Node1 [id="Node000001",label="generatorMenu",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip="La fonction permet de creer la zone de jeu du menu en fonction du nombre de maps custom."];
|
||||
Node1 -> Node2 [id="edge2_Node000001_Node000002",color="steelblue1",style="solid",tooltip=" "];
|
||||
Node2 [id="Node000002",label="countCustomMaps",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$read_8c.html#a33f349fef5188584733f08c3a0eddbf2",tooltip="La fonction permet de compter le nombre de maps custom dans le fichier des maps."];
|
||||
}
|
||||
@@ -7,6 +7,8 @@
|
||||
\DoxyCodeLine{00003\ \textcolor{preprocessor}{\#include\ "{}function.h"{}}}
|
||||
\DoxyCodeLine{00004\ vect\ *fileToTab2D\ (\textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *name\_file,\ \textcolor{keywordtype}{char}\ **tab,}
|
||||
\DoxyCodeLine{00005\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{unsigned}\ N,\ vect\ *player,\ \textcolor{keywordtype}{int}\ *nbr\_targets);}
|
||||
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ !READ\_H}}
|
||||
\DoxyCodeLine{00006\ \textcolor{keywordtype}{int}\ countCustomMaps(\textcolor{keywordtype}{char}\ *name\_directory);}
|
||||
\DoxyCodeLine{00007\ \textcolor{keywordtype}{char}\ **\ generatorMenu(\textcolor{keywordtype}{char}\ *name\_directory,\ vect\ *size,\ vect\ *pos\_player);}
|
||||
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ !READ\_H}}
|
||||
|
||||
\end{DoxyCode}
|
||||
|
||||
@@ -137,7 +137,7 @@
|
||||
}
|
||||
% ToC, LoF, LoT, bibliography, and index
|
||||
% Indices & bibliography
|
||||
\usepackage{natbib}
|
||||
\usepackage[numbers]{natbib}
|
||||
\usepackage[titles]{tocloft}
|
||||
\setcounter{tocdepth}{3}
|
||||
\setcounter{secnumdepth}{5}
|
||||
@@ -195,7 +195,7 @@
|
||||
\begin{center}%
|
||||
{\Large Sokoban}\\
|
||||
\vspace*{1cm}
|
||||
{\large Généré par Doxygen 1.12.0}\\
|
||||
{\large Généré par Doxygen 1.13.1}\\
|
||||
\end{center}
|
||||
\end{titlepage}
|
||||
\clearemptydoublepage
|
||||
|
||||
Reference in New Issue
Block a user