This commit is contained in:
2025-01-09 13:10:45 +01:00
parent b60b4b8d37
commit fd303801cc
53 changed files with 297 additions and 169 deletions

View File

@@ -163,9 +163,9 @@ Fonctions</h2></td></tr>
<tr class="memitem:a46638b64faa8239921eab8c3817847f4" id="r_a46638b64faa8239921eab8c3817847f4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a46638b64faa8239921eab8c3817847f4">initSDL</a> (<a class="el" href="structessential__sdl.html">dis</a> *display_user)</td></tr>
<tr class="memdesc:a46638b64faa8239921eab8c3817847f4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialise SDL. <br /></td></tr>
<tr class="separator:a46638b64faa8239921eab8c3817847f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81a2b2da875550c614a407ec735ff9d9" id="r_a81a2b2da875550c614a407ec735ff9d9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a81a2b2da875550c614a407ec735ff9d9">displayImage</a> (SDL_Renderer *renderer, SDL_Texture *texture, <a class="el" href="structVecteur.html">vect</a> pos, int size)</td></tr>
<tr class="memdesc:a81a2b2da875550c614a407ec735ff9d9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cette fonction affiche l'image dans la fenetre de l'utilisateur. <br /></td></tr>
<tr class="separator:a81a2b2da875550c614a407ec735ff9d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a99197d28e48cdf3b5b6be89cdc3ce030" id="r_a99197d28e48cdf3b5b6be89cdc3ce030"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a99197d28e48cdf3b5b6be89cdc3ce030">displayImage</a> (SDL_Renderer *renderer, SDL_Texture *texture, <a class="el" href="structVecteur.html">vect</a> pos, <a class="el" href="structVecteur.html">vect</a> size)</td></tr>
<tr class="memdesc:a99197d28e48cdf3b5b6be89cdc3ce030"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cette fonction affiche l'image dans la fenetre de l'utilisateur. <br /></td></tr>
<tr class="separator:a99197d28e48cdf3b5b6be89cdc3ce030"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8c0265ee608800f8daba2540c65c5b0" id="r_af8c0265ee608800f8daba2540c65c5b0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#af8c0265ee608800f8daba2540c65c5b0">displayTextSDL</a> (<a class="el" href="structessential__sdl.html">dis</a> *display_user, char *text, <a class="el" href="structVecteur.html">vect</a> coor, <a class="el" href="structVecteur.html">vect</a> size, int font_size)</td></tr>
<tr class="memdesc:af8c0265ee608800f8daba2540c65c5b0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Cette fonction affiche du texte dans la fenetre de l'utilisateur. <br /></td></tr>
<tr class="separator:af8c0265ee608800f8daba2540c65c5b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
@@ -214,8 +214,8 @@ Voici le graphe d'appel pour cette fonction :</div>
</div>
</div>
<a id="a81a2b2da875550c614a407ec735ff9d9" name="a81a2b2da875550c614a407ec735ff9d9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81a2b2da875550c614a407ec735ff9d9">&#9670;&#160;</a></span>displayImage()</h2>
<a id="a99197d28e48cdf3b5b6be89cdc3ce030" name="a99197d28e48cdf3b5b6be89cdc3ce030"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a99197d28e48cdf3b5b6be89cdc3ce030">&#9670;&#160;</a></span>displayImage()</h2>
<div class="memitem">
<div class="memproto">
@@ -238,7 +238,7 @@ Voici le graphe d'appel pour cette fonction :</div>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>size</em></span>&#160;)</td>
<td class="paramtype"><a class="el" href="structVecteur.html">vect</a></td> <td class="paramname"><span class="paramname"><em>size</em></span>&#160;)</td>
</tr>
</table>
</div><div class="memdoc">
@@ -257,12 +257,7 @@ Voici le graphe d'appel pour cette fonction :</div>
<div class="dynheader">
Voici le graphe des appelants de cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="display_8c_a81a2b2da875550c614a407ec735ff9d9_icgraph.png" border="0" usemap="#adisplay_8c_a81a2b2da875550c614a407ec735ff9d9_icgraph" alt=""/></div>
<map name="adisplay_8c_a81a2b2da875550c614a407ec735ff9d9_icgraph" id="adisplay_8c_a81a2b2da875550c614a407ec735ff9d9_icgraph">
<area shape="rect" title="Cette fonction affiche l&#39;image dans la fenetre de l&#39;utilisateur." alt="" coords="217,5,314,31"/>
<area shape="rect" href="display_8c.html#a6f451a9d0fd4d2325d9f03d7cda4a189" title="La fonction affiche a l&#39;aide de SDL la zone de jeu." alt="" coords="5,5,169,31"/>
<area shape="poly" title=" " alt="" coords="201,21,169,21,169,16,201,16"/>
</map>
<div class="center"><img src="display_8c_a99197d28e48cdf3b5b6be89cdc3ce030_icgraph.png" border="0" usemap="#adisplay_8c_a99197d28e48cdf3b5b6be89cdc3ce030_icgraph" alt=""/></div>
</div>
</div>

View File

@@ -7,5 +7,5 @@ digraph "screenDisplayGameSDL"
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="edge1_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."];
Node2 [id="Node000002",label="displayImage",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$display_8c.html#a99197d28e48cdf3b5b6be89cdc3ce030",tooltip="Cette fonction affiche l'image dans la fenetre de l'utilisateur."];
}

View File

@@ -0,0 +1,13 @@
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="edge1_Node000001_Node000002",dir="back",color="steelblue1",style="solid",tooltip=" "];
Node2 [id="Node000002",label="backgroundDisplay",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$display_8c.html#adc264e6abc61064a8222b53822850cdd",tooltip="Afficher l'arriere plan."];
Node1 -> Node3 [id="edge2_Node000001_Node000003",dir="back",color="steelblue1",style="solid",tooltip=" "];
Node3 [id="Node000003",label="screenDisplayGameSDL",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$display_8c.html#a4f8faee5abaa49fb784df75266472278",tooltip="La fonction affiche a l'aide de SDL la zone de jeu."];
}

View File

@@ -7,5 +7,5 @@ digraph "backgroundDisplay"
rankdir="LR";
Node1 [id="Node000001",label="backgroundDisplay",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip="Afficher l'arriere plan."];
Node1 -> Node2 [id="edge1_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."];
Node2 [id="Node000002",label="displayImage",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$display_8c.html#a99197d28e48cdf3b5b6be89cdc3ce030",tooltip="Cette fonction affiche l'image dans la fenetre de l'utilisateur."];
}

View File

@@ -105,7 +105,7 @@ $(function(){ initResizable(false); });
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="keywordtype">void</span> screenDisplay (<span class="keywordtype">char</span> **tab, <span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y);</div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="keywordtype">int</span> getMaxSize (dis display_user);</div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="keywordtype">void</span> displayImage (SDL_Renderer *renderer, SDL_Texture *texture, vect pos,</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> <span class="keywordtype">int</span> size);</div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span> vect size);</div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="keywordtype">void</span> initSDL (dis *display_user);</div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="keywordtype">void</span> displayTextSDL(dis *display_user,<span class="keywordtype">char</span> *text, vect coor, vect size, <span class="keywordtype">int</span> font_size);</div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="keywordtype">void</span> screenDisplayGameSDL (<span class="keywordtype">char</span> **tab,vect dim_tab, dis *display_user, vect *player_pos, <span class="keywordtype">int</span> fov, vect direction);</div>

View File

@@ -15,7 +15,7 @@
<a href="display_8c.html"/>
<a href="display_8c.html#a46638b64faa8239921eab8c3817847f4"/>
<a href="display_8c.html#a4f8faee5abaa49fb784df75266472278"/>
<a href="display_8c.html#a81a2b2da875550c614a407ec735ff9d9"/>
<a href="display_8c.html#a99197d28e48cdf3b5b6be89cdc3ce030"/>
<a href="display_8c.html#ab9c0348d4cff3f20344d763945c96b40"/>
<a href="display_8c.html#adc264e6abc61064a8222b53822850cdd"/>
<a href="display_8c.html#aef4e8ceef5eab0c4c5d664c3d6c96d51"/>
@@ -26,6 +26,7 @@
<a href="files.html"/>
<a href="function_8c.html"/>
<a href="function_8c.html#a1d06514900b90ce163ebe2d5aefc16db"/>
<a href="function_8c.html#a244a34e6a3547ce48d78b64a9a6b030f"/>
<a href="function_8c.html#a2dc9de2f6fd2bed3619d7ce8c1f05590"/>
<a href="function_8c.html#a4a66f9d998c95fde67d6f89fef1fded5"/>
<a href="function_8c.html#a51c9ba7a24383f1b20dcedfcb570aab5"/>
@@ -39,12 +40,13 @@
<a href="function_8c.html#ac155bb183b0c26d19758d8d065baf14f"/>
<a href="function_8c.html#ac51249b2f7941ca06e6a614e071dd444"/>
<a href="function_8c.html#ad3517d7c8da5b33a96d376d7b07911c1"/>
<a href="function_8c.html#aeba9362e7ee8b3d96352fd608b73a5c7"/>
<a href="function_8h_source.html"/>
<a href="globals.html"/>
<a href="globals_func.html"/>
<a href="graph_legend.html"/>
<a href="index.html"/>
<a href="index.html#autotoc_md1"/>
<a href="index.html#autotoc_md2"/>
<a href="main_8c.html"/>
<a href="read_8c.html"/>
<a href="read_8c.html#a223592601b10fb9487363ff4bb417d5d"/>

View File

@@ -168,9 +168,9 @@ Fonctions</h2></td></tr>
<tr class="memitem:a7f8e67bce9078c159778bbe2f57e9d2f" id="r_a7f8e67bce9078c159778bbe2f57e9d2f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a7f8e67bce9078c159778bbe2f57e9d2f">inGameLoop</a> (char **tab2d, <a class="el" href="structVecteur.html">vect</a> *dim_tab, <a class="el" href="structVecteur.html">vect</a> *playerPos, <a class="el" href="structVecteur.html">vect</a> *targets, int nbr_targets, <a class="el" href="structessential__sdl.html">dis</a> *display_user, <a class="el" href="structScore.html">score</a> *score_user, bool menu)</td></tr>
<tr class="memdesc:a7f8e67bce9078c159778bbe2f57e9d2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">La fonction permet de faire la boucle de jeu et le menu. <br /></td></tr>
<tr class="separator:a7f8e67bce9078c159778bbe2f57e9d2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeba9362e7ee8b3d96352fd608b73a5c7" id="r_aeba9362e7ee8b3d96352fd608b73a5c7"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#aeba9362e7ee8b3d96352fd608b73a5c7">inEditorLoop</a> (char **tab2d, <a class="el" href="structVecteur.html">vect</a> *dim_tab, <a class="el" href="structVecteur.html">vect</a> *playerPos, <a class="el" href="structVecteur.html">vect</a> *targets, int nbr_targets, <a class="el" href="structessential__sdl.html">dis</a> *display_user, <a class="el" href="structScore.html">score</a> *score_user, int num_fichier)</td></tr>
<tr class="memdesc:aeba9362e7ee8b3d96352fd608b73a5c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">La fonction permet de faire la boucle de l'éditeur. <br /></td></tr>
<tr class="separator:aeba9362e7ee8b3d96352fd608b73a5c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a244a34e6a3547ce48d78b64a9a6b030f" id="r_a244a34e6a3547ce48d78b64a9a6b030f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a244a34e6a3547ce48d78b64a9a6b030f">inEditorLoop</a> (char **tab2d, <a class="el" href="structVecteur.html">vect</a> *dim_tab, <a class="el" href="structVecteur.html">vect</a> *playerPos, <a class="el" href="structessential__sdl.html">dis</a> *display_user, <a class="el" href="structScore.html">score</a> *score_user, int num_fichier)</td></tr>
<tr class="memdesc:a244a34e6a3547ce48d78b64a9a6b030f"><td class="mdescLeft">&#160;</td><td class="mdescRight">La fonction permet de faire la boucle de l'éditeur. <br /></td></tr>
<tr class="separator:a244a34e6a3547ce48d78b64a9a6b030f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3517d7c8da5b33a96d376d7b07911c1" id="r_ad3517d7c8da5b33a96d376d7b07911c1"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ad3517d7c8da5b33a96d376d7b07911c1">titleScreen</a> (<a class="el" href="structessential__sdl.html">dis</a> *display_user)</td></tr>
<tr class="memdesc:ad3517d7c8da5b33a96d376d7b07911c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">La fonction permet d' afficher le title screen. <br /></td></tr>
<tr class="separator:ad3517d7c8da5b33a96d376d7b07911c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
@@ -202,9 +202,6 @@ int&#160;</td><td class="memItemRight" valign="bottom"><b>lengthVect</b> (<a cla
<tr class="memitem:aeac9c46be252cd970406e3a2391b8e8c" id="r_aeac9c46be252cd970406e3a2391b8e8c"><td class="memItemLeft" align="right" valign="top"><a id="aeac9c46be252cd970406e3a2391b8e8c" name="aeac9c46be252cd970406e3a2391b8e8c"></a>
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><b>scoreCalculator</b> (<a class="el" href="structScore.html">score</a> *score_user, bool win)</td></tr>
<tr class="separator:aeac9c46be252cd970406e3a2391b8e8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acdbf299b1c7d8d708c4e7b014c43911a" id="r_acdbf299b1c7d8d708c4e7b014c43911a"><td class="memItemLeft" align="right" valign="top"><a id="acdbf299b1c7d8d708c4e7b014c43911a" name="acdbf299b1c7d8d708c4e7b014c43911a"></a>
unsigned int&#160;</td><td class="memItemRight" valign="bottom"><b>scoreCalculatorCyp</b> (<a class="el" href="structScore.html">score</a> *score_user, bool win)</td></tr>
<tr class="separator:acdbf299b1c7d8d708c4e7b014c43911a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Description détaillée</h2>
<div class="textblock"><p>Ce fichier contient toute les fonction utile pour le jeu. Sauf pour l'affichage. </p>
@@ -369,8 +366,8 @@ Voici le graphe des appelants de cette fonction :</div>
</div>
</div>
<a id="aeba9362e7ee8b3d96352fd608b73a5c7" name="aeba9362e7ee8b3d96352fd608b73a5c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeba9362e7ee8b3d96352fd608b73a5c7">&#9670;&#160;</a></span>inEditorLoop()</h2>
<a id="a244a34e6a3547ce48d78b64a9a6b030f" name="a244a34e6a3547ce48d78b64a9a6b030f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a244a34e6a3547ce48d78b64a9a6b030f">&#9670;&#160;</a></span>inEditorLoop()</h2>
<div class="memitem">
<div class="memproto">
@@ -390,16 +387,6 @@ Voici le graphe des appelants de cette fonction :</div>
<td></td>
<td class="paramtype"><a class="el" href="structVecteur.html">vect</a> *</td> <td class="paramname"><span class="paramname"><em>playerPos</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="structVecteur.html">vect</a> *</td> <td class="paramname"><span class="paramname"><em>targets</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int</td> <td class="paramname"><span class="paramname"><em>nbr_targets</em></span>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
@@ -436,7 +423,7 @@ Voici le graphe des appelants de cette fonction :</div>
<div class="dynheader">
Voici le graphe d'appel pour cette fonction :</div>
<div class="dyncontent">
<div class="center"><img src="function_8c_aeba9362e7ee8b3d96352fd608b73a5c7_cgraph.png" border="0" usemap="#afunction_8c_aeba9362e7ee8b3d96352fd608b73a5c7_cgraph" alt=""/></div>
<div class="center"><img src="function_8c_a244a34e6a3547ce48d78b64a9a6b030f_cgraph.png" border="0" usemap="#afunction_8c_a244a34e6a3547ce48d78b64a9a6b030f_cgraph" alt=""/></div>
</div>
</div>

View File

@@ -0,0 +1,15 @@
digraph "inEditorLoop"
{
// 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="inEditorLoop",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip="La fonction permet de faire la boucle de l'éditeur."];
Node1 -> Node2 [id="edge1_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#a9c9b1fdde1684178393ffe6104ab615d",tooltip="Cette fonction effectue les deplacements du joueur et des boites en fonction de la situation."];
Node2 -> Node3 [id="edge2_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="edge3_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)."];
}

View File

@@ -13,7 +13,7 @@ digraph "plusVect"
Node1 -> Node4 [id="edge3_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#a9c9b1fdde1684178393ffe6104ab615d",tooltip="Cette fonction effectue les deplacements du joueur et des boites en fonction de la situation."];
Node4 -> Node5 [id="edge4_Node000004_Node000005",dir="back",color="steelblue1",style="solid",tooltip=" "];
Node5 [id="Node000005",label="inEditorLoop",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#aeba9362e7ee8b3d96352fd608b73a5c7",tooltip="La fonction permet de faire la boucle de l'éditeur."];
Node5 [id="Node000005",label="inEditorLoop",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#a244a34e6a3547ce48d78b64a9a6b030f",tooltip="La fonction permet de faire la boucle de l'éditeur."];
Node4 -> Node6 [id="edge5_Node000004_Node000006",dir="back",color="steelblue1",style="solid",tooltip=" "];
Node6 [id="Node000006",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."];
}

View File

@@ -9,7 +9,7 @@ digraph "canIGoDirection"
Node1 -> Node2 [id="edge1_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#a9c9b1fdde1684178393ffe6104ab615d",tooltip="Cette fonction effectue les deplacements du joueur et des boites en fonction de la situation."];
Node2 -> Node3 [id="edge2_Node000002_Node000003",dir="back",color="steelblue1",style="solid",tooltip=" "];
Node3 [id="Node000003",label="inEditorLoop",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#aeba9362e7ee8b3d96352fd608b73a5c7",tooltip="La fonction permet de faire la boucle de l'éditeur."];
Node3 [id="Node000003",label="inEditorLoop",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#a244a34e6a3547ce48d78b64a9a6b030f",tooltip="La fonction permet de faire la boucle de l'éditeur."];
Node2 -> Node4 [id="edge3_Node000002_Node000004",dir="back",color="steelblue1",style="solid",tooltip=" "];
Node4 [id="Node000004",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."];
}

View File

@@ -7,7 +7,7 @@ digraph "move"
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="edge1_Node000001_Node000002",dir="back",color="steelblue1",style="solid",tooltip=" "];
Node2 [id="Node000002",label="inEditorLoop",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#aeba9362e7ee8b3d96352fd608b73a5c7",tooltip="La fonction permet de faire la boucle de l'éditeur."];
Node2 [id="Node000002",label="inEditorLoop",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8c.html#a244a34e6a3547ce48d78b64a9a6b030f",tooltip="La fonction permet de faire la boucle de l'éditeur."];
Node1 -> Node3 [id="edge2_Node000001_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."];
}

View File

@@ -155,11 +155,9 @@ $(function(){ initResizable(false); });
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span><span class="keywordtype">void</span> nullScore(score *player_score);</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span><span class="keywordtype">void</span> winOrLoseLoop(dis *display_user,score *score_user, <span class="keywordtype">bool</span> win);</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> scoreCalculator(score *score_user, <span class="keywordtype">bool</span> win);</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span><span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> scoreCalculatorCyp(score *score_user, <span class="keywordtype">bool</span> win);</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span><span class="keywordtype">int</span> inEditorLoop (<span class="keywordtype">char</span> **tab2d, vect *dim_tab, vect *playerPos, vect *targets,</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> <span class="keywordtype">int</span> nbr_targets, dis *display_user,score *score_user, <span class="keywordtype">int</span> num_fichier);</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span><span class="keywordtype">int</span> titleScreen (dis *display_user);</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span><span class="preprocessor">#endif </span><span class="comment">// FONCTION_H</span></div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span><span class="keywordtype">int</span> inEditorLoop (<span class="keywordtype">char</span> **tab2d, vect *dim_tab, vect *playerPos, dis *display_user,score *score_user, <span class="keywordtype">int</span> num_fichier);</div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span><span class="keywordtype">int</span> titleScreen (dis *display_user);</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><span class="preprocessor">#endif </span><span class="comment">// FONCTION_H</span></div>
<div class="ttc" id="astructScore_html"><div class="ttname"><a href="structScore.html">Score</a></div><div class="ttdef"><b>Definition</b> function.h:29</div></div>
<div class="ttc" id="astructVecteur_html"><div class="ttname"><a href="structVecteur.html">Vecteur</a></div><div class="ttdef"><b>Definition</b> function.h:23</div></div>
<div class="ttc" id="astructessential__sdl_html"><div class="ttname"><a href="structessential__sdl.html">essential_sdl</a></div><div class="ttdef"><b>Definition</b> function.h:37</div></div>

View File

@@ -91,13 +91,13 @@ $(function(){ initResizable(false); });
<li>canIGoDirection()&#160;:&#160;<a class="el" href="function_8c.html#a76df2bc0c692d3397837706a6852ac36">function.c</a></li>
<li>countCustomMaps()&#160;:&#160;<a class="el" href="read_8c.html#a33f349fef5188584733f08c3a0eddbf2">read.c</a></li>
<li>creatArea2D()&#160;:&#160;<a class="el" href="function_8c.html#a1d06514900b90ce163ebe2d5aefc16db">function.c</a></li>
<li>displayImage()&#160;:&#160;<a class="el" href="display_8c.html#a81a2b2da875550c614a407ec735ff9d9">display.c</a></li>
<li>displayImage()&#160;:&#160;<a class="el" href="display_8c.html#a99197d28e48cdf3b5b6be89cdc3ce030">display.c</a></li>
<li>displayTextSDL()&#160;:&#160;<a class="el" href="display_8c.html#af8c0265ee608800f8daba2540c65c5b0">display.c</a></li>
<li>fileToTab2D()&#160;:&#160;<a class="el" href="read_8c.html#a223592601b10fb9487363ff4bb417d5d">read.c</a></li>
<li>free2D()&#160;:&#160;<a class="el" href="function_8c.html#a9011ea69a97e2101aa9bcc52cc60d4ce">function.c</a></li>
<li>generatorMenu()&#160;:&#160;<a class="el" href="read_8c.html#aa77b744c6eb2919d8d69ae718210ce55">read.c</a></li>
<li>getMaxSize()&#160;:&#160;<a class="el" href="display_8c.html#ab9c0348d4cff3f20344d763945c96b40">display.c</a></li>
<li>inEditorLoop()&#160;:&#160;<a class="el" href="function_8c.html#aeba9362e7ee8b3d96352fd608b73a5c7">function.c</a></li>
<li>inEditorLoop()&#160;:&#160;<a class="el" href="function_8c.html#a244a34e6a3547ce48d78b64a9a6b030f">function.c</a></li>
<li>inGameLoop()&#160;:&#160;<a class="el" href="function_8c.html#a7f8e67bce9078c159778bbe2f57e9d2f">function.c</a></li>
<li>initSDL()&#160;:&#160;<a class="el" href="display_8c.html#a46638b64faa8239921eab8c3817847f4">display.c</a></li>
<li>islose()&#160;:&#160;<a class="el" href="function_8c.html#ac155bb183b0c26d19758d8d065baf14f">function.c</a></li>

View File

@@ -91,13 +91,13 @@ $(function(){ initResizable(false); });
<li>canIGoDirection()&#160;:&#160;<a class="el" href="function_8c.html#a76df2bc0c692d3397837706a6852ac36">function.c</a></li>
<li>countCustomMaps()&#160;:&#160;<a class="el" href="read_8c.html#a33f349fef5188584733f08c3a0eddbf2">read.c</a></li>
<li>creatArea2D()&#160;:&#160;<a class="el" href="function_8c.html#a1d06514900b90ce163ebe2d5aefc16db">function.c</a></li>
<li>displayImage()&#160;:&#160;<a class="el" href="display_8c.html#a81a2b2da875550c614a407ec735ff9d9">display.c</a></li>
<li>displayImage()&#160;:&#160;<a class="el" href="display_8c.html#a99197d28e48cdf3b5b6be89cdc3ce030">display.c</a></li>
<li>displayTextSDL()&#160;:&#160;<a class="el" href="display_8c.html#af8c0265ee608800f8daba2540c65c5b0">display.c</a></li>
<li>fileToTab2D()&#160;:&#160;<a class="el" href="read_8c.html#a223592601b10fb9487363ff4bb417d5d">read.c</a></li>
<li>free2D()&#160;:&#160;<a class="el" href="function_8c.html#a9011ea69a97e2101aa9bcc52cc60d4ce">function.c</a></li>
<li>generatorMenu()&#160;:&#160;<a class="el" href="read_8c.html#aa77b744c6eb2919d8d69ae718210ce55">read.c</a></li>
<li>getMaxSize()&#160;:&#160;<a class="el" href="display_8c.html#ab9c0348d4cff3f20344d763945c96b40">display.c</a></li>
<li>inEditorLoop()&#160;:&#160;<a class="el" href="function_8c.html#aeba9362e7ee8b3d96352fd608b73a5c7">function.c</a></li>
<li>inEditorLoop()&#160;:&#160;<a class="el" href="function_8c.html#a244a34e6a3547ce48d78b64a9a6b030f">function.c</a></li>
<li>inGameLoop()&#160;:&#160;<a class="el" href="function_8c.html#a7f8e67bce9078c159778bbe2f57e9d2f">function.c</a></li>
<li>initSDL()&#160;:&#160;<a class="el" href="display_8c.html#a46638b64faa8239921eab8c3817847f4">display.c</a></li>
<li>islose()&#160;:&#160;<a class="el" href="function_8c.html#ac155bb183b0c26d19758d8d065baf14f">function.c</a></li>

View File

@@ -5,7 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.13.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Sokoban: Main Test</title>
<title>Sokoban: Rapport</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
@@ -85,13 +85,23 @@ $(function(){ initResizable(false); });
</div>
<div><div class="header">
<div class="headertitle"><div class="title">Main Test </div></div>
<div class="headertitle"><div class="title">Rapport </div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p><a class="anchor" id="md_main__page"></a></p>
<p>ewuewiewhf wef ewuewiewhf ewuewiewhfewf wefe:Lw</p>
<p>dewfewfewfew f ewuewiewhfewf fw ewuewiewhfewfewf f wf </p>
</div></div><!-- PageDoc -->
<p>Nous avons choisi d'utiliser doxygen pour faire une documentation de notre code. Nous vous rendons donc notre rapport dans cette documentation, donc la majorité de ce pdf est en faite la documentation de notre code.</p>
<h1><a class="anchor" id="autotoc_md1"></a>
Décision de structure</h1>
<p>Pour commencer on a pris comme structure pour la zone de jeu un tableau 2d de <code>char</code>. Nous avons pris des <code>char</code> car on sais qu'on a pas besoin de plus de possibilité de nombre que un octet. On a fais des <code>define</code> qui permet de definir quel nombre correspond à quel objet dans le jeux (joueur , caisse, mur, ...).</p>
<p>Nous avons ensuite créer une structure <code>coor</code> qui est une structure representant des coordonnées x et y. Cela est pratique pour naviger dans le tableau 2d par exemple.</p>
<p>On a fais une structure de score qui prend comme variable ce qu'il y a besoin pour calculer le score a la fin de la partie. Il y a le temps avant la partie et apres (pour obtenir le temps passer dans la partie), ensuite on a le nombre de déplacement fais par le joueur ainsi que les déplacement fais par les caisses.</p>
<p>Pour finir on a fais uns structure <code>dis</code> qui est enfaite la structure possédant tout ce qu'il faut pour faire l'affichage <code>SDL</code>. En effet on a la <code>window</code>, le <code>renderer</code>, on a la taille de la window, la taille des boites ainsi que la taille du menu.</p>
<h1><a class="anchor" id="autotoc_md2"></a>
Comment lancé le jeu ?</h1>
<p>Il vous faut installer SDL2, SDL2 Mixer, SDL2 Image, SDL2 ttf, make, gcc.</p>
<div class="fragment"><div class="line">make all</div>
<div class="line">./sokoban</div>
</div><!-- fragment --> </div></div><!-- PageDoc -->
<a href="doxygen_crawl.html"></a>
</div><!-- contents -->
<!-- start footer part -->

View File

@@ -1,6 +1,7 @@
var searchData=
[
['canigodirection_0',['canIGoDirection',['../function_8c.html#a76df2bc0c692d3397837706a6852ac36',1,'function.c']]],
['countcustommaps_1',['countCustomMaps',['../read_8c.html#a33f349fef5188584733f08c3a0eddbf2',1,'read.c']]],
['creatarea2d_2',['creatArea2D',['../function_8c.html#a1d06514900b90ce163ebe2d5aefc16db',1,'function.c']]]
['comment_20lancé_20le_20jeu_1',['Comment lancé le jeu ?',['../index.html#autotoc_md2',1,'']]],
['countcustommaps_2',['countCustomMaps',['../read_8c.html#a33f349fef5188584733f08c3a0eddbf2',1,'read.c']]],
['creatarea2d_3',['creatArea2D',['../function_8c.html#a1d06514900b90ce163ebe2d5aefc16db',1,'function.c']]]
];

View File

@@ -0,0 +1,4 @@
var searchData=
[
['winorloseloop_0',['winOrLoseLoop',['../function_8c.html#a2dc9de2f6fd2bed3619d7ce8c1f05590',1,'function.c']]]
];

View File

@@ -1,6 +1,8 @@
var searchData=
[
['display_2ec_0',['display.c',['../display_8c.html',1,'']]],
['displayimage_1',['displayImage',['../display_8c.html#a81a2b2da875550c614a407ec735ff9d9',1,'display.c']]],
['displaytextsdl_2',['displayTextSDL',['../display_8c.html#af8c0265ee608800f8daba2540c65c5b0',1,'display.c']]]
['décision_20de_20structure_0',['Décision de structure',['../index.html#autotoc_md1',1,'']]],
['de_20structure_1',['Décision de structure',['../index.html#autotoc_md1',1,'']]],
['display_2ec_2',['display.c',['../display_8c.html',1,'']]],
['displayimage_3',['displayImage',['../display_8c.html#a99197d28e48cdf3b5b6be89cdc3ce030',1,'display.c']]],
['displaytextsdl_4',['displayTextSDL',['../display_8c.html#af8c0265ee608800f8daba2540c65c5b0',1,'display.c']]]
];

View File

@@ -1,6 +1,6 @@
var searchData=
[
['ineditorloop_0',['inEditorLoop',['../function_8c.html#aeba9362e7ee8b3d96352fd608b73a5c7',1,'function.c']]],
['ineditorloop_0',['inEditorLoop',['../function_8c.html#a244a34e6a3547ce48d78b64a9a6b030f',1,'function.c']]],
['ingameloop_1',['inGameLoop',['../function_8c.html#a7f8e67bce9078c159778bbe2f57e9d2f',1,'function.c']]],
['initsdl_2',['initSDL',['../display_8c.html#a46638b64faa8239921eab8c3817847f4',1,'display.c']]],
['islose_3',['islose',['../function_8c.html#ac155bb183b0c26d19758d8d065baf14f',1,'function.c']]],

View File

@@ -1,4 +1,4 @@
var searchData=
[
['lengthvect_0',['lengthVect',['../function_8c.html#a74650c59d33ff53d62ca3a3f8f56a68c',1,'function.c']]]
['jeu_0',['Comment lancé le jeu ?',['../index.html#autotoc_md2',1,'']]]
];

View File

@@ -1,6 +1,6 @@
var searchData=
[
['main_20test_0',['Main Test',['../index.html',1,'']]],
['main_2ec_1',['main.c',['../main_8c.html',1,'']]],
['move_2',['move',['../function_8c.html#a9c9b1fdde1684178393ffe6104ab615d',1,'function.c']]]
['lancé_20le_20jeu_0',['Comment lancé le jeu ?',['../index.html#autotoc_md2',1,'']]],
['le_20jeu_1',['Comment lancé le jeu ?',['../index.html#autotoc_md2',1,'']]],
['lengthvect_2',['lengthVect',['../function_8c.html#a74650c59d33ff53d62ca3a3f8f56a68c',1,'function.c']]]
];

View File

@@ -1,4 +1,5 @@
var searchData=
[
['nullscore_0',['nullScore',['../function_8c.html#a4a66f9d998c95fde67d6f89fef1fded5',1,'function.c']]]
['main_2ec_0',['main.c',['../main_8c.html',1,'']]],
['move_1',['move',['../function_8c.html#a9c9b1fdde1684178393ffe6104ab615d',1,'function.c']]]
];

View File

@@ -1,5 +1,4 @@
var searchData=
[
['playaudio_0',['playAudio',['../display_8c.html#aef4e8ceef5eab0c4c5d664c3d6c96d51',1,'display.c']]],
['plusvect_1',['plusVect',['../function_8c.html#a5b10e69716d92eadf2ed0b3942cb9d4d',1,'function.c']]]
['nullscore_0',['nullScore',['../function_8c.html#a4a66f9d998c95fde67d6f89fef1fded5',1,'function.c']]]
];

View File

@@ -1,4 +1,5 @@
var searchData=
[
['read_2ec_0',['read.c',['../read_8c.html',1,'']]]
['playaudio_0',['playAudio',['../display_8c.html#aef4e8ceef5eab0c4c5d664c3d6c96d51',1,'display.c']]],
['plusvect_1',['plusVect',['../function_8c.html#a5b10e69716d92eadf2ed0b3942cb9d4d',1,'function.c']]]
];

View File

@@ -1,7 +1,5 @@
var searchData=
[
['save_5fgrid_5fto_5ffile_0',['save_grid_to_file',['../read_8c.html#a8f809f62f6622ef16b6dfe9081a124de',1,'read.c']]],
['score_1',['Score',['../structScore.html',1,'']]],
['screendisplay_2',['screenDisplay',['../display_8c.html#affba8627c7c6c768268f64fa670207e5',1,'display.c']]],
['screendisplaygamesdl_3',['screenDisplayGameSDL',['../display_8c.html#a4f8faee5abaa49fb784df75266472278',1,'display.c']]]
['rapport_0',['Rapport',['../index.html',1,'']]],
['read_2ec_1',['read.c',['../read_8c.html',1,'']]]
];

View File

@@ -1,6 +1,8 @@
var searchData=
[
['test_0',['Main Test',['../index.html',1,'']]],
['timetotext_1',['timeToText',['../function_8c.html#a51c9ba7a24383f1b20dcedfcb570aab5',1,'function.c']]],
['titlescreen_2',['titleScreen',['../function_8c.html#ad3517d7c8da5b33a96d376d7b07911c1',1,'function.c']]]
['save_5fgrid_5fto_5ffile_0',['save_grid_to_file',['../read_8c.html#a8f809f62f6622ef16b6dfe9081a124de',1,'read.c']]],
['score_1',['Score',['../structScore.html',1,'']]],
['screendisplay_2',['screenDisplay',['../display_8c.html#affba8627c7c6c768268f64fa670207e5',1,'display.c']]],
['screendisplaygamesdl_3',['screenDisplayGameSDL',['../display_8c.html#a4f8faee5abaa49fb784df75266472278',1,'display.c']]],
['structure_4',['Décision de structure',['../index.html#autotoc_md1',1,'']]]
];

View File

@@ -1,4 +1,5 @@
var searchData=
[
['vecteur_0',['Vecteur',['../structVecteur.html',1,'']]]
['timetotext_0',['timeToText',['../function_8c.html#a51c9ba7a24383f1b20dcedfcb570aab5',1,'function.c']]],
['titlescreen_1',['titleScreen',['../function_8c.html#ad3517d7c8da5b33a96d376d7b07911c1',1,'function.c']]]
];

View File

@@ -1,4 +1,4 @@
var searchData=
[
['winorloseloop_0',['winOrLoseLoop',['../function_8c.html#a2dc9de2f6fd2bed3619d7ce8c1f05590',1,'function.c']]]
['vecteur_0',['Vecteur',['../structVecteur.html',1,'']]]
];

View File

@@ -1,5 +1,5 @@
var searchData=
[
['displayimage_0',['displayImage',['../display_8c.html#a81a2b2da875550c614a407ec735ff9d9',1,'display.c']]],
['displayimage_0',['displayImage',['../display_8c.html#a99197d28e48cdf3b5b6be89cdc3ce030',1,'display.c']]],
['displaytextsdl_1',['displayTextSDL',['../display_8c.html#af8c0265ee608800f8daba2540c65c5b0',1,'display.c']]]
];

View File

@@ -1,6 +1,6 @@
var searchData=
[
['ineditorloop_0',['inEditorLoop',['../function_8c.html#aeba9362e7ee8b3d96352fd608b73a5c7',1,'function.c']]],
['ineditorloop_0',['inEditorLoop',['../function_8c.html#a244a34e6a3547ce48d78b64a9a6b030f',1,'function.c']]],
['ingameloop_1',['inGameLoop',['../function_8c.html#a7f8e67bce9078c159778bbe2f57e9d2f',1,'function.c']]],
['initsdl_2',['initSDL',['../display_8c.html#a46638b64faa8239921eab8c3817847f4',1,'display.c']]],
['islose_3',['islose',['../function_8c.html#ac155bb183b0c26d19758d8d065baf14f',1,'function.c']]],

View File

@@ -1,4 +1,4 @@
var searchData=
[
['main_20test_0',['Main Test',['../index.html',1,'']]]
['rapport_0',['Rapport',['../index.html',1,'']]]
];

View File

@@ -1,10 +1,10 @@
var indexSectionsWithContent =
{
0: "bcdefgilmnprstvw",
0: "bcdefgijlmnprstvw",
1: "esv",
2: "dfmr",
3: "bcdfgilmnpstw",
4: "mt"
4: "r"
};
var indexSectionNames =