\hypertarget{jennyfer_8c}{\section{jennyfer.\-c File Reference}
\label{jennyfer_8c}\index{jennyfer.\-c@{jennyfer.\-c}}
}


Définit le personnage jennyfer ainsi que toutes les actions possibles.  


{\ttfamily \#include $<$stdio.\-h$>$}\\*
{\ttfamily \#include $<$stdlib.\-h$>$}\\*
{\ttfamily \#include $<$allegro.\-h$>$}\\*
{\ttfamily \#include \char`\"{}background.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}chien.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}collision.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}jennyfer.\-h\char`\"{}}\\*
Include dependency graph for jennyfer.\-c\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{jennyfer_8c__incl}
\end{center}
\end{figure}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\hypertarget{jennyfer_8c_a6badd589a4fb5037e007d7791f40479d}{\#define {\bfseries G\-F\-X\-\_\-\-W}~642}\label{jennyfer_8c_a6badd589a4fb5037e007d7791f40479d}

\item 
\hypertarget{jennyfer_8c_a2bf4bee37b9d163f01b8b8d48ff6867a}{\#define {\bfseries G\-F\-X\-\_\-\-H}~450}\label{jennyfer_8c_a2bf4bee37b9d163f01b8b8d48ff6867a}

\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{jennyfer_8c_aa1186ba504a3cdb4feb1e9bf44484baf}{load\-\_\-jennyfer} (\hyperlink{structjennyfer}{jennyfer} $\ast$jenn)
\item 
void \hyperlink{jennyfer_8c_a5b1df56e6b942d88f4cecd7ddc258c32}{destroy\-\_\-jennyfer} (\hyperlink{structjennyfer}{jennyfer} $\ast$jenn)
\item 
void \hyperlink{jennyfer_8c_a0613849c01d6b160c3867ab1bef83c39}{init\-\_\-jennyfer} (\hyperlink{structjennyfer}{jennyfer} $\ast$jenn)
\item 
void \hyperlink{jennyfer_8c_ab0c508d697cbeeaab6d2443b1e9887e6}{move\-\_\-jennyfer\-\_\-right} (\hyperlink{structjennyfer}{jennyfer} $\ast$jenn, int $\ast$compteur, B\-I\-T\-M\-A\-P $\ast$Background)
\item 
void \hyperlink{jennyfer_8c_ad9f66377d8bc94227e4fda3472c65099}{move\-\_\-jennyfer\-\_\-left} (\hyperlink{structjennyfer}{jennyfer} $\ast$jenn, int $\ast$compteur, B\-I\-T\-M\-A\-P $\ast$Background)
\item 
\hypertarget{jennyfer_8c_a4cfae304d45294f763b9d5e12ae5b2e4}{void {\bfseries jump\-\_\-jennyfer} (\hyperlink{structjennyfer}{jennyfer} $\ast$jenn, B\-I\-T\-M\-A\-P $\ast$Background)}\label{jennyfer_8c_a4cfae304d45294f763b9d5e12ae5b2e4}

\item 
\hypertarget{jennyfer_8c_aee69b3d546ecd383d7d89ced61dfefd7}{void {\bfseries move\-\_\-jennyfer\-\_\-gramp} (\hyperlink{structjennyfer}{jennyfer} $\ast$jenn, int $\ast$compteur)}\label{jennyfer_8c_aee69b3d546ecd383d7d89ced61dfefd7}

\item 
void \hyperlink{jennyfer_8c_a44ecc28b5dee7b75f3918909ab8e67d0}{bow\-\_\-jennyfer} (\hyperlink{structjennyfer}{jennyfer} $\ast$jenn, B\-I\-T\-M\-A\-P $\ast$Background)
\item 
void \hyperlink{jennyfer_8c_ace6bc346cd1420b08477518a88716044}{move\-\_\-jennyfer} (\hyperlink{structjennyfer}{jennyfer} $\ast$jenn, int $\ast$compteur, B\-I\-T\-M\-A\-P $\ast$Background)
\item 
\hypertarget{jennyfer_8c_aa4d661f1c70101baa6bbcaba8b2d9d49}{void {\bfseries gravity} (int $\ast$y)}\label{jennyfer_8c_aa4d661f1c70101baa6bbcaba8b2d9d49}

\item 
void \hyperlink{jennyfer_8c_ab62b1bd18b52fd3a053d99bb28546fed}{gravity\-\_\-jennyfer} (\hyperlink{structjennyfer}{jennyfer} $\ast$jenn, B\-I\-T\-M\-A\-P $\ast$Background)
\item 
void \hyperlink{jennyfer_8c_ab7f1d9826571d3f8509cc62a7ca0b48f}{draw\-\_\-jennyfer} (\hyperlink{structjennyfer}{jennyfer} jenn, B\-I\-T\-M\-A\-P $\ast$Buffer, int compteur)
\begin{DoxyCompactList}\small\item\em on utilise la fonction draw\-\_\-sprite pour l'affichage des sprites \end{DoxyCompactList}\item 
\hypertarget{jennyfer_8c_a7eb4149b85bb2a41a12e846d2af166d5}{void {\bfseries throw} (int $\ast$s)}\label{jennyfer_8c_a7eb4149b85bb2a41a12e846d2af166d5}

\item 
void \hyperlink{jennyfer_8c_a478067346da0a750e1c1ea04964f122e}{blood} (B\-I\-T\-M\-A\-P $\ast$B\-L\-O\-O\-D, B\-I\-T\-M\-A\-P $\ast$Buffer, \hyperlink{structjennyfer}{jennyfer} $\ast$jenn, int $\ast$k)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Définit le personnage jennyfer ainsi que toutes les actions possibles. \begin{DoxyAuthor}{Author}
fatma \& omar $<$3 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
1.\-0 
\end{DoxyVersion}
\begin{DoxyDate}{Date}
20 mai 2013 
\end{DoxyDate}


\subsection{Function Documentation}
\hypertarget{jennyfer_8c_a478067346da0a750e1c1ea04964f122e}{\index{jennyfer.\-c@{jennyfer.\-c}!blood@{blood}}
\index{blood@{blood}!jennyfer.c@{jennyfer.\-c}}
\subsubsection[{blood}]{\setlength{\rightskip}{0pt plus 5cm}void blood (
\begin{DoxyParamCaption}
\item[{B\-I\-T\-M\-A\-P $\ast$}]{B\-L\-O\-O\-D, }
\item[{B\-I\-T\-M\-A\-P $\ast$}]{Buffer, }
\item[{{\bf jennyfer} $\ast$}]{jenn, }
\item[{int $\ast$}]{k}
\end{DoxyParamCaption}
)}}\label{jennyfer_8c_a478067346da0a750e1c1ea04964f122e}
L'affihage de la barre d'energie dans chaque Background 
\begin{DoxyParams}{Parameters}
{\em jenn} & Un pointeur sur la structure jennyfer, Buffer memoire ou se charge les images $\ast$\-B\-L\-O\-O\-D de type B\-I\-T\-M\-A\-P elle stocke la dernière image chargè $\ast$k son adress nous permet le passae d'une image d'energie a une autre \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=194pt]{jennyfer_8c_a478067346da0a750e1c1ea04964f122e_icgraph}
\end{center}
\end{figure}


\hypertarget{jennyfer_8c_a44ecc28b5dee7b75f3918909ab8e67d0}{\index{jennyfer.\-c@{jennyfer.\-c}!bow\-\_\-jennyfer@{bow\-\_\-jennyfer}}
\index{bow\-\_\-jennyfer@{bow\-\_\-jennyfer}!jennyfer.c@{jennyfer.\-c}}
\subsubsection[{bow\-\_\-jennyfer}]{\setlength{\rightskip}{0pt plus 5cm}void bow\-\_\-jennyfer (
\begin{DoxyParamCaption}
\item[{{\bf jennyfer} $\ast$}]{jenn, }
\item[{B\-I\-T\-M\-A\-P $\ast$}]{Background}
\end{DoxyParamCaption}
)}}\label{jennyfer_8c_a44ecc28b5dee7b75f3918909ab8e67d0}
elle permet au perso de se dèplacer vers la bas 
\begin{DoxyParams}{Parameters}
{\em jenn} & Un pointeur sur la structure jennyfer \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=344pt]{jennyfer_8c_a44ecc28b5dee7b75f3918909ab8e67d0_icgraph}
\end{center}
\end{figure}


\hypertarget{jennyfer_8c_a5b1df56e6b942d88f4cecd7ddc258c32}{\index{jennyfer.\-c@{jennyfer.\-c}!destroy\-\_\-jennyfer@{destroy\-\_\-jennyfer}}
\index{destroy\-\_\-jennyfer@{destroy\-\_\-jennyfer}!jennyfer.c@{jennyfer.\-c}}
\subsubsection[{destroy\-\_\-jennyfer}]{\setlength{\rightskip}{0pt plus 5cm}void destroy\-\_\-jennyfer (
\begin{DoxyParamCaption}
\item[{{\bf jennyfer} $\ast$}]{jenn}
\end{DoxyParamCaption}
)}}\label{jennyfer_8c_a5b1df56e6b942d88f4cecd7ddc258c32}
il ecrase ce qu'il y'a dans le Buffer 
\begin{DoxyParams}{Parameters}
{\em jenn} & Un pointeur sur la structure jennyfer \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=244pt]{jennyfer_8c_a5b1df56e6b942d88f4cecd7ddc258c32_icgraph}
\end{center}
\end{figure}


\hypertarget{jennyfer_8c_ab7f1d9826571d3f8509cc62a7ca0b48f}{\index{jennyfer.\-c@{jennyfer.\-c}!draw\-\_\-jennyfer@{draw\-\_\-jennyfer}}
\index{draw\-\_\-jennyfer@{draw\-\_\-jennyfer}!jennyfer.c@{jennyfer.\-c}}
\subsubsection[{draw\-\_\-jennyfer}]{\setlength{\rightskip}{0pt plus 5cm}void draw\-\_\-jennyfer (
\begin{DoxyParamCaption}
\item[{{\bf jennyfer}}]{jenn, }
\item[{B\-I\-T\-M\-A\-P $\ast$}]{Buffer, }
\item[{int}]{compteur}
\end{DoxyParamCaption}
)}}\label{jennyfer_8c_ab7f1d9826571d3f8509cc62a7ca0b48f}


on utilise la fonction draw\-\_\-sprite pour l'affichage des sprites 

elle permet l'affichage du perso selon sa direction et son mouvement 
\begin{DoxyParams}{Parameters}
{\em jenn} & de type jennyfer , Buffer qui est la memoire ou se charge les images compteur aide pour l'affichage et le passage d'une image a une autre il est de type int \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=232pt]{jennyfer_8c_ab7f1d9826571d3f8509cc62a7ca0b48f_icgraph}
\end{center}
\end{figure}


\hypertarget{jennyfer_8c_ab62b1bd18b52fd3a053d99bb28546fed}{\index{jennyfer.\-c@{jennyfer.\-c}!gravity\-\_\-jennyfer@{gravity\-\_\-jennyfer}}
\index{gravity\-\_\-jennyfer@{gravity\-\_\-jennyfer}!jennyfer.c@{jennyfer.\-c}}
\subsubsection[{gravity\-\_\-jennyfer}]{\setlength{\rightskip}{0pt plus 5cm}void gravity\-\_\-jennyfer (
\begin{DoxyParamCaption}
\item[{{\bf jennyfer} $\ast$}]{jenn, }
\item[{B\-I\-T\-M\-A\-P $\ast$}]{Background}
\end{DoxyParamCaption}
)}}\label{jennyfer_8c_ab62b1bd18b52fd3a053d99bb28546fed}
elle permet au perso d'avoir une gravitè 
\begin{DoxyParams}{Parameters}
{\em jenn} & Un pointeur sur la structure jennyfer \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{jennyfer_8c_ab62b1bd18b52fd3a053d99bb28546fed_icgraph}
\end{center}
\end{figure}


\hypertarget{jennyfer_8c_a0613849c01d6b160c3867ab1bef83c39}{\index{jennyfer.\-c@{jennyfer.\-c}!init\-\_\-jennyfer@{init\-\_\-jennyfer}}
\index{init\-\_\-jennyfer@{init\-\_\-jennyfer}!jennyfer.c@{jennyfer.\-c}}
\subsubsection[{init\-\_\-jennyfer}]{\setlength{\rightskip}{0pt plus 5cm}void init\-\_\-jennyfer (
\begin{DoxyParamCaption}
\item[{{\bf jennyfer} $\ast$}]{jenn}
\end{DoxyParamCaption}
)}}\label{jennyfer_8c_a0613849c01d6b160c3867ab1bef83c39}
Les champs direction et position(x,y) sont initialisés avant que le programme entre dans la boucle de jeu 
\begin{DoxyParams}{Parameters}
{\em jenn} & Un pointeur sur la structure jennyfer \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=224pt]{jennyfer_8c_a0613849c01d6b160c3867ab1bef83c39_icgraph}
\end{center}
\end{figure}


\hypertarget{jennyfer_8c_aa1186ba504a3cdb4feb1e9bf44484baf}{\index{jennyfer.\-c@{jennyfer.\-c}!load\-\_\-jennyfer@{load\-\_\-jennyfer}}
\index{load\-\_\-jennyfer@{load\-\_\-jennyfer}!jennyfer.c@{jennyfer.\-c}}
\subsubsection[{load\-\_\-jennyfer}]{\setlength{\rightskip}{0pt plus 5cm}void load\-\_\-jennyfer (
\begin{DoxyParamCaption}
\item[{{\bf jennyfer} $\ast$}]{jenn}
\end{DoxyParamCaption}
)}}\label{jennyfer_8c_aa1186ba504a3cdb4feb1e9bf44484baf}
chargement des images 
\begin{DoxyParams}{Parameters}
{\em jenn} & Un pointeur sur la structure jennyfer \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=228pt]{jennyfer_8c_aa1186ba504a3cdb4feb1e9bf44484baf_icgraph}
\end{center}
\end{figure}


\hypertarget{jennyfer_8c_ace6bc346cd1420b08477518a88716044}{\index{jennyfer.\-c@{jennyfer.\-c}!move\-\_\-jennyfer@{move\-\_\-jennyfer}}
\index{move\-\_\-jennyfer@{move\-\_\-jennyfer}!jennyfer.c@{jennyfer.\-c}}
\subsubsection[{move\-\_\-jennyfer}]{\setlength{\rightskip}{0pt plus 5cm}void move\-\_\-jennyfer (
\begin{DoxyParamCaption}
\item[{{\bf jennyfer} $\ast$}]{jenn, }
\item[{int $\ast$}]{compteur, }
\item[{B\-I\-T\-M\-A\-P $\ast$}]{Background}
\end{DoxyParamCaption}
)}}\label{jennyfer_8c_ace6bc346cd1420b08477518a88716044}
elle permet au perso de se dèplacer , elle fait appel au 5 fonctions 
\begin{DoxyParams}{Parameters}
{\em jenn} & Un pointeur sur la structure jennyfer compteur son adresse aide pour le passage d'une image a une autre il est de type int \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Here is the call graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=300pt]{jennyfer_8c_ace6bc346cd1420b08477518a88716044_cgraph}
\end{center}
\end{figure}




Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=234pt]{jennyfer_8c_ace6bc346cd1420b08477518a88716044_icgraph}
\end{center}
\end{figure}


\hypertarget{jennyfer_8c_ad9f66377d8bc94227e4fda3472c65099}{\index{jennyfer.\-c@{jennyfer.\-c}!move\-\_\-jennyfer\-\_\-left@{move\-\_\-jennyfer\-\_\-left}}
\index{move\-\_\-jennyfer\-\_\-left@{move\-\_\-jennyfer\-\_\-left}!jennyfer.c@{jennyfer.\-c}}
\subsubsection[{move\-\_\-jennyfer\-\_\-left}]{\setlength{\rightskip}{0pt plus 5cm}void move\-\_\-jennyfer\-\_\-left (
\begin{DoxyParamCaption}
\item[{{\bf jennyfer} $\ast$}]{jenn, }
\item[{int $\ast$}]{compteur, }
\item[{B\-I\-T\-M\-A\-P $\ast$}]{Background}
\end{DoxyParamCaption}
)}}\label{jennyfer_8c_ad9f66377d8bc94227e4fda3472c65099}
elle permet au perso de se dèplacer vers la gauche 
\begin{DoxyParams}{Parameters}
{\em jenn} & Un pointeur sur la structure jennyfer compteur son adresse aide pour le passage d'une image a une autre il est de type int \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{jennyfer_8c_ad9f66377d8bc94227e4fda3472c65099_icgraph}
\end{center}
\end{figure}


\hypertarget{jennyfer_8c_ab0c508d697cbeeaab6d2443b1e9887e6}{\index{jennyfer.\-c@{jennyfer.\-c}!move\-\_\-jennyfer\-\_\-right@{move\-\_\-jennyfer\-\_\-right}}
\index{move\-\_\-jennyfer\-\_\-right@{move\-\_\-jennyfer\-\_\-right}!jennyfer.c@{jennyfer.\-c}}
\subsubsection[{move\-\_\-jennyfer\-\_\-right}]{\setlength{\rightskip}{0pt plus 5cm}void move\-\_\-jennyfer\-\_\-right (
\begin{DoxyParamCaption}
\item[{{\bf jennyfer} $\ast$}]{jenn, }
\item[{int $\ast$}]{compteur, }
\item[{B\-I\-T\-M\-A\-P $\ast$}]{Background}
\end{DoxyParamCaption}
)}}\label{jennyfer_8c_ab0c508d697cbeeaab6d2443b1e9887e6}
elle permet au perso de se dèplacer vers la droite 
\begin{DoxyParams}{Parameters}
{\em jenn} & Un pointeur sur la structure jennyfer compteur son adresse aide pour le passage d'une image a une autre il est de type int \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
void 
\end{DoxyReturn}


Here is the caller graph for this function\-:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{jennyfer_8c_ab0c508d697cbeeaab6d2443b1e9887e6_icgraph}
\end{center}
\end{figure}


