\hypertarget{ProjectileComponent_8hpp_source}{}\doxysection{Projectile\+Component.\+hpp}
\label{ProjectileComponent_8hpp_source}\index{include/ProjectileComponent.hpp@{include/ProjectileComponent.hpp}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ PROJECTILECOMPONENT\_HPP}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ PROJECTILECOMPONENT\_HPP}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#include\ "{}TinyMath.hpp"{}}}
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ "{}RigidbodyComponent.hpp"{}}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ <string>}}
\DoxyCodeLine{00007\ }
\DoxyCodeLine{00011\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classProjectileComponent}{ProjectileComponent}}\ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{classComponent}{Component}}}
\DoxyCodeLine{00012\ \{}
\DoxyCodeLine{00013\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00022\ \ \ \ \ \mbox{\hyperlink{classProjectileComponent}{ProjectileComponent}}(\mbox{\hyperlink{classRigidbodyComponent}{RigidbodyComponent}}\ *\_projectile,\ \mbox{\hyperlink{classTransformComponent}{TransformComponent}}\ *\_target,\ \textcolor{keywordtype}{bool}\ \_homing,\ \textcolor{keywordtype}{float}\ \_var);}
\DoxyCodeLine{00023\ }
\DoxyCodeLine{00027\ \ \ \ \ \mbox{\hyperlink{classProjectileComponent_afd2a72d0f2027c9a89240891741654d4}{\string~ProjectileComponent}}();}
\DoxyCodeLine{00028\ }
\DoxyCodeLine{00029\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classProjectileComponent_a38c9c6161b276691004f672991795b54}{Update}}(SDL\_Event\ e,\ \textcolor{keywordtype}{int}\ frame,\ std::vector<std::string>\ broadcastList)\ \textcolor{keyword}{override};}
\DoxyCodeLine{00030\ }
\DoxyCodeLine{00031\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classProjectileComponent_aee9362f7012bd2f0ca5088c63a175dd7}{Render}}(SDL\_Renderer\ *ren)\ \textcolor{keyword}{override};}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00034\ \ \ \ \ \mbox{\hyperlink{classRigidbodyComponent}{RigidbodyComponent}}\ *projectile;}
\DoxyCodeLine{00035\ \ \ \ \ \mbox{\hyperlink{classTransformComponent}{TransformComponent}}\ *target;\ }
\DoxyCodeLine{00036\ \ \ \ \ \textcolor{keywordtype}{bool}\ \mbox{\hyperlink{classProjectileComponent_afe0e491cb2d431b1f8f13ea15058cc11}{homing}};}
\DoxyCodeLine{00037\ \ \ \ \ \textcolor{keywordtype}{float}\ speed;}
\DoxyCodeLine{00038\ \ \ \ \ \textcolor{keywordtype}{float}\ angle;}
\DoxyCodeLine{00039\ }
\DoxyCodeLine{00040\ \ \ \ \ \textcolor{keywordtype}{float}\ gravity\ =\ 10;\ }
\DoxyCodeLine{00041\ \};}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00043\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
