diff --git a/rapport/html/display_8c.html b/rapport/html/display_8c.html
index 8fb6760..a109a22 100644
--- a/rapport/html/display_8c.html
+++ b/rapport/html/display_8c.html
@@ -99,6 +99,7 @@ $(function(){ initResizable(false); });
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_mutex.h>
+#include <SDL2/SDL_mixer.h>
#include <SDL2/SDL_rect.h>
#include <SDL2/SDL_render.h>
#include <SDL2/SDL_surface.h>
@@ -153,9 +154,9 @@ Fonctions
| void | screenDisplay (char **tab, int x, int y) |
| | La fonction permet d'afficher simplement le plateau de jeu dans le terminal.
|
| |
-| void | screenDisplayGameSDL (char **tab, vect dim_tab, dis *display_user, vect *player_pos, int fov) |
-| | La fonction affiche a l'aide de SDL la zone de jeu.
|
-| |
+| void | screenDisplayGameSDL (char **tab, vect dim_tab, dis *display_user, vect *player_pos, int fov, vect direction) |
+| | La fonction affiche a l'aide de SDL la zone de jeu.
|
+| |
| int | getMaxSize (dis display_user) |
| | Taille de l'ecrant carre en fonction de l'ecrant du joueur avec une marge.
|
| |
@@ -168,10 +169,51 @@ Fonctions
| 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.
|
| |
+| void | backgroundDisplay (dis *display_user, int bg) |
+| | Afficher l'arriere plan.
|
+| |
+| void | playAudio (int sfx) |
+| | Cette fonction permet de joueur des effet sonor.
|
+| |
Fichier contient tout les fonctions pour l'affichage.
+
+◆ backgroundDisplay()
+
+
+
+
+
+ | void backgroundDisplay |
+ ( |
+ dis * | display_user, |
+
+
+ |
+ |
+ int | bg ) |
+
+
+
+
+
Afficher l'arriere plan.
+
- Paramètres
-
+
+ | display_user | Tout les information du display de l'utilisateur utile. |
+ | bg | quel back ground afficher. |
+
+
+
+
+
+
+
+
◆ displayImage()
@@ -324,6 +366,32 @@ Voici le graphe des appelants de cette fonction :
- Renvoie
- Void
+
+
+
+◆ playAudio()
+
+
+
+
+
+ | void playAudio |
+ ( |
+ int | sfx | ) |
+ |
+
+
+
+
+
Cette fonction permet de joueur des effet sonor.
+
- Paramètres
-
+
+ | sfx | un int designant le numero du son a jouer. du joueur. |
+
+
+
+
- Renvoie
- Void
+
@@ -363,8 +431,8 @@ Voici le graphe des appelants de cette fonction :
-
-◆ screenDisplayGameSDL()
+
+◆ screenDisplayGameSDL()
@@ -392,7 +460,12 @@ Voici le graphe des appelants de cette fonction :
|
|
- int | fov ) |
+ int | fov, |
+
+
+ |
+ |
+ vect | direction ) |
@@ -404,6 +477,7 @@ Voici le graphe des appelants de cette fonction :
| display_user | La structure qui possede tous ce qu'il faut pour l'affichage SDL |
| player_pos | la position du joueur |
| fov | Le fov de la vision du joueur, -1 si desactiver. |
+ | direction | La direction du personnage. |
@@ -411,7 +485,7 @@ Voici le graphe des appelants de cette fonction :
diff --git a/rapport/html/display_8c__incl.dot b/rapport/html/display_8c__incl.dot
new file mode 100644
index 0000000..e999368
--- /dev/null
+++ b/rapport/html/display_8c__incl.dot
@@ -0,0 +1,44 @@
+digraph "display.c"
+{
+ // LATEX_PDF_SIZE
+ bgcolor="transparent";
+ edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
+ node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
+ Node1 [id="Node000001",label="display.c",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip=" "];
+ Node1 -> Node2 [id="edge1_Node000001_Node000002",color="steelblue1",style="solid",tooltip=" "];
+ Node2 [id="Node000002",label="../include/display.h",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$display_8h_source.html",tooltip=" "];
+ Node2 -> Node3 [id="edge2_Node000002_Node000003",color="steelblue1",style="solid",tooltip=" "];
+ Node3 [id="Node000003",label="../include/function.h",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$function_8h_source.html",tooltip=" "];
+ Node3 -> Node4 [id="edge3_Node000003_Node000004",color="steelblue1",style="solid",tooltip=" "];
+ Node4 [id="Node000004",label="SDL2/SDL.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
+ Node3 -> Node5 [id="edge4_Node000003_Node000005",color="steelblue1",style="solid",tooltip=" "];
+ Node5 [id="Node000005",label="SDL2/SDL_render.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
+ Node3 -> Node6 [id="edge5_Node000003_Node000006",color="steelblue1",style="solid",tooltip=" "];
+ Node6 [id="Node000006",label="SDL2/SDL_video.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
+ Node3 -> Node7 [id="edge6_Node000003_Node000007",color="steelblue1",style="solid",tooltip=" "];
+ Node7 [id="Node000007",label="stdbool.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
+ Node3 -> Node8 [id="edge7_Node000003_Node000008",color="steelblue1",style="solid",tooltip=" "];
+ Node8 [id="Node000008",label="stdlib.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
+ Node3 -> Node9 [id="edge8_Node000003_Node000009",color="steelblue1",style="solid",tooltip=" "];
+ Node9 [id="Node000009",label="time.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
+ Node2 -> Node4 [id="edge9_Node000002_Node000004",color="steelblue1",style="solid",tooltip=" "];
+ Node2 -> Node10 [id="edge10_Node000002_Node000010",color="steelblue1",style="solid",tooltip=" "];
+ Node10 [id="Node000010",label="SDL2/SDL_ttf.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
+ Node1 -> Node3 [id="edge11_Node000001_Node000003",color="steelblue1",style="solid",tooltip=" "];
+ Node1 -> Node4 [id="edge12_Node000001_Node000004",color="steelblue1",style="solid",tooltip=" "];
+ Node1 -> Node11 [id="edge13_Node000001_Node000011",color="steelblue1",style="solid",tooltip=" "];
+ Node11 [id="Node000011",label="SDL2/SDL_image.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
+ Node1 -> Node12 [id="edge14_Node000001_Node000012",color="steelblue1",style="solid",tooltip=" "];
+ Node12 [id="Node000012",label="SDL2/SDL_mutex.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
+ Node1 -> Node13 [id="edge15_Node000001_Node000013",color="steelblue1",style="solid",tooltip=" "];
+ Node13 [id="Node000013",label="SDL2/SDL_mixer.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
+ Node1 -> Node14 [id="edge16_Node000001_Node000014",color="steelblue1",style="solid",tooltip=" "];
+ Node14 [id="Node000014",label="SDL2/SDL_rect.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
+ Node1 -> Node5 [id="edge17_Node000001_Node000005",color="steelblue1",style="solid",tooltip=" "];
+ Node1 -> Node15 [id="edge18_Node000001_Node000015",color="steelblue1",style="solid",tooltip=" "];
+ Node15 [id="Node000015",label="SDL2/SDL_surface.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
+ Node1 -> Node10 [id="edge19_Node000001_Node000010",color="steelblue1",style="solid",tooltip=" "];
+ Node1 -> Node16 [id="edge20_Node000001_Node000016",color="steelblue1",style="solid",tooltip=" "];
+ Node16 [id="Node000016",label="stdio.h",height=0.2,width=0.4,color="grey60", fillcolor="#E0E0E0", style="filled",tooltip=" "];
+ Node1 -> Node8 [id="edge21_Node000001_Node000008",color="steelblue1",style="solid",tooltip=" "];
+}
diff --git a/rapport/html/display_8c_a4f8faee5abaa49fb784df75266472278_cgraph.dot b/rapport/html/display_8c_a4f8faee5abaa49fb784df75266472278_cgraph.dot
new file mode 100644
index 0000000..810778f
--- /dev/null
+++ b/rapport/html/display_8c_a4f8faee5abaa49fb784df75266472278_cgraph.dot
@@ -0,0 +1,11 @@
+digraph "screenDisplayGameSDL"
+{
+ // LATEX_PDF_SIZE
+ bgcolor="transparent";
+ edge [fontname=Helvetica,fontsize=10,labelfontname=Helvetica,labelfontsize=10];
+ node [fontname=Helvetica,fontsize=10,shape=box,height=0.2,width=0.4];
+ rankdir="LR";
+ Node1 [id="Node000001",label="screenDisplayGameSDL",height=0.2,width=0.4,color="gray40", fillcolor="grey60", style="filled", fontcolor="black",tooltip="La fonction affiche a l'aide de SDL la zone de jeu."];
+ Node1 -> Node2 [id="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."];
+}
diff --git a/rapport/html/display_8c_a81a2b2da875550c614a407ec735ff9d9_icgraph.dot b/rapport/html/display_8c_a81a2b2da875550c614a407ec735ff9d9_icgraph.dot
index d20f98e..adbc925 100644
--- a/rapport/html/display_8c_a81a2b2da875550c614a407ec735ff9d9_icgraph.dot
+++ b/rapport/html/display_8c_a81a2b2da875550c614a407ec735ff9d9_icgraph.dot
@@ -7,5 +7,7 @@ digraph "displayImage"
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="screenDisplayGameSDL",height=0.2,width=0.4,color="grey40", fillcolor="white", style="filled",URL="$display_8c.html#a9ed2db696b902038cc72feee1d0c30f3",tooltip="La fonction affiche a l'aide de SDL la zone de jeu."];
+ 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
new file mode 100644
index 0000000..c9b72dd
--- /dev/null
+++ b/rapport/html/display_8c_adc264e6abc61064a8222b53822850cdd_cgraph.dot
@@ -0,0 +1,11 @@
+digraph "backgroundDisplay"
+{
+ // 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="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."];
+}
diff --git a/rapport/html/display_8h_source.html b/rapport/html/display_8h_source.html
index 8251473..1e2fa05 100644
--- a/rapport/html/display_8h_source.html
+++ b/rapport/html/display_8h_source.html
@@ -99,16 +99,20 @@ $(function(){ initResizable(false); });
6#include <SDL2/SDL_ttf.h>
- 8void screenDisplay (
char **tab,
int x,
int y);
- 9int getMaxSize (dis display_user);
- 10void displayImage (SDL_Renderer *renderer, SDL_Texture *texture, vect pos,
-
- 12void initSDL (dis *display_user);
- 13void displayTextSDL(dis *display_user,
char *text, vect coor, vect size,
int font_size);
- 14void screenDisplayGameSDL (
char **tab,vect dim_tab, dis *display_user, vect *player_pos,
int fov);
-
-
-
+
+
+ 10extern unsigned int seed;
+ 11void screenDisplay (
char **tab,
int x,
int y);
+ 12int getMaxSize (dis display_user);
+ 13void displayImage (SDL_Renderer *renderer, SDL_Texture *texture, vect pos,
+
+ 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);
+ 18void backgroundDisplay(dis *display_user,
int bg);
+ 19void playAudio(
int sfx);
+
+