diff --git a/maps/custom_1.txt b/maps/custom_1.txt new file mode 100644 index 0000000..019d8e7 --- /dev/null +++ b/maps/custom_1.txt @@ -0,0 +1,20 @@ +#################### +#P # +# # +# # +# # +# C # +# # +# I # +# # +# # +# # +# # +# # +# # +# # +# # +# # +# # +# # +#################### diff --git a/maps/custom_2.txt b/maps/custom_2.txt new file mode 100644 index 0000000..cc8bb47 --- /dev/null +++ b/maps/custom_2.txt @@ -0,0 +1,20 @@ +#################### +# C I # +# C P # +# C C # +# # +# C C # +# C # +# C I # +# C # +# # +# # +# C # +# C C # +# C # +# C # +# # +# C C # +# # +# C # +#################### diff --git a/rapport/html/display_8c.html b/rapport/html/display_8c.html index a109a22..faf090f 100644 --- a/rapport/html/display_8c.html +++ b/rapport/html/display_8c.html @@ -163,9 +163,9 @@ Fonctions void initSDL (dis *display_user)  Initialise SDL.
  -void displayImage (SDL_Renderer *renderer, SDL_Texture *texture, vect pos, int size) - Cette fonction affiche l'image dans la fenetre de l'utilisateur.
-  +void displayImage (SDL_Renderer *renderer, SDL_Texture *texture, vect pos, vect size) + Cette fonction affiche l'image dans la fenetre de l'utilisateur.
+  void displayTextSDL (dis *display_user, char *text, vect coor, vect size, int font_size)  Cette fonction affiche du texte dans la fenetre de l'utilisateur.
  @@ -214,8 +214,8 @@ Voici le graphe d'appel pour cette fonction : - -

◆ displayImage()

+ +

◆ displayImage()

@@ -238,7 +238,7 @@ Voici le graphe d'appel pour cette fonction :
- int size ) + vect size )
@@ -257,12 +257,7 @@ Voici le graphe d'appel pour cette fonction :
Voici le graphe des appelants de cette fonction :
-
- - - - - +
diff --git a/rapport/html/display_8c_a4f8faee5abaa49fb784df75266472278_cgraph.dot b/rapport/html/display_8c_a4f8faee5abaa49fb784df75266472278_cgraph.dot index 810778f..1a747d2 100644 --- a/rapport/html/display_8c_a4f8faee5abaa49fb784df75266472278_cgraph.dot +++ b/rapport/html/display_8c_a4f8faee5abaa49fb784df75266472278_cgraph.dot @@ -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."]; } diff --git a/rapport/html/display_8c_a99197d28e48cdf3b5b6be89cdc3ce030_icgraph.dot b/rapport/html/display_8c_a99197d28e48cdf3b5b6be89cdc3ce030_icgraph.dot new file mode 100644 index 0000000..adbc925 --- /dev/null +++ b/rapport/html/display_8c_a99197d28e48cdf3b5b6be89cdc3ce030_icgraph.dot @@ -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."]; +} diff --git a/rapport/html/display_8c_adc264e6abc61064a8222b53822850cdd_cgraph.dot b/rapport/html/display_8c_adc264e6abc61064a8222b53822850cdd_cgraph.dot index c9b72dd..0dec651 100644 --- a/rapport/html/display_8c_adc264e6abc61064a8222b53822850cdd_cgraph.dot +++ b/rapport/html/display_8c_adc264e6abc61064a8222b53822850cdd_cgraph.dot @@ -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."]; } diff --git a/rapport/html/display_8h_source.html b/rapport/html/display_8h_source.html index 1e2fa05..a4c8709 100644 --- a/rapport/html/display_8h_source.html +++ b/rapport/html/display_8h_source.html @@ -105,7 +105,7 @@ $(function(){ initResizable(false); });
11void screenDisplay (char **tab, int x, int y);
12int getMaxSize (dis display_user);
13void displayImage (SDL_Renderer *renderer, SDL_Texture *texture, vect pos,
-
14 int size);
+
14 vect size);
15void initSDL (dis *display_user);
16void displayTextSDL(dis *display_user,char *text, vect coor, vect size, int font_size);
17void screenDisplayGameSDL (char **tab,vect dim_tab, dis *display_user, vect *player_pos, int fov, vect direction);
diff --git a/rapport/html/doxygen_crawl.html b/rapport/html/doxygen_crawl.html index 1addb91..2752837 100644 --- a/rapport/html/doxygen_crawl.html +++ b/rapport/html/doxygen_crawl.html @@ -15,7 +15,7 @@ - + @@ -26,6 +26,7 @@ + @@ -39,12 +40,13 @@ - + + diff --git a/rapport/html/function_8c.html b/rapport/html/function_8c.html index 30aaf0c..404969b 100644 --- a/rapport/html/function_8c.html +++ b/rapport/html/function_8c.html @@ -168,9 +168,9 @@ Fonctions int inGameLoop (char **tab2d, vect *dim_tab, vect *playerPos, vect *targets, int nbr_targets, dis *display_user, score *score_user, bool menu)  La fonction permet de faire la boucle de jeu et le menu.
  -int inEditorLoop (char **tab2d, vect *dim_tab, vect *playerPos, vect *targets, int nbr_targets, dis *display_user, score *score_user, int num_fichier) - La fonction permet de faire la boucle de l'éditeur.
-  +int inEditorLoop (char **tab2d, vect *dim_tab, vect *playerPos, dis *display_user, score *score_user, int num_fichier) + La fonction permet de faire la boucle de l'éditeur.
+  int titleScreen (dis *display_user)  La fonction permet d' afficher le title screen.
  @@ -202,9 +202,6 @@ int lengthVect ( unsigned int scoreCalculator (score *score_user, bool win)   - -unsigned int scoreCalculatorCyp (score *score_user, bool win) - 

Description détaillée

Ce fichier contient toute les fonction utile pour le jeu. Sauf pour l'affichage.

@@ -369,8 +366,8 @@ Voici le graphe des appelants de cette fonction :
- -

◆ inEditorLoop()

+ +

◆ inEditorLoop()

@@ -390,16 +387,6 @@ Voici le graphe des appelants de cette fonction :
vect * playerPos, - - - - vect * targets, - - - - - int nbr_targets, - @@ -436,7 +423,7 @@ Voici le graphe des appelants de cette fonction :
Voici le graphe d'appel pour cette fonction :
-
+
diff --git a/rapport/html/function_8c_a244a34e6a3547ce48d78b64a9a6b030f_cgraph.dot b/rapport/html/function_8c_a244a34e6a3547ce48d78b64a9a6b030f_cgraph.dot new file mode 100644 index 0000000..9027de7 --- /dev/null +++ b/rapport/html/function_8c_a244a34e6a3547ce48d78b64a9a6b030f_cgraph.dot @@ -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)."]; +} diff --git a/rapport/html/function_8c_a5b10e69716d92eadf2ed0b3942cb9d4d_icgraph.dot b/rapport/html/function_8c_a5b10e69716d92eadf2ed0b3942cb9d4d_icgraph.dot index cdecd9f..22543bc 100644 --- a/rapport/html/function_8c_a5b10e69716d92eadf2ed0b3942cb9d4d_icgraph.dot +++ b/rapport/html/function_8c_a5b10e69716d92eadf2ed0b3942cb9d4d_icgraph.dot @@ -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."]; } diff --git a/rapport/html/function_8c_a76df2bc0c692d3397837706a6852ac36_icgraph.dot b/rapport/html/function_8c_a76df2bc0c692d3397837706a6852ac36_icgraph.dot index 7ec31b3..0539e8a 100644 --- a/rapport/html/function_8c_a76df2bc0c692d3397837706a6852ac36_icgraph.dot +++ b/rapport/html/function_8c_a76df2bc0c692d3397837706a6852ac36_icgraph.dot @@ -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."]; } diff --git a/rapport/html/function_8c_a9c9b1fdde1684178393ffe6104ab615d_icgraph.dot b/rapport/html/function_8c_a9c9b1fdde1684178393ffe6104ab615d_icgraph.dot index 71bbb44..a2b1529 100644 --- a/rapport/html/function_8c_a9c9b1fdde1684178393ffe6104ab615d_icgraph.dot +++ b/rapport/html/function_8c_a9c9b1fdde1684178393ffe6104ab615d_icgraph.dot @@ -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."]; } diff --git a/rapport/html/function_8h_source.html b/rapport/html/function_8h_source.html index d9b4068..ff90124 100644 --- a/rapport/html/function_8h_source.html +++ b/rapport/html/function_8h_source.html @@ -155,11 +155,9 @@ $(function(){ initResizable(false); });
55void nullScore(score *player_score);
56void winOrLoseLoop(dis *display_user,score *score_user, bool win);
57unsigned int scoreCalculator(score *score_user, bool win);
-
58unsigned int scoreCalculatorCyp(score *score_user, bool win);
-
59int inEditorLoop (char **tab2d, vect *dim_tab, vect *playerPos, vect *targets,
-
60 int nbr_targets, dis *display_user,score *score_user, int num_fichier);
-
61int titleScreen (dis *display_user);
-
62#endif // FONCTION_H
+
58int inEditorLoop (char **tab2d, vect *dim_tab, vect *playerPos, dis *display_user,score *score_user, int num_fichier);
+
59int titleScreen (dis *display_user);
+
60#endif // FONCTION_H
Score
Definition function.h:29
Vecteur
Definition function.h:23
essential_sdl
Definition function.h:37
diff --git a/rapport/html/globals.html b/rapport/html/globals.html index e8a4c8f..09d364a 100644 --- a/rapport/html/globals.html +++ b/rapport/html/globals.html @@ -91,13 +91,13 @@ $(function(){ initResizable(false); });
  • canIGoDirection() : function.c
  • countCustomMaps() : read.c
  • creatArea2D() : function.c
  • -
  • displayImage() : display.c
  • +
  • displayImage() : display.c
  • displayTextSDL() : display.c
  • fileToTab2D() : read.c
  • free2D() : function.c
  • generatorMenu() : read.c
  • getMaxSize() : display.c
  • -
  • inEditorLoop() : function.c
  • +
  • inEditorLoop() : function.c
  • inGameLoop() : function.c
  • initSDL() : display.c
  • islose() : function.c
  • diff --git a/rapport/html/globals_func.html b/rapport/html/globals_func.html index 071fb63..0675579 100644 --- a/rapport/html/globals_func.html +++ b/rapport/html/globals_func.html @@ -91,13 +91,13 @@ $(function(){ initResizable(false); });
  • canIGoDirection() : function.c
  • countCustomMaps() : read.c
  • creatArea2D() : function.c
  • -
  • displayImage() : display.c
  • +
  • displayImage() : display.c
  • displayTextSDL() : display.c
  • fileToTab2D() : read.c
  • free2D() : function.c
  • generatorMenu() : read.c
  • getMaxSize() : display.c
  • -
  • inEditorLoop() : function.c
  • +
  • inEditorLoop() : function.c
  • inGameLoop() : function.c
  • initSDL() : display.c
  • islose() : function.c
  • diff --git a/rapport/html/index.html b/rapport/html/index.html index a1f6b34..ef12336 100644 --- a/rapport/html/index.html +++ b/rapport/html/index.html @@ -5,7 +5,7 @@ -Sokoban: Main Test +Sokoban: Rapport @@ -85,13 +85,23 @@ $(function(){ initResizable(false); });
    -
    Main Test
    +
    Rapport

    -

    ewuewiewhf wef ewuewiewhf ewuewiewhfewf wefe:Lw

    -

    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.

    +

    +Comment lancé le jeu ?

    +

    Il vous faut installer SDL2, SDL2 Mixer, SDL2 Image, SDL2 ttf, make, gcc.

    +
    make all
    +
    ./sokoban
    +
    diff --git a/rapport/html/search/all_1.js b/rapport/html/search/all_1.js index 0b0e5d2..62f1503 100644 --- a/rapport/html/search/all_1.js +++ b/rapport/html/search/all_1.js @@ -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']]] ]; diff --git a/rapport/html/search/all_10.js b/rapport/html/search/all_10.js new file mode 100644 index 0000000..94ca79d --- /dev/null +++ b/rapport/html/search/all_10.js @@ -0,0 +1,4 @@ +var searchData= +[ + ['winorloseloop_0',['winOrLoseLoop',['../function_8c.html#a2dc9de2f6fd2bed3619d7ce8c1f05590',1,'function.c']]] +]; diff --git a/rapport/html/search/all_2.js b/rapport/html/search/all_2.js index 350ec99..f635976 100644 --- a/rapport/html/search/all_2.js +++ b/rapport/html/search/all_2.js @@ -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']]] ]; diff --git a/rapport/html/search/all_6.js b/rapport/html/search/all_6.js index aaf433c..b656b1c 100644 --- a/rapport/html/search/all_6.js +++ b/rapport/html/search/all_6.js @@ -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']]], diff --git a/rapport/html/search/all_7.js b/rapport/html/search/all_7.js index 6b5b0db..fc29644 100644 --- a/rapport/html/search/all_7.js +++ b/rapport/html/search/all_7.js @@ -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,'']]] ]; diff --git a/rapport/html/search/all_8.js b/rapport/html/search/all_8.js index 64b1ffe..5a5f342 100644 --- a/rapport/html/search/all_8.js +++ b/rapport/html/search/all_8.js @@ -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']]] ]; diff --git a/rapport/html/search/all_9.js b/rapport/html/search/all_9.js index 9fd9e5b..f57f47a 100644 --- a/rapport/html/search/all_9.js +++ b/rapport/html/search/all_9.js @@ -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']]] ]; diff --git a/rapport/html/search/all_a.js b/rapport/html/search/all_a.js index e682acc..9fd9e5b 100644 --- a/rapport/html/search/all_a.js +++ b/rapport/html/search/all_a.js @@ -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']]] ]; diff --git a/rapport/html/search/all_b.js b/rapport/html/search/all_b.js index 3d35f41..e682acc 100644 --- a/rapport/html/search/all_b.js +++ b/rapport/html/search/all_b.js @@ -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']]] ]; diff --git a/rapport/html/search/all_c.js b/rapport/html/search/all_c.js index 0cbdf04..e0c8ac7 100644 --- a/rapport/html/search/all_c.js +++ b/rapport/html/search/all_c.js @@ -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,'']]] ]; diff --git a/rapport/html/search/all_d.js b/rapport/html/search/all_d.js index 178ecb1..aedeec5 100644 --- a/rapport/html/search/all_d.js +++ b/rapport/html/search/all_d.js @@ -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,'']]] ]; diff --git a/rapport/html/search/all_e.js b/rapport/html/search/all_e.js index e5c87fe..142fcc8 100644 --- a/rapport/html/search/all_e.js +++ b/rapport/html/search/all_e.js @@ -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']]] ]; diff --git a/rapport/html/search/all_f.js b/rapport/html/search/all_f.js index 94ca79d..e5c87fe 100644 --- a/rapport/html/search/all_f.js +++ b/rapport/html/search/all_f.js @@ -1,4 +1,4 @@ var searchData= [ - ['winorloseloop_0',['winOrLoseLoop',['../function_8c.html#a2dc9de2f6fd2bed3619d7ce8c1f05590',1,'function.c']]] + ['vecteur_0',['Vecteur',['../structVecteur.html',1,'']]] ]; diff --git a/rapport/html/search/functions_2.js b/rapport/html/search/functions_2.js index dca408e..bf8d34d 100644 --- a/rapport/html/search/functions_2.js +++ b/rapport/html/search/functions_2.js @@ -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']]] ]; diff --git a/rapport/html/search/functions_5.js b/rapport/html/search/functions_5.js index aaf433c..b656b1c 100644 --- a/rapport/html/search/functions_5.js +++ b/rapport/html/search/functions_5.js @@ -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']]], diff --git a/rapport/html/search/pages_0.js b/rapport/html/search/pages_0.js index b9f9889..394f48d 100644 --- a/rapport/html/search/pages_0.js +++ b/rapport/html/search/pages_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['main_20test_0',['Main Test',['../index.html',1,'']]] + ['rapport_0',['Rapport',['../index.html',1,'']]] ]; diff --git a/rapport/html/search/searchdata.js b/rapport/html/search/searchdata.js index 24d6639..81a492f 100644 --- a/rapport/html/search/searchdata.js +++ b/rapport/html/search/searchdata.js @@ -1,10 +1,10 @@ var indexSectionsWithContent = { - 0: "bcdefgilmnprstvw", + 0: "bcdefgijlmnprstvw", 1: "esv", 2: "dfmr", 3: "bcdfgilmnpstw", - 4: "mt" + 4: "r" }; var indexSectionNames = diff --git a/rapport/latex/display_8c.tex b/rapport/latex/display_8c.tex index 6d6aaea..31fa6e9 100644 --- a/rapport/latex/display_8c.tex +++ b/rapport/latex/display_8c.tex @@ -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 diff --git a/rapport/latex/display_8c.tex.tmp b/rapport/latex/display_8c.tex.tmp index 88482f9..058ca91 100644 --- a/rapport/latex/display_8c.tex.tmp +++ b/rapport/latex/display_8c.tex.tmp @@ -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})} diff --git a/rapport/latex/display_8c_a4f8faee5abaa49fb784df75266472278_cgraph.dot b/rapport/latex/display_8c_a4f8faee5abaa49fb784df75266472278_cgraph.dot index 2c6c9bd..0252285 100644 --- a/rapport/latex/display_8c_a4f8faee5abaa49fb784df75266472278_cgraph.dot +++ b/rapport/latex/display_8c_a4f8faee5abaa49fb784df75266472278_cgraph.dot @@ -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."]; } diff --git a/rapport/latex/display_8c_a99197d28e48cdf3b5b6be89cdc3ce030_icgraph.dot b/rapport/latex/display_8c_a99197d28e48cdf3b5b6be89cdc3ce030_icgraph.dot new file mode 100644 index 0000000..351c8d1 --- /dev/null +++ b/rapport/latex/display_8c_a99197d28e48cdf3b5b6be89cdc3ce030_icgraph.dot @@ -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."]; +} diff --git a/rapport/latex/display_8c_adc264e6abc61064a8222b53822850cdd_cgraph.dot b/rapport/latex/display_8c_adc264e6abc61064a8222b53822850cdd_cgraph.dot index 5ecc579..5bc346c 100644 --- a/rapport/latex/display_8c_adc264e6abc61064a8222b53822850cdd_cgraph.dot +++ b/rapport/latex/display_8c_adc264e6abc61064a8222b53822850cdd_cgraph.dot @@ -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."]; } diff --git a/rapport/latex/display_8h_source.tex b/rapport/latex/display_8h_source.tex index 49ea00f..88c9637 100644 --- a/rapport/latex/display_8h_source.tex +++ b/rapport/latex/display_8h_source.tex @@ -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);} diff --git a/rapport/latex/function_8c.tex b/rapport/latex/function_8c.tex index 285d70d..93be316 100644 --- a/rapport/latex/function_8c.tex +++ b/rapport/latex/function_8c.tex @@ -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})} diff --git a/rapport/latex/function_8c_a244a34e6a3547ce48d78b64a9a6b030f_cgraph.dot b/rapport/latex/function_8c_a244a34e6a3547ce48d78b64a9a6b030f_cgraph.dot new file mode 100644 index 0000000..b1d70a0 --- /dev/null +++ b/rapport/latex/function_8c_a244a34e6a3547ce48d78b64a9a6b030f_cgraph.dot @@ -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)."]; +} diff --git a/rapport/latex/function_8c_a5b10e69716d92eadf2ed0b3942cb9d4d_icgraph.dot b/rapport/latex/function_8c_a5b10e69716d92eadf2ed0b3942cb9d4d_icgraph.dot index 634577b..69686b0 100644 --- a/rapport/latex/function_8c_a5b10e69716d92eadf2ed0b3942cb9d4d_icgraph.dot +++ b/rapport/latex/function_8c_a5b10e69716d92eadf2ed0b3942cb9d4d_icgraph.dot @@ -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."]; } diff --git a/rapport/latex/function_8c_a76df2bc0c692d3397837706a6852ac36_icgraph.dot b/rapport/latex/function_8c_a76df2bc0c692d3397837706a6852ac36_icgraph.dot index 865f12e..bd9416f 100644 --- a/rapport/latex/function_8c_a76df2bc0c692d3397837706a6852ac36_icgraph.dot +++ b/rapport/latex/function_8c_a76df2bc0c692d3397837706a6852ac36_icgraph.dot @@ -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."]; } diff --git a/rapport/latex/function_8c_a9c9b1fdde1684178393ffe6104ab615d_icgraph.dot b/rapport/latex/function_8c_a9c9b1fdde1684178393ffe6104ab615d_icgraph.dot index e532f97..42cc81c 100644 --- a/rapport/latex/function_8c_a9c9b1fdde1684178393ffe6104ab615d_icgraph.dot +++ b/rapport/latex/function_8c_a9c9b1fdde1684178393ffe6104ab615d_icgraph.dot @@ -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."]; } diff --git a/rapport/latex/function_8h_source.tex b/rapport/latex/function_8h_source.tex index cfbf431..c4b544d 100644 --- a/rapport/latex/function_8h_source.tex +++ b/rapport/latex/function_8h_source.tex @@ -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} diff --git a/rapport/latex/index.tex b/rapport/latex/index.tex index 75f443f..8ec874c 100644 --- a/rapport/latex/index.tex +++ b/rapport/latex/index.tex @@ -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 \ No newline at end of file +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} + \ No newline at end of file diff --git a/rapport/latex/refman.aux b/rapport/latex/refman.aux index e6728b8..3fbaf37 100644 --- a/rapport/latex/refman.aux +++ b/rapport/latex/refman.aux @@ -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 diff --git a/rapport/latex/refman.idx b/rapport/latex/refman.idx index 16c6813..eaf5883 100644 --- a/rapport/latex/refman.idx +++ b/rapport/latex/refman.idx @@ -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} diff --git a/rapport/latex/refman.log b/rapport/latex/refman.log index 5dbc8aa..9555578 100644 --- a/rapport/latex/refman.log +++ b/rapport/latex/refman.log @@ -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> File: display_8c__incl.pdf Graphic file (type 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) 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) 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> -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 diff --git a/rapport/latex/refman.pdf b/rapport/latex/refman.pdf index 7793901..047a05d 100644 Binary files a/rapport/latex/refman.pdf and b/rapport/latex/refman.pdf differ diff --git a/rapport/latex/refman.toc b/rapport/latex/refman.toc index abc9910..2bf9c0a 100644 --- a/rapport/latex/refman.toc +++ b/rapport/latex/refman.toc @@ -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}{}% diff --git a/rapport/main_page.md b/rapport/main_page.md index 9a38e86..ac25a82 100644 --- a/rapport/main_page.md +++ b/rapport/main_page.md @@ -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 +```