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 =

View File

@@ -31,7 +31,7 @@ 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)
void \textbf{ display\+Image} (SDL\+\_\+\+Renderer $\ast$renderer, SDL\+\_\+\+Texture $\ast$texture, \textbf{ vect} pos, \textbf{ vect} 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}\item

View File

@@ -25,7 +25,7 @@ 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)
void \textbf{ display\+Image} (SDL\+\_\+\+Renderer $\ast$renderer, SDL\+\_\+\+Texture $\ast$texture, \textbf{ vect} pos, \textbf{ vect} 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}\item
@@ -61,8 +61,8 @@ Voici le graphe d\textquotesingle{}appel pour cette fonction \+:
\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})}
{\footnotesize\ttfamily \label{display_8c_a99197d28e48cdf3b5b6be89cdc3ce030}
void display\+Image (\begin{DoxyParamCaption}\item[{SDL\+\_\+\+Renderer $\ast$}]{renderer}{, }\item[{SDL\+\_\+\+Texture $\ast$}]{texture}{, }\item[{\textbf{ vect}}]{pos}{, }\item[{\textbf{ vect}}]{size}{}\end{DoxyParamCaption})}

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="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."];
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="edge3_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="edge4_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="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."];
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

@@ -15,7 +15,7 @@
\DoxyCodeLine{00011\ \textcolor{keywordtype}{void}\ screenDisplay\ (\textcolor{keywordtype}{char}\ **tab,\ \textcolor{keywordtype}{int}\ x,\ \textcolor{keywordtype}{int}\ y);}
\DoxyCodeLine{00012\ \textcolor{keywordtype}{int}\ getMaxSize\ (dis\ display\_user);}
\DoxyCodeLine{00013\ \textcolor{keywordtype}{void}\ displayImage\ (SDL\_Renderer\ *renderer,\ SDL\_Texture\ *texture,\ vect\ pos,}
\DoxyCodeLine{00014\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ size);}
\DoxyCodeLine{00014\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ vect\ size);}
\DoxyCodeLine{00015\ \textcolor{keywordtype}{void}\ initSDL\ (dis\ *display\_user);}
\DoxyCodeLine{00016\ \textcolor{keywordtype}{void}\ displayTextSDL(dis\ *display\_user,\textcolor{keywordtype}{char}\ *text,\ vect\ coor,\ vect\ size,\ \textcolor{keywordtype}{int}\ font\_size);}
\DoxyCodeLine{00017\ \textcolor{keywordtype}{void}\ screenDisplayGameSDL\ (\textcolor{keywordtype}{char}\ **tab,vect\ dim\_tab,\ dis\ *display\_user,\ vect\ *player\_pos,\ \textcolor{keywordtype}{int}\ fov,\ vect\ direction);}

View File

@@ -29,7 +29,7 @@ int \textbf{ move} (char $\ast$$\ast$tab, \textbf{ vect} $\ast$player\+Pos, \tex
\begin{DoxyCompactList}\small\item\em Cette fonction effectue les deplacements du joueur et des boites en fonction de la situation. \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
int \textbf{ in\+Editor\+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, int num\+\_\+fichier)
int \textbf{ in\+Editor\+Loop} (char $\ast$$\ast$tab2d, \textbf{ vect} $\ast$dim\+\_\+tab, \textbf{ vect} $\ast$player\+Pos, \textbf{ dis} $\ast$display\+\_\+user, \textbf{ score} $\ast$score\+\_\+user, int num\+\_\+fichier)
\begin{DoxyCompactList}\small\item\em La fonction permet de faire la boucle de l\textquotesingle{}éditeur. \end{DoxyCompactList}\item
int \textbf{ title\+Screen} (\textbf{ dis} $\ast$display\+\_\+user)
\begin{DoxyCompactList}\small\item\em La fonction permet d\textquotesingle{} afficher le title screen. \end{DoxyCompactList}\item
@@ -52,9 +52,6 @@ void \textbf{ win\+Or\+Lose\+Loop} (\textbf{ dis} $\ast$display\+\_\+user, \text
\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)
\item
\label{function_8c_acdbf299b1c7d8d708c4e7b014c43911a}
unsigned int {\bfseries score\+Calculator\+Cyp} (\textbf{ score} $\ast$score\+\_\+user, bool win)
\end{DoxyCompactItemize}
@@ -156,8 +153,8 @@ Void.
\index{function.c@{function.c}!inEditorLoop@{inEditorLoop}}
\index{inEditorLoop@{inEditorLoop}!function.c@{function.c}}
\doxysubsubsection{inEditorLoop()}
{\footnotesize\ttfamily \label{function_8c_aeba9362e7ee8b3d96352fd608b73a5c7}
int in\+Editor\+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[{int}]{num\+\_\+fichier}{}\end{DoxyParamCaption})}
{\footnotesize\ttfamily \label{function_8c_a244a34e6a3547ce48d78b64a9a6b030f}
int in\+Editor\+Loop (\begin{DoxyParamCaption}\item[{char $\ast$$\ast$}]{tab2d}{, }\item[{\textbf{ vect} $\ast$}]{dim\+\_\+tab}{, }\item[{\textbf{ vect} $\ast$}]{player\+Pos}{, }\item[{\textbf{ dis} $\ast$}]{display\+\_\+user}{, }\item[{\textbf{ score} $\ast$}]{score\+\_\+user}{, }\item[{int}]{num\+\_\+fichier}{}\end{DoxyParamCaption})}

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="edge4_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="edge5_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="edge6_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="edge8_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="edge9_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="edge10_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="edge4_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="edge5_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="edge6_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="edge3_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="edge4_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

@@ -59,10 +59,8 @@
\DoxyCodeLine{00055\ \textcolor{keywordtype}{void}\ nullScore(score\ *player\_score);}
\DoxyCodeLine{00056\ \textcolor{keywordtype}{void}\ winOrLoseLoop(dis\ *display\_user,score\ *score\_user,\ \textcolor{keywordtype}{bool}\ win);}
\DoxyCodeLine{00057\ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ scoreCalculator(score\ *score\_user,\ \textcolor{keywordtype}{bool}\ win);}
\DoxyCodeLine{00058\ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ scoreCalculatorCyp(score\ *score\_user,\ \textcolor{keywordtype}{bool}\ win);}
\DoxyCodeLine{00059\ \textcolor{keywordtype}{int}\ inEditorLoop\ (\textcolor{keywordtype}{char}\ **tab2d,\ vect\ *dim\_tab,\ vect\ *playerPos,\ vect\ *targets,}
\DoxyCodeLine{00060\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ nbr\_targets,\ dis\ *display\_user,score\ *score\_user,\ \textcolor{keywordtype}{int}\ num\_fichier);}
\DoxyCodeLine{00061\ \textcolor{keywordtype}{int}\ titleScreen\ (dis\ *display\_user);}
\DoxyCodeLine{00062\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ FONCTION\_H}}
\DoxyCodeLine{00058\ \textcolor{keywordtype}{int}\ inEditorLoop\ (\textcolor{keywordtype}{char}\ **tab2d,\ vect\ *dim\_tab,\ vect\ *playerPos,\ dis\ *display\_user,score\ *score\_user,\ \textcolor{keywordtype}{int}\ num\_fichier);}
\DoxyCodeLine{00059\ \textcolor{keywordtype}{int}\ titleScreen\ (dis\ *display\_user);}
\DoxyCodeLine{00060\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//\ FONCTION\_H}}
\end{DoxyCode}

View File

@@ -1,8 +1,22 @@
\chapter{Main Test}
\label{index}\index{Main Test@{Main Test}}
\chapter{Rapport}
\label{index}\index{Rapport@{Rapport}}
\label{index_md_main__page}%
ewuewiewhf wef ewuewiewhf ewuewiewhfewf wefe\+:Lw
Nous avons choisi d\textquotesingle{}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.\doxysection{Décision de structure}\label{index_autotoc_md1}
Pour commencer on a pris comme structure pour la zone de jeu un tableau 2d de {\ttfamily char}. Nous avons pris des {\ttfamily char} car on sais qu\textquotesingle{}on a pas besoin de plus de possibilité de nombre que un octet. On a fais des {\ttfamily define} qui permet de definir quel nombre correspond à quel objet dans le jeux (joueur , caisse, mur, ...).
dewfewfewfew f ewuewiewhfewf fw ewuewiewhfewfewf f wf
Nous avons ensuite créer une structure {\ttfamily coor} qui est une structure representant des coordonnées x et y. Cela est pratique pour naviger dans le tableau 2d par exemple.
On a fais une structure de score qui prend comme variable ce qu\textquotesingle{}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.
Pour finir on a fais uns structure {\ttfamily dis} qui est enfaite la structure possédant tout ce qu\textquotesingle{}il faut pour faire l\textquotesingle{}affichage {\ttfamily SDL}. En effet on a la {\ttfamily window}, le {\ttfamily renderer}, on a la taille de la window, la taille des boites ainsi que la taille du menu.\doxysection{Comment lancé le jeu ?}\label{index_autotoc_md2}
Il vous faut installer SDL2, SDL2 Mixer, SDL2 Image, SDL2 ttf, make, gcc.
\begin{DoxyCode}{0}
\DoxyCodeLine{make\ all}
\DoxyCodeLine{./sokoban}
\end{DoxyCode}

View File

@@ -4,11 +4,15 @@
\providecommand \oddpage@label [2]{}
\@writefile{toc}{\@ifundefined {etoctocstyle}{\let \etoc@startlocaltoc \@gobble \let \etoc@settocdepth \@gobble \let \etoc@depthtag \@gobble \let \etoc@setlocaltop \@gobble }{}}
\babel@aux{nil}{}
\@writefile{toc}{\contentsline {chapter}{\numberline {1}Main Test}{1}{}\protected@file@percent }
\@writefile{toc}{\contentsline {chapter}{\numberline {1}Rapport}{1}{}\protected@file@percent }
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
\newlabel{index}{{1}{1}{}{}{}}
\newlabel{index_md_main__page}{{1}{1}{}{}{}}
\@writefile{toc}{\contentsline {section}{\numberline {1.1}Décision de structure}{1}{}\protected@file@percent }
\newlabel{index_autotoc_md1}{{1.1}{1}{}{}{}}
\@writefile{toc}{\contentsline {section}{\numberline {1.2}Comment lancé le jeu ?}{1}{}\protected@file@percent }
\newlabel{index_autotoc_md2}{{1.2}{1}{}{}{}}
\@writefile{toc}{\contentsline {chapter}{\numberline {2}Index des structures de données}{3}{}\protected@file@percent }
\@writefile{lof}{\addvspace {10\p@ }}
\@writefile{lot}{\addvspace {10\p@ }}
@@ -59,7 +63,6 @@
\newlabel{function_8c}{{5.5}{12}{}{}{}}
\newlabel{function_8c_a74650c59d33ff53d62ca3a3f8f56a68c}{{5.5}{12}{}{}{}}
\newlabel{function_8c_aeac9c46be252cd970406e3a2391b8e8c}{{5.5}{12}{}{}{}}
\newlabel{function_8c_acdbf299b1c7d8d708c4e7b014c43911a}{{5.5}{12}{}{}{}}
\gdef \LT@ii {\LT@entry
{3}{49.54645pt}\LT@entry
{3}{199.23586pt}}
@@ -89,7 +92,7 @@
{3}{63.04623pt}\LT@entry
{3}{275.48282pt}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {5.5.2.5}inEditorLoop()}{15}{}\protected@file@percent }
\newlabel{function_8c_aeba9362e7ee8b3d96352fd608b73a5c7}{{5.5.2.5}{15}{}{}{}}
\newlabel{function_8c_a244a34e6a3547ce48d78b64a9a6b030f}{{5.5.2.5}{15}{}{}{}}
\@writefile{toc}{\contentsline {subsubsection}{\numberline {5.5.2.6}inGameLoop()}{15}{}\protected@file@percent }
\newlabel{function_8c_a7f8e67bce9078c159778bbe2f57e9d2f}{{5.5.2.6}{15}{}{}{}}
\gdef \LT@viii {\LT@entry

View File

@@ -1,4 +1,4 @@
\indexentry{Main Test@{Main Test}}{1}
\indexentry{Rapport@{Rapport}}{1}
\indexentry{essential\_sdl@{essential\_sdl}}{7}
\indexentry{Score@{Score}}{7}
\indexentry{Vecteur@{Vecteur}}{7}

View File

@@ -1,4 +1,4 @@
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/Arch Linux) (preloaded format=pdflatex 2025.1.8) 8 JAN 2025 15:15
This is pdfTeX, Version 3.141592653-2.6-1.40.26 (TeX Live 2024/Arch Linux) (preloaded format=pdflatex 2025.1.8) 9 JAN 2025 10:41
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
@@ -766,17 +766,28 @@ LaTeX Font Info: Font shape `T1/phv/b/n' will be
(Font) scaled to size 18.66588pt on input line 1.
LaTeX Font Info: Font shape `T1/phv/b/n' will be
(Font) scaled to size 22.39185pt on input line 1.
) [1
LaTeX Font Info: Trying to load font information for TS1+phv on input line 6
.
(/usr/share/texmf-dist/tex/latex/psnfss/ts1phv.fd
File: ts1phv.fd 2020/03/25 scalable font definitions for TS1/phv.
)
LaTeX Font Info: Font shape `TS1/phv/m/n' will be
(Font) scaled to size 8.99994pt on input line 6.
LaTeX Font Info: Font shape `T1/phv/b/n' will be
(Font) scaled to size 12.9599pt on input line 6.
LaTeX Font Info: Trying to load font information for T1+pcr on input line 7.
(/usr/share/texmf-dist/tex/latex/psnfss/t1pcr.fd
File: t1pcr.fd 2001/06/04 font definitions for T1/pcr.
)) [1
] [2
]
Chapter 2.
(./annotated.tex
LaTeX Font Info: Font shape `T1/phv/b/n' will be
(Font) scaled to size 12.9599pt on input line 1.
) [3] [4
(./annotated.tex) [3] [4
]
Chapter 3.
@@ -784,34 +795,21 @@ Chapter 3.
]
Chapter 4.
(./structessential__sdl.tex
LaTeX Font Info: Trying to load font information for TS1+phv on input line 6
.
(/usr/share/texmf-dist/tex/latex/psnfss/ts1phv.fd
File: ts1phv.fd 2020/03/25 scalable font definitions for TS1/phv.
)
LaTeX Font Info: Font shape `TS1/phv/m/n' will be
(Font) scaled to size 8.99994pt on input line 6.
) (./structScore.tex) (./structVecteur.tex) [7] [8
(./structessential__sdl.tex) (./structScore.tex) (./structVecteur.tex) [7]
[8
]
Chapter 5.
(./display_8h_source.tex
LaTeX Font Info: Trying to load font information for T1+pcr on input line 4.
(/usr/share/texmf-dist/tex/latex/psnfss/t1pcr.fd
File: t1pcr.fd 2001/06/04 font definitions for T1/pcr.
))
(./function_8h_source.tex [9]) (./read_8h_source.tex) (./display_8c.tex <./disp
lay_8c__incl.pdf>
(./display_8h_source.tex) (./function_8h_source.tex [9]) (./read_8h_source.tex)
(./display_8c.tex <./display_8c__incl.pdf>
<display_8c__incl.pdf, id=48, 1165.35374pt x 265.99374pt>
File: display_8c__incl.pdf Graphic file (type pdf)
<use display_8c__incl.pdf>
Package pdftex.def Info: display_8c__incl.pdf used on input line 20.
(pdftex.def) Requested size: 350.0pt x 79.88802pt.
[10]
LaTeX Font Info: Font shape `T1/phv/m/n' will be
(Font) scaled to size 8.09995pt on input line 27.
[10]
LaTeX Font Info: Font shape `T1/phv/m/it' in size <9> not available
(Font) Font shape `T1/phv/m/sl' tried instead on input line 27.
LaTeX Font Info: Font shape `T1/phv/m/sl' will be
@@ -828,8 +826,9 @@ LaTeX Font Info: Font shape `T1/pcr/m/it' in size <8> not available
(Font) Font shape `T1/pcr/m/sl' tried instead on input line 52.
LaTeX Font Info: Font shape `T1/pcr/m/it' in size <7> not available
(Font) Font shape `T1/pcr/m/sl' tried instead on input line 52.
) (./function_8c.tex [11] [12]
Underfull \hbox (badness 10000) detected at line 82
) (./function_8c.tex [11]
[12]
Underfull \hbox (badness 10000) detected at line 79
[][][]
[]
@@ -840,35 +839,35 @@ File: function_8c_ac51249b2f7941ca06e6a614e071dd444_cgraph.pdf Graphic file (ty
pe pdf)
<use function_8c_ac51249b2f7941ca06e6a614e071dd444_cgraph.pdf>
Package pdftex.def Info: function_8c_ac51249b2f7941ca06e6a614e071dd444_cgraph.p
df used on input line 89.
df used on input line 86.
(pdftex.def) Requested size: 234.0pt x 135.99933pt.
[13]
Underfull \hbox (badness 10000) detected at line 111
Underfull \hbox (badness 10000) detected at line 108
[][][]
[]
Underfull \hbox (badness 10000) detected at line 133
Underfull \hbox (badness 10000) detected at line 130
[][][]
[]
Underfull \hbox (badness 10000) detected at line 153
Underfull \hbox (badness 10000) detected at line 150
[][][]
[]
[14]
Underfull \hbox (badness 10000) detected at line 185
Underfull \hbox (badness 10000) detected at line 182
[][][]
[]
[15]
Underfull \hbox (badness 10000) detected at line 219
Underfull \hbox (badness 10000) detected at line 216
[][][]
[]
Underfull \hbox (badness 10000) detected at line 241
Underfull \hbox (badness 10000) detected at line 238
[][][]
[]
@@ -879,35 +878,35 @@ File: function_8c_ac155bb183b0c26d19758d8d065baf14f_cgraph.pdf Graphic file (ty
pe pdf)
<use function_8c_ac155bb183b0c26d19758d8d065baf14f_cgraph.pdf>
Package pdftex.def Info: function_8c_ac155bb183b0c26d19758d8d065baf14f_cgraph.p
df used on input line 248.
df used on input line 245.
(pdftex.def) Requested size: 312.0pt x 136.00557pt.
Underfull \hbox (badness 10000) detected at line 270
Underfull \hbox (badness 10000) detected at line 267
[][][]
[]
[16]
Underfull \hbox (badness 10000) detected at line 294
Underfull \hbox (badness 10000) detected at line 291
[][][]
[]
Underfull \hbox (badness 10000) detected at line 316
Underfull \hbox (badness 10000) detected at line 313
[][][]
[]
Underfull \hbox (badness 10000) detected at line 336
Underfull \hbox (badness 10000) detected at line 333
[][][]
[]
[17]
Underfull \hbox (badness 10000) detected at line 356
Underfull \hbox (badness 10000) detected at line 353
[][][]
[]
Underfull \hbox (badness 10000) detected at line 376
Underfull \hbox (badness 10000) detected at line 373
[][][]
[]
@@ -927,10 +926,10 @@ L3 programming layer <2024-02-20>
***********
)
Here is how much of TeX's memory you used:
12777 strings out of 476076
207335 string characters out of 5793776
1950187 words of memory out of 5000000
34595 multiletter control sequences out of 15000+600000
12778 strings out of 476076
207326 string characters out of 5793776
1949187 words of memory out of 5000000
34596 multiletter control sequences out of 15000+600000
611649 words of font info for 105 fonts, out of 8000000 for 9000
14 hyphenation exceptions out of 8191
101i,16n,117p,656b,607s stack positions out of 10000i,1000n,20000p,200000b,200000s
@@ -942,7 +941,7 @@ r/share/texmf-dist/fonts/type1/urw/courier/ucrro8a.pfb></usr/share/texmf-dist/f
onts/type1/urw/helvetic/uhvb8a.pfb></usr/share/texmf-dist/fonts/type1/urw/helve
tic/uhvb8ac.pfb></usr/share/texmf-dist/fonts/type1/urw/helvetic/uhvr8a.pfb></us
r/share/texmf-dist/fonts/type1/urw/helvetic/uhvro8a.pfb>
Output written on refman.pdf (26 pages, 152060 bytes).
Output written on refman.pdf (26 pages, 153732 bytes).
PDF statistics:
167 PDF objects out of 1000 (max. 8388607)
105 compressed objects within 2 object streams

Binary file not shown.

View File

@@ -1,6 +1,8 @@
\@ifundefined {etoctocstyle}{\let \etoc@startlocaltoc \@gobble \let \etoc@settocdepth \@gobble \let \etoc@depthtag \@gobble \let \etoc@setlocaltop \@gobble }{}
\babel@toc {nil}{}\relax
\contentsline {chapter}{\numberline {1}Main Test}{1}{}%
\contentsline {chapter}{\numberline {1}Rapport}{1}{}%
\contentsline {section}{\numberline {1.1}Décision de structure}{1}{}%
\contentsline {section}{\numberline {1.2}Comment lancé le jeu ?}{1}{}%
\contentsline {chapter}{\numberline {2}Index des structures de données}{3}{}%
\contentsline {section}{\numberline {2.1}Structures de données}{3}{}%
\contentsline {chapter}{\numberline {3}Index des fichiers}{5}{}%

View File

@@ -1,14 +1,32 @@
# Main Test
ewuewiewhf
wef
ewuewiewhf
ewuewiewhfewf
wefe:Lw
# Rapport
dewfewfewfew
f
ewuewiewhfewf
fw
ewuewiewhfewfewf
f
wf
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.
## Décision de structure
Pour commencer on a pris comme structure pour la zone de jeu un tableau 2d de `char`. Nous avons pris
des `char` car on sais qu'on a pas besoin de plus de possibilité de nombre que un octet. On a fais des `define`
qui permet de definir quel nombre correspond à quel objet dans le jeux (joueur , caisse, mur, ...).
Nous avons ensuite créer une structure `coor` qui est une structure representant des coordonnées x et y.
Cela est pratique pour naviger dans le tableau 2d par exemple.
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.
Pour finir on a fais uns structure `dis` qui est enfaite la structure possédant tout ce qu'il faut
pour faire l'affichage `SDL`. En effet on a la `window`, le `renderer`, on a la taille de la window,
la taille des boites ainsi que la taille du menu.
Nous avons fais en sorte que pour nimporte quel écran la window s'adapte à celle-ci.
## Comment lancé le jeu ?
Il vous faut installer SDL2, SDL2 Mixer, SDL2 Image, SDL2 ttf, make, gcc.
```bash
make all
./sokoban
```