\hypertarget{draw_entities_8cpp_source}{}\doxysection{draw\+Entities.\+cpp}
\label{draw_entities_8cpp_source}\index{src/pixelManager/drawEntities.cpp@{src/pixelManager/drawEntities.cpp}}
\mbox{\hyperlink{draw_entities_8cpp}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00001}00001 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00013}00013 \textcolor{preprocessor}{\#include "{}mingl/gui/text.h"{}}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00014}00014 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{pixel_manager_8h}{pixelManager/pixelManager.h}}"{}}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00015}00015 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{utils_8h}{utils.h}}"{}}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00016}00016 \textcolor{preprocessor}{\#include "{}\mbox{\hyperlink{god_8h}{god.h}}"{}}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00017}00017 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00018}00018 \textcolor{keyword}{using namespace }nsShape;}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00019}00019 \textcolor{keyword}{using namespace }nsGui;}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00020}00020 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00021}00021 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00022}\mbox{\hyperlink{class_pixel_manager_a199102dfb3ddb3995233ff632a7475dc}{00022}} \mbox{\hyperlink{class_pixel_manager_a199102dfb3ddb3995233ff632a7475dc}{PixelManager::PixelManager}}(MinGL\& win) : window(win) \{}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00023}00023     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}}.initGlut();}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00024}00024     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}}.initGraphic();}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00025}00025 \}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00026}00026 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00027}\mbox{\hyperlink{class_pixel_manager_a70d916c90738dba58f11cac8faf3cac4}{00027}} \textcolor{keywordtype}{void} \mbox{\hyperlink{class_pixel_manager_a70d916c90738dba58f11cac8faf3cac4}{PixelManager::drawHeart}}(\textcolor{keyword}{const} \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}\& baseVector)\textcolor{keyword}{ const }\{}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00028}00028     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Circle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(10, 10)+baseVector,10, nsGraphics::KRed);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00029}00029     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Circle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(30, 10)+baseVector,10, nsGraphics::KRed);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00030}00030     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Triangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(0,10)+baseVector,\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(40,10)+baseVector,\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(20,40)+baseVector,nsGraphics::KRed);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00031}00031 \}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00032}00032 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00033}\mbox{\hyperlink{class_pixel_manager_a880e77f06534c6c442eaea11435a4ea2}{00033}} \textcolor{keywordtype}{void} \mbox{\hyperlink{class_pixel_manager_a880e77f06534c6c442eaea11435a4ea2}{PixelManager::drawInvaderA}}(\textcolor{keyword}{const} \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}\& baseVector, \textcolor{keywordtype}{unsigned} size, \textcolor{keyword}{const} RGBAcolor\& color)\textcolor{keyword}{ const }\{}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00034}00034     \textcolor{keywordtype}{float} scale = size/(float)100;}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00035}00035     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Circle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(50*scale, 50*scale)+baseVector, 50*scale, nsGraphics::KGray);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00036}00036     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Triangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(35*scale, 50*scale)+baseVector, \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(15*scale, 25*scale)+baseVector, \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(15*scale, 75*scale)+baseVector, nsGraphics::KBlack);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00037}00037     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Triangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(25*scale, 50*scale)+baseVector, \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(10*scale, 25*scale)+baseVector, \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(10*scale, 75*scale)+baseVector, nsGraphics::KGray);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00038}00038     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Triangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(65*scale, 50*scale)+baseVector, \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(85*scale, 25*scale)+baseVector, \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(85*scale, 75*scale)+baseVector, nsGraphics::KBlack);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00039}00039     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Triangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(75*scale, 50*scale)+baseVector, \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(90*scale, 25*scale)+baseVector, \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(90*scale, 75*scale)+baseVector, nsGraphics::KGray);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00040}00040     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Rectangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(35*scale, 65*scale)+baseVector, \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(65*scale, 72*scale)+baseVector, nsGraphics::KBlack);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00041}00041 \}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00042}00042 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00043}\mbox{\hyperlink{class_pixel_manager_a42547d00bfa01b73a8c20ad303ca7f8e}{00043}} \textcolor{keywordtype}{void} \mbox{\hyperlink{class_pixel_manager_a42547d00bfa01b73a8c20ad303ca7f8e}{PixelManager::drawInvaderB}}(\textcolor{keyword}{const} \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}\& baseVector, \textcolor{keywordtype}{unsigned} size, \textcolor{keyword}{const} RGBAcolor\& color)\textcolor{keyword}{ const }\{}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00044}00044     \textcolor{keywordtype}{float} scale = size/(float)100;}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00045}00045     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Circle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(50*scale, 50*scale)+baseVector, 50*scale, nsGraphics::KRed);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00046}00046     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Rectangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(25*scale, 30*scale)+baseVector, \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(45*scale, 40*scale)+baseVector, nsGraphics::KBlack);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00047}00047     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Rectangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(55*scale, 30*scale)+baseVector, \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(75*scale, 40*scale)+baseVector, nsGraphics::KBlack);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00048}00048     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Rectangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(35*scale, 65*scale)+baseVector, \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(65*scale, 72*scale)+baseVector, nsGraphics::KBlack);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00049}00049 \}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00050}00050 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00051}\mbox{\hyperlink{class_pixel_manager_ad175ee24cc72012918e6ba03fe6c759c}{00051}} \textcolor{keywordtype}{void} \mbox{\hyperlink{class_pixel_manager_ad175ee24cc72012918e6ba03fe6c759c}{PixelManager::drawInvaderC}}(\textcolor{keyword}{const} \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}\& baseVector, \textcolor{keywordtype}{unsigned} size, \textcolor{keyword}{const} RGBAcolor\& color)\textcolor{keyword}{ const }\{}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00052}00052     \textcolor{keywordtype}{float} scale = size/(float)100;}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00053}00053     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Circle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(50*scale, 50*scale)+baseVector, 50*scale, nsGraphics::KGreen);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00054}00054     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Circle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(35*scale, 35*scale)+baseVector, 10*scale, nsGraphics::KBlack);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00055}00055     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Circle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(65*scale, 35*scale)+baseVector, 10*scale, nsGraphics::KBlack);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00056}00056     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Rectangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(35*scale, 65*scale)+baseVector, \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(65*scale, 72*scale)+baseVector, nsGraphics::KBlack);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00057}00057 \}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00058}00058 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00059}00059 \textcolor{comment}{// playerID argument is unused here, so we don't even give it a name}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00060}\mbox{\hyperlink{class_pixel_manager_a293ef94a41a86b8ef61bde85a6b024c2}{00060}} \textcolor{keywordtype}{void} \mbox{\hyperlink{class_pixel_manager_a293ef94a41a86b8ef61bde85a6b024c2}{PixelManager::drawPlayer}}(\mbox{\hyperlink{utils_8h_a19f2f2312637b6ed67b6d24598b6f470}{playerID}}, \textcolor{keywordtype}{unsigned} x, \textcolor{keywordtype}{unsigned} width, \textcolor{keyword}{const} nsGraphics::RGBAcolor\& color)\textcolor{keyword}{ const }\{}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00061}00061     width = width-\/10-\/10;}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00062}00062     width = width/2;}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00063}00063     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Triangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(0+x, 720), \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(5+x, 720), \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(5+x, 720-\/\mbox{\hyperlink{utils_8h_a2712b06fd52f25adca031d05c3e0c09b}{PLAYER\_HEIGHT}}/2), color);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00064}00064     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Rectangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(5+x, 720), \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(5+width+x, 720-\/\mbox{\hyperlink{utils_8h_a2712b06fd52f25adca031d05c3e0c09b}{PLAYER\_HEIGHT}}/2), color);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00065}00065     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Rectangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(5+width+x, 720), \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(15+width+x, 720-\/\mbox{\hyperlink{utils_8h_a2712b06fd52f25adca031d05c3e0c09b}{PLAYER\_HEIGHT}}), color);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00066}00066     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Rectangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(15+width+x, 720), \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(15+width*2+x, 720-\/\mbox{\hyperlink{utils_8h_a2712b06fd52f25adca031d05c3e0c09b}{PLAYER\_HEIGHT}}/2), color);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00067}00067     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Triangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(15+width*2+x, 720), \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(15+width*2+x, 720-\/\mbox{\hyperlink{utils_8h_a2712b06fd52f25adca031d05c3e0c09b}{PLAYER\_HEIGHT}}/2), \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(20+width*2+x, 720), color);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00068}00068     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Triangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(5+x,720-\/\mbox{\hyperlink{utils_8h_a2712b06fd52f25adca031d05c3e0c09b}{PLAYER\_HEIGHT}}/2), \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(5+width+x,720-\/\mbox{\hyperlink{utils_8h_a2712b06fd52f25adca031d05c3e0c09b}{PLAYER\_HEIGHT}}/2), \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(5+width+x,720-\/\mbox{\hyperlink{utils_8h_a2712b06fd52f25adca031d05c3e0c09b}{PLAYER\_HEIGHT}}*0.9), color);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00069}00069     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Triangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(15+width+x,720-\/\mbox{\hyperlink{utils_8h_a2712b06fd52f25adca031d05c3e0c09b}{PLAYER\_HEIGHT}}/2), \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(15+width*2+x,720-\/\mbox{\hyperlink{utils_8h_a2712b06fd52f25adca031d05c3e0c09b}{PLAYER\_HEIGHT}}/2), \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(15+width+x,720-\/\mbox{\hyperlink{utils_8h_a2712b06fd52f25adca031d05c3e0c09b}{PLAYER\_HEIGHT}}*0.9), color);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00070}00070 \}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00071}00071 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00072}\mbox{\hyperlink{class_pixel_manager_a401d8dbd71beec02e8860ead4b8ddcd4}{00072}} \textcolor{keywordtype}{void} \mbox{\hyperlink{class_pixel_manager_a401d8dbd71beec02e8860ead4b8ddcd4}{PixelManager::drawMissile}}(\textcolor{keyword}{const} \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}\& baseVector, \textcolor{keywordtype}{unsigned} width, \textcolor{keyword}{const} nsGraphics::RGBAcolor\& color)\textcolor{keyword}{ const }\{}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00073}00073     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Rectangle(baseVector, baseVector + \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(width, width * \mbox{\hyperlink{utils_8h_a1f75c733009cd39459a13c7cdbb5410d}{PROJ\_LENGTH\_FACTOR}}), color);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00074}00074 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00075}00075 \}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00076}00076 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00077}\mbox{\hyperlink{class_pixel_manager_a76579bc40dcabd2c21dda1b1b4f9495c}{00077}} \textcolor{keywordtype}{void} \mbox{\hyperlink{class_pixel_manager_a76579bc40dcabd2c21dda1b1b4f9495c}{PixelManager::drawTorpedo}}(\textcolor{keyword}{const} \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}\& baseVector, \textcolor{keywordtype}{unsigned} width, \textcolor{keyword}{const} nsGraphics::RGBAcolor\& color)\textcolor{keyword}{ const }\{}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00078}00078     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Rectangle(baseVector, baseVector + \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(width, width * \mbox{\hyperlink{utils_8h_a1f75c733009cd39459a13c7cdbb5410d}{PROJ\_LENGTH\_FACTOR}}), color);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00079}00079 \}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00080}00080 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00081}\mbox{\hyperlink{class_pixel_manager_a1aa725d6d04cce92ce8d43d58175e28f}{00081}} \textcolor{keywordtype}{void} \mbox{\hyperlink{class_pixel_manager_a1aa725d6d04cce92ce8d43d58175e28f}{PixelManager::drawSprite}}(\textcolor{keyword}{const} \mbox{\hyperlink{class_my_sprite}{MySprite}}\& msp, \textcolor{keyword}{const} \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}\& pos)\textcolor{keyword}{ const }\{}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00082}00082     \textcolor{comment}{// The sprite is associated with a Vec2D for whatever reason, so yeah, we modify it each time we draw it}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00083}00083     msp.\mbox{\hyperlink{class_my_sprite_ab5c268ae1f1082535dc15dc163910794}{sp}}-\/>setPosition(pos);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00084}00084     msp.\mbox{\hyperlink{class_my_sprite_ab5c268ae1f1082535dc15dc163910794}{sp}}-\/>draw(\mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}});}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00085}00085 \}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00086}00086 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00087}\mbox{\hyperlink{class_pixel_manager_a3e7390472c4a79482b10b36ccde0b1f4}{00087}} \textcolor{keywordtype}{void} \mbox{\hyperlink{class_pixel_manager_a3e7390472c4a79482b10b36ccde0b1f4}{PixelManager::drawGodBench}}(\textcolor{keywordtype}{int} y)\textcolor{keyword}{ const }\{}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00088}00088     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Rectangle(\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(0, y), \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(\mbox{\hyperlink{class_pixel_manager_a755b819d8edf14edcd0d87d5fd3966fd}{getScreenWidth}}(), y+\mbox{\hyperlink{god_8h_a321d9614200c924cf991c5b08808be80}{GOD\_BENCH\_SIZE}}), nsGraphics::KGray);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00089}00089 \}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00090}00090 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00091}\mbox{\hyperlink{class_pixel_manager_a14f4569284c7b0ba9d75738600494402}{00091}} \textcolor{keywordtype}{void} \mbox{\hyperlink{class_pixel_manager_a14f4569284c7b0ba9d75738600494402}{PixelManager::drawGodFace}}(\textcolor{keywordtype}{int} y, \textcolor{keywordtype}{bool} angry)\textcolor{keyword}{ const }\{}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00092}00092     Text t(}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00093}00093         \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(\mbox{\hyperlink{class_pixel_manager_a755b819d8edf14edcd0d87d5fd3966fd}{getScreenWidth}}()/2, y),}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00094}00094         angry ? \textcolor{stringliteral}{"{}>w<"{}} : \textcolor{stringliteral}{"{}.w."{}},}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00095}00095         nsGraphics::KBlue,}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00096}00096         GlutFont::GlutFonts::BITMAP\_TIMES\_ROMAN\_24,}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00097}00097         Text::HorizontalAlignment::ALIGNH\_CENTER}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00098}00098     );}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00099}00099 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00100}00100     \textcolor{comment}{// computeHeight() returns a height bigger than the actual text size, that's why there's padding above it(}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00101}00101     t.setPosition(t.getPosition()+\mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}(0, t.computeHeight()));}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00102}00102     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << t;}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00103}00103 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00104}00104 \}}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00105}00105 }
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00106}\mbox{\hyperlink{class_pixel_manager_a402e04eeae1dfe23f8da76a0bb1770a5}{00106}} \textcolor{keywordtype}{void} \mbox{\hyperlink{class_pixel_manager_a402e04eeae1dfe23f8da76a0bb1770a5}{PixelManager::drawText}}(\textcolor{keyword}{const} \mbox{\hyperlink{utils_8h_aaa06d516441b519f8892f37adafeade2}{Position}}\& pos, \textcolor{keyword}{const} \textcolor{keywordtype}{string}\& text, \textcolor{keyword}{const} nsGraphics::RGBAcolor\& color, \mbox{\hyperlink{pixel_manager_8h_a32c314fdd1d3f009560ba58e17859d63}{Font}} font)\textcolor{keyword}{ const }\{}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00107}00107     \mbox{\hyperlink{class_pixel_manager_aaca742e0e39716b5e5a89e422a031c36}{window}} << Text(pos, text, color, font);}
\DoxyCodeLine{\Hypertarget{draw_entities_8cpp_source_l00108}00108 \}}

\end{DoxyCode}
