\hypertarget{class_pixel_manager}{}\doxysection{Pixel\+Manager Class Reference}
\label{class_pixel_manager}\index{PixelManager@{PixelManager}}


main display function, clear the window and calls sub display functions  




{\ttfamily \#include $<$pixel\+Manager.\+h$>$}



Inheritance diagram for Pixel\+Manager\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=178pt]{d3/d1f/class_pixel_manager__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for Pixel\+Manager\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=197pt]{dc/dbb/class_pixel_manager__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \mbox{\hyperlink{class_pixel_manager_a0b28e70e108b042497d483ce85ce5b0e}{load\+Sprites}} (vector$<$ \mbox{\hyperlink{utils_8h_a7a271d55f100974f7703690edbaca2e2}{Task}} $>$ \&tasks)
\begin{DoxyCompactList}\small\item\em loads sprites in parallel using multiple threads \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_pixel_manager_a199102dfb3ddb3995233ff632a7475dc}{Pixel\+Manager}} (Min\+GL \&\mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}})
\begin{DoxyCompactList}\small\item\em constructor the pixel manager class \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_pixel_manager_a880e77f06534c6c442eaea11435a4ea2}{draw\+InvaderA}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&base\+Vector, unsigned size, const RGBAcolor \&color) const
\begin{DoxyCompactList}\small\item\em display a type A invader on screen \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_pixel_manager_a42547d00bfa01b73a8c20ad303ca7f8e}{draw\+InvaderB}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&base\+Vector, unsigned size, const RGBAcolor \&color) const
\begin{DoxyCompactList}\small\item\em display a type B invader on screen \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_pixel_manager_ad175ee24cc72012918e6ba03fe6c759c}{draw\+InvaderC}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&base\+Vector, unsigned size, const RGBAcolor \&color) const
\begin{DoxyCompactList}\small\item\em display a type C invader on screen \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_pixel_manager_a293ef94a41a86b8ef61bde85a6b024c2}{draw\+Player}} (\mbox{\hyperlink{utils_8h_a19f2f2312637b6ed67b6d24598b6f470}{player\+ID}} p\+ID, unsigned x, unsigned width, const ns\+Graphics\+::\+RGBAcolor \&color) const
\begin{DoxyCompactList}\small\item\em display a player on screen \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_pixel_manager_a401d8dbd71beec02e8860ead4b8ddcd4}{draw\+Missile}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&base\+Vector, unsigned width, const ns\+Graphics\+::\+RGBAcolor \&color) const
\begin{DoxyCompactList}\small\item\em display a missile on screen \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_pixel_manager_a76579bc40dcabd2c21dda1b1b4f9495c}{draw\+Torpedo}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&base\+Vector, unsigned width, const ns\+Graphics\+::\+RGBAcolor \&color) const
\begin{DoxyCompactList}\small\item\em display a torpedo on screen \end{DoxyCompactList}\item 
virtual void \mbox{\hyperlink{class_pixel_manager_a70d916c90738dba58f11cac8faf3cac4}{draw\+Heart}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&base\+Vector) const
\begin{DoxyCompactList}\small\item\em display a singular heart on screen \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_pixel_manager_a1aa725d6d04cce92ce8d43d58175e28f}{draw\+Sprite}} (const \mbox{\hyperlink{class_my_sprite}{My\+Sprite}} \&msp, const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&pos) const
\begin{DoxyCompactList}\small\item\em display a sprite on screen \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_pixel_manager_a3931894fc3a88e00c4c33e12c2be1aac}{display\+Button}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&base\+Vector, const string \&text, ns\+Graphics\+::\+RGBAcolor \&color)
\begin{DoxyCompactList}\small\item\em display a menu button on screen \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_pixel_manager_a402e04eeae1dfe23f8da76a0bb1770a5}{draw\+Text}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&pos, const string \&text, const RGBAcolor \&color=ns\+Graphics\+::\+KWhite, \mbox{\hyperlink{pixel_manager_8h_a32c314fdd1d3f009560ba58e17859d63}{Font}} font=Font\+::\+BITMAP\+\_\+\+TIMES\+\_\+\+ROMAN\+\_\+24) const
\begin{DoxyCompactList}\small\item\em display text on screen \end{DoxyCompactList}\item 
\mbox{\hyperlink{play_mode_8h_a188092ed559d356ade9a517d60ec3f34}{Play\+Mode}} \mbox{\hyperlink{class_pixel_manager_a30c8c220730ef121c78b6ff9b3a941d3}{show\+Initial\+Menu}} ()
\begin{DoxyCompactList}\small\item\em show the title screen of the game \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_pixel_manager_aca51fa0a1ef8ac59076669ac68c7e152}{show\+Death\+Menu}} (const vector$<$ \mbox{\hyperlink{struct_score_link}{Score\+Link}} $>$ \&rankings, const \mbox{\hyperlink{utils_8h_acd2eabcda2cfc7902077f1f9a9e318de}{Win\+Value}} \&winner)
\begin{DoxyCompactList}\small\item\em show the menu after a player lose, or all invader has been defeated \end{DoxyCompactList}\item 
unsigned \mbox{\hyperlink{class_pixel_manager_a69a986401035a12c8e12a015b7ac250a}{get\+Screen\+Height}} () const
\begin{DoxyCompactList}\small\item\em give the height of the screen \end{DoxyCompactList}\item 
unsigned \mbox{\hyperlink{class_pixel_manager_a755b819d8edf14edcd0d87d5fd3966fd}{get\+Screen\+Width}} () const
\begin{DoxyCompactList}\small\item\em give the width of the screen \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_pixel_manager_a061f872b418537446952b17533ff02d6}{start\+Frame}} () const
\begin{DoxyCompactList}\small\item\em clear the screen for a new frame \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_pixel_manager_a39a1801e2c89c10c6a5c9ef33c83e8ec}{end\+Frame}} () const
\begin{DoxyCompactList}\small\item\em finish a frame render \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_pixel_manager_aff5bd3e9f79200dbb2e7c0a5b9346625}{ask\+Player\+Name\+Menu}} (\mbox{\hyperlink{utils_8h_a19f2f2312637b6ed67b6d24598b6f470}{player\+ID}} p\+ID, unsigned score, string \&name)
\begin{DoxyCompactList}\small\item\em display the player name selection menu \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_pixel_manager_a3e7390472c4a79482b10b36ccde0b1f4}{draw\+God\+Bench}} (int y) const
\begin{DoxyCompactList}\small\item\em display god\textquotesingle{}s bar \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_pixel_manager_a14f4569284c7b0ba9d75738600494402}{draw\+God\+Face}} (int y, bool angry=false) const
\begin{DoxyCompactList}\small\item\em display god\textquotesingle{}s face \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
Min\+GL \& \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}}
\begin{DoxyCompactList}\small\item\em display window \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_my_sprite}{My\+Sprite}} \mbox{\hyperlink{class_pixel_manager_aa108cd115eedc01b2076844b96bc076f}{logo}}
\begin{DoxyCompactList}\small\item\em sprite of the logo of the game \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_my_sprite}{My\+Sprite}} \mbox{\hyperlink{class_pixel_manager_a297c927d2c069c1da7d34d15b11d481d}{menu\+Background}}
\begin{DoxyCompactList}\small\item\em sprite of the background during menu \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_my_sprite}{My\+Sprite}} \mbox{\hyperlink{class_pixel_manager_ad36fc234b6025da179c02d0845df74d8}{game\+Background}}
\begin{DoxyCompactList}\small\item\em sprite of the background during gameplay \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_my_sprite}{My\+Sprite}} \mbox{\hyperlink{class_pixel_manager_a336e6c4321df17aba4b59d07732f051d}{right\+Hand}}
\begin{DoxyCompactList}\small\item\em sprite of the right hand of god \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_my_sprite}{My\+Sprite}} \mbox{\hyperlink{class_pixel_manager_a0993ba3b7fc6f772c606015a531a33bc}{left\+Hand}}
\begin{DoxyCompactList}\small\item\em sprite of the left hand of god \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
main display function, clear the window and calls sub display functions 

Definition at line \mbox{\hyperlink{pixel_manager_8h_source_l00045}{45}} of file \mbox{\hyperlink{pixel_manager_8h_source}{pixel\+Manager.\+h}}.



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_pixel_manager_a199102dfb3ddb3995233ff632a7475dc}\label{class_pixel_manager_a199102dfb3ddb3995233ff632a7475dc}} 
\index{PixelManager@{PixelManager}!PixelManager@{PixelManager}}
\index{PixelManager@{PixelManager}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{PixelManager()}{PixelManager()}}
{\footnotesize\ttfamily Pixel\+Manager\+::\+Pixel\+Manager (\begin{DoxyParamCaption}\item[{Min\+GL \&}]{window }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [explicit]}}



constructor the pixel manager class 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em window} & \+: window of the pixel manager \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_entities_8cpp_source_l00022}{22}} of file \mbox{\hyperlink{draw_entities_8cpp_source}{draw\+Entities.\+cpp}}.



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_pixel_manager_aff5bd3e9f79200dbb2e7c0a5b9346625}\label{class_pixel_manager_aff5bd3e9f79200dbb2e7c0a5b9346625}} 
\index{PixelManager@{PixelManager}!askPlayerNameMenu@{askPlayerNameMenu}}
\index{askPlayerNameMenu@{askPlayerNameMenu}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{askPlayerNameMenu()}{askPlayerNameMenu()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::ask\+Player\+Name\+Menu (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{utils_8h_a19f2f2312637b6ed67b6d24598b6f470}{player\+ID}}}]{p\+ID,  }\item[{unsigned}]{score,  }\item[{string \&}]{name }\end{DoxyParamCaption})}



display the player name selection menu 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em p\+ID} & \+: player id \\
\hline
\mbox{\texttt{ in}}  & {\em score} & \+: score of this player \\
\hline
\mbox{\texttt{ out}}  & {\em name} & \+: name selected by the player \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_menus_8cpp_source_l00108}{108}} of file \mbox{\hyperlink{draw_menus_8cpp_source}{draw\+Menus.\+cpp}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_aff5bd3e9f79200dbb2e7c0a5b9346625_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{class_pixel_manager_a3931894fc3a88e00c4c33e12c2be1aac}\label{class_pixel_manager_a3931894fc3a88e00c4c33e12c2be1aac}} 
\index{PixelManager@{PixelManager}!displayButton@{displayButton}}
\index{displayButton@{displayButton}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{displayButton()}{displayButton()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::display\+Button (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&}]{base\+Vector,  }\item[{const string \&}]{text,  }\item[{ns\+Graphics\+::\+RGBAcolor \&}]{color }\end{DoxyParamCaption})}



display a menu button on screen 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em base\+Vector} & \+: pixel coordinates of the button \\
\hline
\mbox{\texttt{ in}}  & {\em text} & \+: text inside the button \\
\hline
\mbox{\texttt{ in}}  & {\em color} & \+: color of the text inside the button \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_menus_8cpp_source_l00022}{22}} of file \mbox{\hyperlink{draw_menus_8cpp_source}{draw\+Menus.\+cpp}}.

\mbox{\Hypertarget{class_pixel_manager_a3e7390472c4a79482b10b36ccde0b1f4}\label{class_pixel_manager_a3e7390472c4a79482b10b36ccde0b1f4}} 
\index{PixelManager@{PixelManager}!drawGodBench@{drawGodBench}}
\index{drawGodBench@{drawGodBench}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{drawGodBench()}{drawGodBench()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::draw\+God\+Bench (\begin{DoxyParamCaption}\item[{int}]{y }\end{DoxyParamCaption}) const}



display god\textquotesingle{}s bar 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em y} & \+: god y pixel position \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_entities_8cpp_source_l00087}{87}} of file \mbox{\hyperlink{draw_entities_8cpp_source}{draw\+Entities.\+cpp}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_a3e7390472c4a79482b10b36ccde0b1f4_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{class_pixel_manager_a14f4569284c7b0ba9d75738600494402}\label{class_pixel_manager_a14f4569284c7b0ba9d75738600494402}} 
\index{PixelManager@{PixelManager}!drawGodFace@{drawGodFace}}
\index{drawGodFace@{drawGodFace}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{drawGodFace()}{drawGodFace()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::draw\+God\+Face (\begin{DoxyParamCaption}\item[{int}]{y,  }\item[{bool}]{angry = {\ttfamily false} }\end{DoxyParamCaption}) const}



display god\textquotesingle{}s face 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em y} & \+: god\textquotesingle{}s face y pixel position \\
\hline
\mbox{\texttt{ in}}  & {\em angry} & \+: flag if god is angry or not \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_entities_8cpp_source_l00091}{91}} of file \mbox{\hyperlink{draw_entities_8cpp_source}{draw\+Entities.\+cpp}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_a14f4569284c7b0ba9d75738600494402_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{class_pixel_manager_a70d916c90738dba58f11cac8faf3cac4}\label{class_pixel_manager_a70d916c90738dba58f11cac8faf3cac4}} 
\index{PixelManager@{PixelManager}!drawHeart@{drawHeart}}
\index{drawHeart@{drawHeart}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{drawHeart()}{drawHeart()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::draw\+Heart (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&}]{base\+Vector }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



display a singular heart on screen 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em base\+Vector} & \+: pixel coordinates of the heart \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_entities_8cpp_source_l00027}{27}} of file \mbox{\hyperlink{draw_entities_8cpp_source}{draw\+Entities.\+cpp}}.

\mbox{\Hypertarget{class_pixel_manager_a880e77f06534c6c442eaea11435a4ea2}\label{class_pixel_manager_a880e77f06534c6c442eaea11435a4ea2}} 
\index{PixelManager@{PixelManager}!drawInvaderA@{drawInvaderA}}
\index{drawInvaderA@{drawInvaderA}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{drawInvaderA()}{drawInvaderA()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::draw\+InvaderA (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&}]{base\+Vector,  }\item[{unsigned}]{size,  }\item[{const RGBAcolor \&}]{color }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



display a type A invader on screen 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em base\+Vector} & \+: pixel coordinate of the invader \\
\hline
\mbox{\texttt{ in}}  & {\em size} & \+: size multiplicator of the invader \\
\hline
\mbox{\texttt{ in}}  & {\em color} & \+: color multiplicaror of the invader \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_entities_8cpp_source_l00033}{33}} of file \mbox{\hyperlink{draw_entities_8cpp_source}{draw\+Entities.\+cpp}}.

\mbox{\Hypertarget{class_pixel_manager_a42547d00bfa01b73a8c20ad303ca7f8e}\label{class_pixel_manager_a42547d00bfa01b73a8c20ad303ca7f8e}} 
\index{PixelManager@{PixelManager}!drawInvaderB@{drawInvaderB}}
\index{drawInvaderB@{drawInvaderB}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{drawInvaderB()}{drawInvaderB()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::draw\+InvaderB (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&}]{base\+Vector,  }\item[{unsigned}]{size,  }\item[{const RGBAcolor \&}]{color }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



display a type B invader on screen 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em base\+Vector} & \+: pixel coordinate of the invader \\
\hline
\mbox{\texttt{ in}}  & {\em size} & \+: size multiplicator of the invader \\
\hline
\mbox{\texttt{ in}}  & {\em color} & \+: color multiplicaror of the invader \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_entities_8cpp_source_l00043}{43}} of file \mbox{\hyperlink{draw_entities_8cpp_source}{draw\+Entities.\+cpp}}.

\mbox{\Hypertarget{class_pixel_manager_ad175ee24cc72012918e6ba03fe6c759c}\label{class_pixel_manager_ad175ee24cc72012918e6ba03fe6c759c}} 
\index{PixelManager@{PixelManager}!drawInvaderC@{drawInvaderC}}
\index{drawInvaderC@{drawInvaderC}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{drawInvaderC()}{drawInvaderC()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::draw\+InvaderC (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&}]{base\+Vector,  }\item[{unsigned}]{size,  }\item[{const RGBAcolor \&}]{color }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



display a type C invader on screen 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em base\+Vector} & \+: pixel coordinate of the invader \\
\hline
\mbox{\texttt{ in}}  & {\em size} & \+: size multiplicator of the invader \\
\hline
\mbox{\texttt{ in}}  & {\em color} & \+: color multiplicaror of the invader \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_entities_8cpp_source_l00051}{51}} of file \mbox{\hyperlink{draw_entities_8cpp_source}{draw\+Entities.\+cpp}}.

\mbox{\Hypertarget{class_pixel_manager_a401d8dbd71beec02e8860ead4b8ddcd4}\label{class_pixel_manager_a401d8dbd71beec02e8860ead4b8ddcd4}} 
\index{PixelManager@{PixelManager}!drawMissile@{drawMissile}}
\index{drawMissile@{drawMissile}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{drawMissile()}{drawMissile()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::draw\+Missile (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&}]{base\+Vector,  }\item[{unsigned}]{width,  }\item[{const ns\+Graphics\+::\+RGBAcolor \&}]{color }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



display a missile on screen 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em base\+Vector} & \+: pixel coordinates of the missile \\
\hline
\mbox{\texttt{ in}}  & {\em width} & \+: width of the missle \\
\hline
\mbox{\texttt{ in}}  & {\em color} & \+: color of the missile \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_entities_8cpp_source_l00072}{72}} of file \mbox{\hyperlink{draw_entities_8cpp_source}{draw\+Entities.\+cpp}}.

\mbox{\Hypertarget{class_pixel_manager_a293ef94a41a86b8ef61bde85a6b024c2}\label{class_pixel_manager_a293ef94a41a86b8ef61bde85a6b024c2}} 
\index{PixelManager@{PixelManager}!drawPlayer@{drawPlayer}}
\index{drawPlayer@{drawPlayer}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{drawPlayer()}{drawPlayer()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::draw\+Player (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{utils_8h_a19f2f2312637b6ed67b6d24598b6f470}{player\+ID}}}]{p\+ID,  }\item[{unsigned}]{x,  }\item[{unsigned}]{width,  }\item[{const ns\+Graphics\+::\+RGBAcolor \&}]{color }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



display a player on screen 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em p\+ID} & \+: the ID of the player to draw \\
\hline
\mbox{\texttt{ in}}  & {\em x} & \+: horizontal position of the player \\
\hline
\mbox{\texttt{ in}}  & {\em witdh} & \+: width of the player \\
\hline
\mbox{\texttt{ in}}  & {\em color} & \+: color of the plater \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_entities_8cpp_source_l00060}{60}} of file \mbox{\hyperlink{draw_entities_8cpp_source}{draw\+Entities.\+cpp}}.

\mbox{\Hypertarget{class_pixel_manager_a1aa725d6d04cce92ce8d43d58175e28f}\label{class_pixel_manager_a1aa725d6d04cce92ce8d43d58175e28f}} 
\index{PixelManager@{PixelManager}!drawSprite@{drawSprite}}
\index{drawSprite@{drawSprite}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{drawSprite()}{drawSprite()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::draw\+Sprite (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{class_my_sprite}{My\+Sprite}} \&}]{msp,  }\item[{const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&}]{pos = {\ttfamily \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(0,~0)} }\end{DoxyParamCaption}) const}



display a sprite on screen 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em msp} & \+: sprite to draw \\
\hline
\mbox{\texttt{ in}}  & {\em pos} & \+: pixel coordinates to draw the sprite \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_entities_8cpp_source_l00081}{81}} of file \mbox{\hyperlink{draw_entities_8cpp_source}{draw\+Entities.\+cpp}}.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_a1aa725d6d04cce92ce8d43d58175e28f_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{class_pixel_manager_a402e04eeae1dfe23f8da76a0bb1770a5}\label{class_pixel_manager_a402e04eeae1dfe23f8da76a0bb1770a5}} 
\index{PixelManager@{PixelManager}!drawText@{drawText}}
\index{drawText@{drawText}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{drawText()}{drawText()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::draw\+Text (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&}]{pos,  }\item[{const string \&}]{text,  }\item[{const RGBAcolor \&}]{color = {\ttfamily nsGraphics\+:\+:KWhite},  }\item[{\mbox{\hyperlink{pixel_manager_8h_a32c314fdd1d3f009560ba58e17859d63}{Font}}}]{font = {\ttfamily Font\+:\+:BITMAP\+\_\+TIMES\+\_\+ROMAN\+\_\+24} }\end{DoxyParamCaption}) const}



display text on screen 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em pos} & \+: pixel coordinates of the text \\
\hline
\mbox{\texttt{ in}}  & {\em text} & \+: text to show on screen \\
\hline
\mbox{\texttt{ in}}  & {\em color} & \+: color of the text to show \\
\hline
\mbox{\texttt{ in}}  & {\em font} & \+: the glut font to use for the text \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_entities_8cpp_source_l00106}{106}} of file \mbox{\hyperlink{draw_entities_8cpp_source}{draw\+Entities.\+cpp}}.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_a402e04eeae1dfe23f8da76a0bb1770a5_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{class_pixel_manager_a76579bc40dcabd2c21dda1b1b4f9495c}\label{class_pixel_manager_a76579bc40dcabd2c21dda1b1b4f9495c}} 
\index{PixelManager@{PixelManager}!drawTorpedo@{drawTorpedo}}
\index{drawTorpedo@{drawTorpedo}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{drawTorpedo()}{drawTorpedo()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::draw\+Torpedo (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&}]{base\+Vector,  }\item[{unsigned}]{width,  }\item[{const ns\+Graphics\+::\+RGBAcolor \&}]{color }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}



display a torpedo on screen 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em base\+Vector} & \+: pixel coordinates of the torpedo \\
\hline
\mbox{\texttt{ in}}  & {\em width} & \+: width of the torpedo \\
\hline
\mbox{\texttt{ in}}  & {\em color} & \+: color of the torpedo \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_entities_8cpp_source_l00077}{77}} of file \mbox{\hyperlink{draw_entities_8cpp_source}{draw\+Entities.\+cpp}}.

\mbox{\Hypertarget{class_pixel_manager_a39a1801e2c89c10c6a5c9ef33c83e8ec}\label{class_pixel_manager_a39a1801e2c89c10c6a5c9ef33c83e8ec}} 
\index{PixelManager@{PixelManager}!endFrame@{endFrame}}
\index{endFrame@{endFrame}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{endFrame()}{endFrame()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::end\+Frame (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



finish a frame render 



Definition at line \mbox{\hyperlink{pixel_manager_8cpp_source_l00015}{15}} of file \mbox{\hyperlink{pixel_manager_8cpp_source}{pixel\+Manager.\+cpp}}.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_a39a1801e2c89c10c6a5c9ef33c83e8ec_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{class_pixel_manager_a69a986401035a12c8e12a015b7ac250a}\label{class_pixel_manager_a69a986401035a12c8e12a015b7ac250a}} 
\index{PixelManager@{PixelManager}!getScreenHeight@{getScreenHeight}}
\index{getScreenHeight@{getScreenHeight}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{getScreenHeight()}{getScreenHeight()}}
{\footnotesize\ttfamily unsigned Pixel\+Manager\+::get\+Screen\+Height (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



give the height of the screen 

\begin{DoxyReturn}{Returns}
the height of the screen in pixel 
\end{DoxyReturn}


Definition at line \mbox{\hyperlink{pixel_manager_8cpp_source_l00019}{19}} of file \mbox{\hyperlink{pixel_manager_8cpp_source}{pixel\+Manager.\+cpp}}.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_a69a986401035a12c8e12a015b7ac250a_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{class_pixel_manager_a755b819d8edf14edcd0d87d5fd3966fd}\label{class_pixel_manager_a755b819d8edf14edcd0d87d5fd3966fd}} 
\index{PixelManager@{PixelManager}!getScreenWidth@{getScreenWidth}}
\index{getScreenWidth@{getScreenWidth}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{getScreenWidth()}{getScreenWidth()}}
{\footnotesize\ttfamily unsigned Pixel\+Manager\+::get\+Screen\+Width (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



give the width of the screen 

\begin{DoxyReturn}{Returns}
the width of the screen in pixel 
\end{DoxyReturn}


Definition at line \mbox{\hyperlink{pixel_manager_8cpp_source_l00023}{23}} of file \mbox{\hyperlink{pixel_manager_8cpp_source}{pixel\+Manager.\+cpp}}.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_a755b819d8edf14edcd0d87d5fd3966fd_icgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{class_pixel_manager_a0b28e70e108b042497d483ce85ce5b0e}\label{class_pixel_manager_a0b28e70e108b042497d483ce85ce5b0e}} 
\index{PixelManager@{PixelManager}!loadSprites@{loadSprites}}
\index{loadSprites@{loadSprites}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{loadSprites()}{loadSprites()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::load\+Sprites (\begin{DoxyParamCaption}\item[{vector$<$ \mbox{\hyperlink{utils_8h_a7a271d55f100974f7703690edbaca2e2}{Task}} $>$ \&}]{tasks }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



loads sprites in parallel using multiple threads 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em tasks} & \+: vectot of task \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{pixel_manager_8cpp_source_l00004}{4}} of file \mbox{\hyperlink{pixel_manager_8cpp_source}{pixel\+Manager.\+cpp}}.

\mbox{\Hypertarget{class_pixel_manager_aca51fa0a1ef8ac59076669ac68c7e152}\label{class_pixel_manager_aca51fa0a1ef8ac59076669ac68c7e152}} 
\index{PixelManager@{PixelManager}!showDeathMenu@{showDeathMenu}}
\index{showDeathMenu@{showDeathMenu}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{showDeathMenu()}{showDeathMenu()}}
{\footnotesize\ttfamily bool Pixel\+Manager\+::show\+Death\+Menu (\begin{DoxyParamCaption}\item[{const vector$<$ \mbox{\hyperlink{struct_score_link}{Score\+Link}} $>$ \&}]{rankings,  }\item[{const \mbox{\hyperlink{utils_8h_acd2eabcda2cfc7902077f1f9a9e318de}{Win\+Value}} \&}]{winner }\end{DoxyParamCaption})}



show the menu after a player lose, or all invader has been defeated 

\begin{DoxyReturn}{Returns}
true if the player plays again, else false 
\end{DoxyReturn}

\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em rankings} & \+: the current top 5 score \\
\hline
\mbox{\texttt{ in}}  & {\em winner} & \+: the winner of the game \\
\hline
\end{DoxyParams}


Definition at line \mbox{\hyperlink{draw_menus_8cpp_source_l00156}{156}} of file \mbox{\hyperlink{draw_menus_8cpp_source}{draw\+Menus.\+cpp}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_aca51fa0a1ef8ac59076669ac68c7e152_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{class_pixel_manager_a30c8c220730ef121c78b6ff9b3a941d3}\label{class_pixel_manager_a30c8c220730ef121c78b6ff9b3a941d3}} 
\index{PixelManager@{PixelManager}!showInitialMenu@{showInitialMenu}}
\index{showInitialMenu@{showInitialMenu}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{showInitialMenu()}{showInitialMenu()}}
{\footnotesize\ttfamily \mbox{\hyperlink{play_mode_8h_a188092ed559d356ade9a517d60ec3f34}{Play\+Mode}} Pixel\+Manager\+::show\+Initial\+Menu (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



show the title screen of the game 

\begin{DoxyReturn}{Returns}
the playmode chosen inside the menu 
\end{DoxyReturn}


Definition at line \mbox{\hyperlink{draw_menus_8cpp_source_l00072}{72}} of file \mbox{\hyperlink{draw_menus_8cpp_source}{draw\+Menus.\+cpp}}.

Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_a30c8c220730ef121c78b6ff9b3a941d3_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{class_pixel_manager_a061f872b418537446952b17533ff02d6}\label{class_pixel_manager_a061f872b418537446952b17533ff02d6}} 
\index{PixelManager@{PixelManager}!startFrame@{startFrame}}
\index{startFrame@{startFrame}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{startFrame()}{startFrame()}}
{\footnotesize\ttfamily void Pixel\+Manager\+::start\+Frame (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



clear the screen for a new frame 



Definition at line \mbox{\hyperlink{pixel_manager_8cpp_source_l00011}{11}} of file \mbox{\hyperlink{pixel_manager_8cpp_source}{pixel\+Manager.\+cpp}}.

Here is the caller graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_a061f872b418537446952b17533ff02d6_icgraph}
\end{center}
\end{figure}


\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{class_pixel_manager_ad36fc234b6025da179c02d0845df74d8}\label{class_pixel_manager_ad36fc234b6025da179c02d0845df74d8}} 
\index{PixelManager@{PixelManager}!gameBackground@{gameBackground}}
\index{gameBackground@{gameBackground}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{gameBackground}{gameBackground}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_my_sprite}{My\+Sprite}} Pixel\+Manager\+::game\+Background}



sprite of the background during gameplay 



Definition at line \mbox{\hyperlink{pixel_manager_8h_source_l00073}{73}} of file \mbox{\hyperlink{pixel_manager_8h_source}{pixel\+Manager.\+h}}.

\mbox{\Hypertarget{class_pixel_manager_a0993ba3b7fc6f772c606015a531a33bc}\label{class_pixel_manager_a0993ba3b7fc6f772c606015a531a33bc}} 
\index{PixelManager@{PixelManager}!leftHand@{leftHand}}
\index{leftHand@{leftHand}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{leftHand}{leftHand}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_my_sprite}{My\+Sprite}} Pixel\+Manager\+::left\+Hand}



sprite of the left hand of god 



Definition at line \mbox{\hyperlink{pixel_manager_8h_source_l00083}{83}} of file \mbox{\hyperlink{pixel_manager_8h_source}{pixel\+Manager.\+h}}.

\mbox{\Hypertarget{class_pixel_manager_aa108cd115eedc01b2076844b96bc076f}\label{class_pixel_manager_aa108cd115eedc01b2076844b96bc076f}} 
\index{PixelManager@{PixelManager}!logo@{logo}}
\index{logo@{logo}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{logo}{logo}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_my_sprite}{My\+Sprite}} Pixel\+Manager\+::logo}



sprite of the logo of the game 



Definition at line \mbox{\hyperlink{pixel_manager_8h_source_l00063}{63}} of file \mbox{\hyperlink{pixel_manager_8h_source}{pixel\+Manager.\+h}}.

\mbox{\Hypertarget{class_pixel_manager_a297c927d2c069c1da7d34d15b11d481d}\label{class_pixel_manager_a297c927d2c069c1da7d34d15b11d481d}} 
\index{PixelManager@{PixelManager}!menuBackground@{menuBackground}}
\index{menuBackground@{menuBackground}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{menuBackground}{menuBackground}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_my_sprite}{My\+Sprite}} Pixel\+Manager\+::menu\+Background}



sprite of the background during menu 



Definition at line \mbox{\hyperlink{pixel_manager_8h_source_l00068}{68}} of file \mbox{\hyperlink{pixel_manager_8h_source}{pixel\+Manager.\+h}}.

\mbox{\Hypertarget{class_pixel_manager_a336e6c4321df17aba4b59d07732f051d}\label{class_pixel_manager_a336e6c4321df17aba4b59d07732f051d}} 
\index{PixelManager@{PixelManager}!rightHand@{rightHand}}
\index{rightHand@{rightHand}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{rightHand}{rightHand}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_my_sprite}{My\+Sprite}} Pixel\+Manager\+::right\+Hand}



sprite of the right hand of god 



Definition at line \mbox{\hyperlink{pixel_manager_8h_source_l00078}{78}} of file \mbox{\hyperlink{pixel_manager_8h_source}{pixel\+Manager.\+h}}.

\mbox{\Hypertarget{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}\label{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}} 
\index{PixelManager@{PixelManager}!window@{window}}
\index{window@{window}!PixelManager@{PixelManager}}
\doxysubsubsection{\texorpdfstring{window}{window}}
{\footnotesize\ttfamily Min\+GL\& Pixel\+Manager\+::window}



display window 



Definition at line \mbox{\hyperlink{pixel_manager_8h_source_l00051}{51}} of file \mbox{\hyperlink{pixel_manager_8h_source}{pixel\+Manager.\+h}}.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
headers/pixel\+Manager/\mbox{\hyperlink{pixel_manager_8h}{pixel\+Manager.\+h}}\item 
src/pixel\+Manager/\mbox{\hyperlink{draw_entities_8cpp}{draw\+Entities.\+cpp}}\item 
src/pixel\+Manager/\mbox{\hyperlink{draw_menus_8cpp}{draw\+Menus.\+cpp}}\item 
src/pixel\+Manager/\mbox{\hyperlink{pixel_manager_8cpp}{pixel\+Manager.\+cpp}}\end{DoxyCompactItemize}
