\hypertarget{HealthComponent_8h_source}{}\doxysection{Health\+Component.\+h}
\label{HealthComponent_8h_source}\index{include/HealthComponent.h@{include/HealthComponent.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{comment}{//}}
\DoxyCodeLine{00002\ \textcolor{comment}{//\ Created\ by\ gigaw\ on\ 4/4/2023.}}
\DoxyCodeLine{00003\ \textcolor{comment}{//}}
\DoxyCodeLine{00004\ }
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#ifndef\ FINALPROJECT\_JAGGUARS\_HEALTHCOMPONENT\_H}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#define\ FINALPROJECT\_JAGGUARS\_HEALTHCOMPONENT\_H}}
\DoxyCodeLine{00007\ }
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#include\ "{}Component.hpp"{}}}
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#include\ <string>}}
\DoxyCodeLine{00010\ }
\DoxyCodeLine{00014\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classHealthComponent}{HealthComponent}}\ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{classComponent}{Component}}\ \{}
\DoxyCodeLine{00015\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00021\ \ \ \ \ \mbox{\hyperlink{classHealthComponent}{HealthComponent}}(\textcolor{keywordtype}{int}\ totalHealth);}
\DoxyCodeLine{00022\ }
\DoxyCodeLine{00026\ \ \ \ \ \mbox{\hyperlink{classHealthComponent_aac06fe69b879a4eb47ddce62f18ca2f9}{\string~HealthComponent}}();}
\DoxyCodeLine{00027\ }
\DoxyCodeLine{00028\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classHealthComponent_ab754979c3a0ac83d2fb7e163dd168d18}{Update}}(SDL\_Event\ r,\ \textcolor{keywordtype}{int}\ frame,\ std::vector<std::string>\ broadcastList)\ \textcolor{keyword}{override};}
\DoxyCodeLine{00029\ }
\DoxyCodeLine{00030\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classHealthComponent_a196e71923fbf5458a243846e5b71fa6f}{Render}}(SDL\_Renderer\ *ren)\ \textcolor{keyword}{override};}
\DoxyCodeLine{00031\ }
\DoxyCodeLine{00032\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classHealthComponent_a8ee269e60d65fb673c09ed1678ee433d}{ShowComponentEditor}}(\textcolor{keywordtype}{bool}*\ showEditor)\ \textcolor{keyword}{override};}
\DoxyCodeLine{00033\ }
\DoxyCodeLine{00039\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classHealthComponent_a1318c479f692c3dede234ecbb2530558}{SetHealth}}(\textcolor{keywordtype}{int}\ newHealth);}
\DoxyCodeLine{00040\ }
\DoxyCodeLine{00046\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classHealthComponent_a453210b44b4483b3e74fdff60fc832bb}{UpdateHealth}}(\textcolor{keywordtype}{int}\ changeInHealth);}
\DoxyCodeLine{00047\ }
\DoxyCodeLine{00048\ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}*\ \mbox{\hyperlink{classHealthComponent_a14144ba98cdc2ce2fbb96ec31cf38a6d}{ComponentTypeName}}()\textcolor{keyword}{\ override\ }\{\textcolor{keywordflow}{return}\ \textcolor{stringliteral}{"{}Health\ Component"{}};\}}
\DoxyCodeLine{00049\ }
\DoxyCodeLine{00050\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00051\ \ \ \ \ \textcolor{keywordtype}{int}\ m\_totalHealth;}
\DoxyCodeLine{00052\ \ \ \ \ \textcolor{keywordtype}{int}\ m\_currentHealth;}
\DoxyCodeLine{00053\ }
\DoxyCodeLine{00054\ \};}
\DoxyCodeLine{00055\ }
\DoxyCodeLine{00056\ }
\DoxyCodeLine{00057\ \textcolor{preprocessor}{\#endif\ }\textcolor{comment}{//FINALPROJECT\_JAGGUARS\_HEALTHCOMPONENT\_H}}

\end{DoxyCode}
