\hypertarget{TransformComponent_8hpp_source}{}\doxysection{Transform\+Component.\+hpp}
\label{TransformComponent_8hpp_source}\index{include/TransformComponent.hpp@{include/TransformComponent.hpp}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ TRANSFORMCOMPONENT\_HPP}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ TRANSFORMCOMPONENT\_HPP}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#include\ "{}TinyMath.hpp"{}}}
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ "{}Component.hpp"{}}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ <string>}}
\DoxyCodeLine{00007\ }
\DoxyCodeLine{00012\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classTransformComponent}{TransformComponent}}\ :\ \textcolor{keyword}{public}\ \mbox{\hyperlink{classComponent}{Component}}\ \{}
\DoxyCodeLine{00013\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00020\ \ \ \ \ \mbox{\hyperlink{classTransformComponent}{TransformComponent}}(\textcolor{keywordtype}{int}\ \_x,\ \textcolor{keywordtype}{int}\ \_y);}
\DoxyCodeLine{00021\ }
\DoxyCodeLine{00025\ \ \ \ \ \mbox{\hyperlink{classTransformComponent_a37d5d34a3695eafc8b8cbf37905e756f}{\string~TransformComponent}}();}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00033\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classTransformComponent_aa3cd2785878a82d02103778d04761a32}{SetTransform}}(\mbox{\hyperlink{structVec2D}{Vec2D}}\ \_pos);}
\DoxyCodeLine{00034\ }
\DoxyCodeLine{00042\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classTransformComponent_aa3cd2785878a82d02103778d04761a32}{SetTransform}}(\textcolor{keywordtype}{int}\ \_x,\ \textcolor{keywordtype}{int}\ \_y);}
\DoxyCodeLine{00043\ }
\DoxyCodeLine{00044\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classTransformComponent_ae808ac3be0106babc97e92afb8f93a96}{Update}}(SDL\_Event\ e,\ \textcolor{keywordtype}{int}\ frame,\ std::vector<std::string>\ broadcastList)\ \textcolor{keyword}{override};}
\DoxyCodeLine{00045\ }
\DoxyCodeLine{00046\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classTransformComponent_aedc094eb1922c3cfe116e6d67191400e}{Render}}(SDL\_Renderer\ *ren)\ \textcolor{keyword}{override};}
\DoxyCodeLine{00047\ }
\DoxyCodeLine{00048\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{classTransformComponent_a2db75c6b70fcf13c086f02ac41953057}{ShowComponentEditor}}(\textcolor{keywordtype}{bool}*\ showEditor)\ \textcolor{keyword}{override};}
\DoxyCodeLine{00049\ }
\DoxyCodeLine{00055\ \ \ \ \ \mbox{\hyperlink{structVec2D}{Vec2D}}\ \mbox{\hyperlink{classTransformComponent_a5452c308a26521441745d3edc1ab5d4d}{getPos}}()\ \textcolor{keyword}{const};}
\DoxyCodeLine{00056\ }
\DoxyCodeLine{00057\ \ \ \ \ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}*\ \mbox{\hyperlink{classTransformComponent_aebd4b99e08cce915dd3929ad54befcbc}{ComponentTypeName}}()\textcolor{keyword}{\ override\ }\{\textcolor{keywordflow}{return}\ \textcolor{stringliteral}{"{}Transform\ Component"{}};\}}
\DoxyCodeLine{00058\ }
\DoxyCodeLine{00059\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00060\ \ \ \ \ \mbox{\hyperlink{structVec2D}{Vec2D}}\ position;}
\DoxyCodeLine{00061\ \ \ \ \ std::vector<ComponentTag>\ tags\ =\ \{ComponentTag::Position\};}
\DoxyCodeLine{00062\ \};}
\DoxyCodeLine{00063\ }
\DoxyCodeLine{00064\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
