826 lines
41 KiB
TeX
826 lines
41 KiB
TeX
\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=244pt]{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{pixel_manager_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}} (\mbox{\hyperlink{class_min_g_l}{Min\+GL}} \&\mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}})
|
|
\begin{DoxyCompactList}\small\item\em constructor the pixel manager class \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{class_pixel_manager_a880e77f06534c6c442eaea11435a4ea2}{draw\+InvaderA}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&base\+Vector, unsigned size, const \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{RGBAcolor}} \&color) const
|
|
\begin{DoxyCompactList}\small\item\em display a type A invader on screen \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{class_pixel_manager_a42547d00bfa01b73a8c20ad303ca7f8e}{draw\+InvaderB}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&base\+Vector, unsigned size, const \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{RGBAcolor}} \&color) const
|
|
\begin{DoxyCompactList}\small\item\em display a type B invader on screen \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{class_pixel_manager_ad175ee24cc72012918e6ba03fe6c759c}{draw\+InvaderC}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&base\+Vector, unsigned size, const \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{RGBAcolor}} \&color) const
|
|
\begin{DoxyCompactList}\small\item\em display a type C invader on screen \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{class_pixel_manager_a74d1e5a4669f374bed1641502952b62b}{draw\+Player}} (unsigned x, unsigned width, const \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{ns\+Graphics\+::\+RGBAcolor}} \&color) const
|
|
\begin{DoxyCompactList}\small\item\em display a player on screen \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{class_pixel_manager_a401d8dbd71beec02e8860ead4b8ddcd4}{draw\+Missile}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&base\+Vector, unsigned width, const \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{ns\+Graphics\+::\+RGBAcolor}} \&color) const
|
|
\begin{DoxyCompactList}\small\item\em display a missile on screen \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{class_pixel_manager_a76579bc40dcabd2c21dda1b1b4f9495c}{draw\+Torpedo}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&base\+Vector, unsigned width, const \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{ns\+Graphics\+::\+RGBAcolor}} \&color) const
|
|
\begin{DoxyCompactList}\small\item\em display a torpedo on screen \end{DoxyCompactList}\item
|
|
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, \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{ns\+Graphics\+::\+RGBAcolor}} \&color)
|
|
\begin{DoxyCompactList}\small\item\em display a menu button on screen \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{class_pixel_manager_abdbbb5087907bd0bbd44b63a6906a11f}{display\+Menu}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&pos, \mbox{\hyperlink{struct_menu}{Menu}} \¤t\+Menu)
|
|
\begin{DoxyCompactList}\small\item\em display a menu on screen \end{DoxyCompactList}\item
|
|
void \mbox{\hyperlink{class_pixel_manager_a9bd88ddbbd706078ed039c942931df6a}{display\+Menu}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&pos, \mbox{\hyperlink{struct_menu}{Menu}} \¤t\+Menu, const vector$<$ \mbox{\hyperlink{struct_score_link}{Score\+Link}} $>$ \&rankings, const \mbox{\hyperlink{utils_8h_acd2eabcda2cfc7902077f1f9a9e318de}{Win\+Value}} \&winner)
|
|
\item
|
|
void \mbox{\hyperlink{class_pixel_manager_a402e04eeae1dfe23f8da76a0bb1770a5}{draw\+Text}} (const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&pos, const string \&text, const \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{RGBAcolor}} \&color=\mbox{\hyperlink{namespacens_graphics_a8c5fcb477a548c6ed321748ec8383bb2}{ns\+Graphics\+::\+KWhite}}, \mbox{\hyperlink{classns_gui_1_1_glut_font_aeeeb02d69e7dfc7e57957bd658c465ce}{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)
|
|
\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
|
|
\mbox{\hyperlink{class_min_g_l}{Min\+GL}} \& \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}}
|
|
\item
|
|
vector$<$ \mbox{\hyperlink{pixel_manager_8h_a7a271d55f100974f7703690edbaca2e2}{Task}} $>$ \mbox{\hyperlink{class_pixel_manager_a90f43d83f021cebb47740cd4433736dd}{draw\+Tasks}}
|
|
\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_l00050}{50}} 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[{\mbox{\hyperlink{class_min_g_l}{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}}.
|
|
|
|
Here is the call graph for this function\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_a199102dfb3ddb3995233ff632a7475dc_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
|
|
|
|
\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})}
|
|
|
|
|
|
|
|
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[{\mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{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}}.
|
|
|
|
Here is the caller graph for this function\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_a3931894fc3a88e00c4c33e12c2be1aac_icgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\mbox{\Hypertarget{class_pixel_manager_abdbbb5087907bd0bbd44b63a6906a11f}\label{class_pixel_manager_abdbbb5087907bd0bbd44b63a6906a11f}}
|
|
\index{PixelManager@{PixelManager}!displayMenu@{displayMenu}}
|
|
\index{displayMenu@{displayMenu}!PixelManager@{PixelManager}}
|
|
\doxysubsubsection{\texorpdfstring{displayMenu()}{displayMenu()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
|
|
{\footnotesize\ttfamily void Pixel\+Manager\+::display\+Menu (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&}]{pos, }\item[{\mbox{\hyperlink{struct_menu}{Menu}} \&}]{current\+Menu }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
display a menu on screen
|
|
|
|
|
|
\begin{DoxyParams}[1]{Parameters}
|
|
\mbox{\texttt{ in}} & {\em pos} & \+: pixel coordinates of the menu \\
|
|
\hline
|
|
\mbox{\texttt{ in,out}} & {\em current\+Menu} & \+: menu struct conteining the menu option\\
|
|
\hline
|
|
\mbox{\texttt{ in}} & {\em pos} & \+: pixel coordinates of the menu \\
|
|
\hline
|
|
\mbox{\texttt{ in,out}} & {\em current\+Menu} & \+: menu struct conteining the menu option \\
|
|
\hline
|
|
\mbox{\texttt{ in}} & {\em rankings} & \+: the current top 10 players \\
|
|
\hline
|
|
\mbox{\texttt{ in}} & {\em winner} & \+: the winner of the game \\
|
|
\hline
|
|
\end{DoxyParams}
|
|
|
|
|
|
Definition at line \mbox{\hyperlink{draw_menus_8cpp_source_l00028}{28}} 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_abdbbb5087907bd0bbd44b63a6906a11f_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
Here is the caller graph for this function\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_abdbbb5087907bd0bbd44b63a6906a11f_icgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\mbox{\Hypertarget{class_pixel_manager_a9bd88ddbbd706078ed039c942931df6a}\label{class_pixel_manager_a9bd88ddbbd706078ed039c942931df6a}}
|
|
\index{PixelManager@{PixelManager}!displayMenu@{displayMenu}}
|
|
\index{displayMenu@{displayMenu}!PixelManager@{PixelManager}}
|
|
\doxysubsubsection{\texorpdfstring{displayMenu()}{displayMenu()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
|
|
{\footnotesize\ttfamily void Pixel\+Manager\+::display\+Menu (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}} \&}]{pos, }\item[{\mbox{\hyperlink{struct_menu}{Menu}} \&}]{current\+Menu, }\item[{const vector$<$ \mbox{\hyperlink{struct_score_link}{Score\+Link}} $>$ \&}]{rankings, }\item[{const \mbox{\hyperlink{utils_8h_acd2eabcda2cfc7902077f1f9a9e318de}{Win\+Value}} \&}]{winner }\end{DoxyParamCaption})}
|
|
|
|
|
|
|
|
Definition at line \mbox{\hyperlink{draw_menus_8cpp_source_l00047}{47}} 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_a9bd88ddbbd706078ed039c942931df6a_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
\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_l00086}{86}} 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_l00090}{90}} 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}
|
|
|
|
|
|
|
|
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 \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{RGBAcolor}} \&}]{color }\end{DoxyParamCaption}) const}
|
|
|
|
|
|
|
|
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 \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{RGBAcolor}} \&}]{color }\end{DoxyParamCaption}) const}
|
|
|
|
|
|
|
|
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 \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{RGBAcolor}} \&}]{color }\end{DoxyParamCaption}) const}
|
|
|
|
|
|
|
|
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 \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{ns\+Graphics\+::\+RGBAcolor}} \&}]{color }\end{DoxyParamCaption}) const}
|
|
|
|
|
|
|
|
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_l00071}{71}} of file \mbox{\hyperlink{draw_entities_8cpp_source}{draw\+Entities.\+cpp}}.
|
|
|
|
\mbox{\Hypertarget{class_pixel_manager_a74d1e5a4669f374bed1641502952b62b}\label{class_pixel_manager_a74d1e5a4669f374bed1641502952b62b}}
|
|
\index{PixelManager@{PixelManager}!drawPlayer@{drawPlayer}}
|
|
\index{drawPlayer@{drawPlayer}!PixelManager@{PixelManager}}
|
|
\doxysubsubsection{\texorpdfstring{drawPlayer()}{drawPlayer()}}
|
|
{\footnotesize\ttfamily void Pixel\+Manager\+::draw\+Player (\begin{DoxyParamCaption}\item[{unsigned}]{x, }\item[{unsigned}]{width, }\item[{const \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{ns\+Graphics\+::\+RGBAcolor}} \&}]{color }\end{DoxyParamCaption}) const}
|
|
|
|
|
|
|
|
display a player on screen
|
|
|
|
|
|
\begin{DoxyParams}[1]{Parameters}
|
|
\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_l00059}{59}} 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_l00080}{80}} 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 \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{RGBAcolor}} \&}]{color = {\ttfamily \mbox{\hyperlink{namespacens_graphics_a8c5fcb477a548c6ed321748ec8383bb2}{ns\+Graphics\+::\+KWhite}}}, }\item[{\mbox{\hyperlink{classns_gui_1_1_glut_font_aeeeb02d69e7dfc7e57957bd658c465ce}{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
|
|
\end{DoxyParams}
|
|
|
|
|
|
Definition at line \mbox{\hyperlink{draw_entities_8cpp_source_l00105}{105}} 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 \mbox{\hyperlink{classns_graphics_1_1_r_g_b_acolor}{ns\+Graphics\+::\+RGBAcolor}} \&}]{color }\end{DoxyParamCaption}) const}
|
|
|
|
|
|
|
|
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_l00076}{76}} 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 call graph for this function\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=340pt]{dc/d34/class_pixel_manager_a39a1801e2c89c10c6a5c9ef33c83e8ec_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
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_l00020}{20}} of file \mbox{\hyperlink{pixel_manager_8cpp_source}{pixel\+Manager.\+cpp}}.
|
|
|
|
Here is the call graph for this function\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_a69a986401035a12c8e12a015b7ac250a_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
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_l00024}{24}} of file \mbox{\hyperlink{pixel_manager_8cpp_source}{pixel\+Manager.\+cpp}}.
|
|
|
|
Here is the call graph for this function\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=350pt]{dc/d34/class_pixel_manager_a755b819d8edf14edcd0d87d5fd3966fd_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
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{pixel_manager_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 vec} & \+: We take his ownership, so \\
|
|
\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 call graph for this function\+:
|
|
\nopagebreak
|
|
\begin{figure}[H]
|
|
\begin{center}
|
|
\leavevmode
|
|
\includegraphics[width=345pt]{dc/d34/class_pixel_manager_a061f872b418537446952b17533ff02d6_cgraph}
|
|
\end{center}
|
|
\end{figure}
|
|
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_a90f43d83f021cebb47740cd4433736dd}\label{class_pixel_manager_a90f43d83f021cebb47740cd4433736dd}}
|
|
\index{PixelManager@{PixelManager}!drawTasks@{drawTasks}}
|
|
\index{drawTasks@{drawTasks}!PixelManager@{PixelManager}}
|
|
\doxysubsubsection{\texorpdfstring{drawTasks}{drawTasks}}
|
|
{\footnotesize\ttfamily vector$<$\mbox{\hyperlink{pixel_manager_8h_a7a271d55f100974f7703690edbaca2e2}{Task}}$>$ Pixel\+Manager\+::draw\+Tasks\hspace{0.3cm}{\ttfamily [mutable]}}
|
|
|
|
|
|
|
|
Definition at line \mbox{\hyperlink{pixel_manager_8h_source_l00053}{53}} of file \mbox{\hyperlink{pixel_manager_8h_source}{pixel\+Manager.\+h}}.
|
|
|
|
\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_l00077}{77}} 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_l00087}{87}} 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_l00067}{67}} 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_l00072}{72}} 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_l00082}{82}} 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 \mbox{\hyperlink{class_min_g_l}{Min\+GL}}\& Pixel\+Manager\+::window}
|
|
|
|
|
|
|
|
Definition at line \mbox{\hyperlink{pixel_manager_8h_source_l00052}{52}} 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}
|