\hypertarget{classControllerComponent}{}\doxysection{Controller\+Component Class Reference}
\label{classControllerComponent}\index{ControllerComponent@{ControllerComponent}}


{\ttfamily \#include $<$Controller\+Component.\+hpp$>$}



Inheritance diagram for Controller\+Component\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=201pt]{df/d2d/classControllerComponent__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for Controller\+Component\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=284pt]{d3/d73/classControllerComponent__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classControllerComponent_a9e9959a30979e957650daeb80bcdfbdf}{Controller\+Component}} (\mbox{\hyperlink{classTransformComponent}{Transform\+Component}} $\ast$\+\_\+transform, \mbox{\hyperlink{structVec2D}{Vec2D}} delta\+Pos)
\item 
\mbox{\hyperlink{classControllerComponent_a2a874e5d561bdc75d5f8e75603135b0f}{$\sim$\+Controller\+Component}} ()
\item 
void \mbox{\hyperlink{classControllerComponent_a15980f62cf3400a2829e78d6e0073ea1}{Update}} (SDL\+\_\+\+Event e, int frame, std\+::vector$<$ std\+::string $>$ broadcast\+List) override
\item 
void \mbox{\hyperlink{classControllerComponent_ac55c98ab7c759f014314998b9db372a4}{Show\+Component\+Editor}} (bool $\ast$show\+Editor) override
\item 
const char $\ast$ \mbox{\hyperlink{classControllerComponent_a8bf49679c87b14a4eb1e90e8046b0b67}{Component\+Type\+Name}} () override
\end{DoxyCompactItemize}
\doxysubsubsection*{Public Member Functions inherited from \mbox{\hyperlink{classComponent}{Component}}}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classComponent_a8775db6d1a2c1afc2e77cd3c8f39da6f}{Component}} ()
\item 
\mbox{\hyperlink{classComponent_ab8378fa275af98e568a7e91d33d867af}{$\sim$\+Component}} ()
\item 
virtual void \mbox{\hyperlink{classComponent_a9c764c2a5607ef52629458d361ebf16e}{Update}} (SDL\+\_\+\+Event e, int frame, std\+::vector$<$ std\+::string $>$ broadcast\+List)
\item 
virtual void \mbox{\hyperlink{classComponent_ab856bdb8c4357a080d7abcf99871a573}{Render}} (SDL\+\_\+\+Renderer $\ast$ren)
\item 
virtual void \mbox{\hyperlink{classComponent_a92af5bb942ea9633515a0c0e16a0bb8c}{Show\+Component\+Editor}} (bool $\ast$show\+Editor)
\item 
virtual bool \mbox{\hyperlink{classComponent_aed93a0ec70ebc71f34f02eb0a3ad4006}{Has\+Tag}} (Component\+Tag t)
\item 
virtual const char $\ast$ \mbox{\hyperlink{classComponent_a6ad359e7f57daa4ba249aaf5c88da052}{Component\+Type\+Name}} ()
\item 
void \mbox{\hyperlink{classComponent_aea8f0f460a62d86183020bd667b6cbf0}{Parse\+And\+Update\+Broadcast}} (std\+::vector$<$ std\+::string $>$ broadcast\+List)
\end{DoxyCompactItemize}
\doxysubsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classControllerComponent_afb14140f6f4754cbb3e0914d042023b1}\label{classControllerComponent_afb14140f6f4754cbb3e0914d042023b1} 
\mbox{\hyperlink{structVec2D}{Vec2D}} {\bfseries delta\+Pos}
\item 
\Hypertarget{classControllerComponent_a53d602ca4032751d4fe10f446e939f77}\label{classControllerComponent_a53d602ca4032751d4fe10f446e939f77} 
\mbox{\hyperlink{classTransformComponent}{Transform\+Component}} $\ast$ {\bfseries transform}
\end{DoxyCompactItemize}
\doxysubsection*{Additional Inherited Members}
\doxysubsubsection*{Protected Attributes inherited from \mbox{\hyperlink{classComponent}{Component}}}
\begin{DoxyCompactItemize}
\item 
\Hypertarget{classComponent_ab9b45a6a11e943c86770a1b3e085c25c}\label{classComponent_ab9b45a6a11e943c86770a1b3e085c25c} 
std\+::vector$<$ Component\+Tag $>$ {\bfseries tags}
\item 
\Hypertarget{classComponent_a929d29b8cdb9447b70f5e7d990c7d0f0}\label{classComponent_a929d29b8cdb9447b70f5e7d990c7d0f0} 
std\+::vector$<$ std\+::string $>$ {\bfseries previous\+Broadcasts}
\item 
\Hypertarget{classComponent_a7d03b8c23a6fa95fd83f08ad88cd59ee}\label{classComponent_a7d03b8c23a6fa95fd83f08ad88cd59ee} 
std\+::vector$<$ std\+::string $>$ {\bfseries pending\+Broadcasts}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Allows a \doxylink{classGameObject}{Game\+Object} to be controlled via player input. 

\doxysubsection{Constructor \& Destructor Documentation}
\Hypertarget{classControllerComponent_a9e9959a30979e957650daeb80bcdfbdf}\label{classControllerComponent_a9e9959a30979e957650daeb80bcdfbdf} 
\index{ControllerComponent@{ControllerComponent}!ControllerComponent@{ControllerComponent}}
\index{ControllerComponent@{ControllerComponent}!ControllerComponent@{ControllerComponent}}
\doxysubsubsection{\texorpdfstring{ControllerComponent()}{ControllerComponent()}}
{\footnotesize\ttfamily Controller\+Component\+::\+Controller\+Component (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{classTransformComponent}{Transform\+Component}} $\ast$}]{\+\_\+transform,  }\item[{\mbox{\hyperlink{structVec2D}{Vec2D}}}]{delta\+Pos }\end{DoxyParamCaption})}

Construct a new Controller \doxylink{classComponent}{Component} object,


\begin{DoxyParams}{Parameters}
{\em \+\_\+transform} & the position of the containing \doxylink{classGameObject}{Game\+Object} \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\doxylink{classTransformComponent}{Transform\+Component} 
\end{DoxySeeAlso}

\begin{DoxyParams}{Parameters}
{\em delta\+Pos} & how much the position changes given input \\
\hline
\end{DoxyParams}
\Hypertarget{classControllerComponent_a2a874e5d561bdc75d5f8e75603135b0f}\label{classControllerComponent_a2a874e5d561bdc75d5f8e75603135b0f} 
\index{ControllerComponent@{ControllerComponent}!````~ControllerComponent@{$\sim$ControllerComponent}}
\index{````~ControllerComponent@{$\sim$ControllerComponent}!ControllerComponent@{ControllerComponent}}
\doxysubsubsection{\texorpdfstring{$\sim$ControllerComponent()}{\string~ControllerComponent()}}
{\footnotesize\ttfamily Controller\+Component\+::$\sim$\+Controller\+Component (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Destroy the Controller \doxylink{classComponent}{Component} object. 

\doxysubsection{Member Function Documentation}
\Hypertarget{classControllerComponent_a8bf49679c87b14a4eb1e90e8046b0b67}\label{classControllerComponent_a8bf49679c87b14a4eb1e90e8046b0b67} 
\index{ControllerComponent@{ControllerComponent}!ComponentTypeName@{ComponentTypeName}}
\index{ComponentTypeName@{ComponentTypeName}!ControllerComponent@{ControllerComponent}}
\doxysubsubsection{\texorpdfstring{ComponentTypeName()}{ComponentTypeName()}}
{\footnotesize\ttfamily const char $\ast$ Controller\+Component\+::\+Component\+Type\+Name (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [virtual]}}

The name of the component type. Used by the GUI

\begin{DoxySeeAlso}{See also}
\doxylink{classGameMakerGUI_a39546dd352c9c5d198f61e34011131b4}{Game\+Maker\+GUI\+::\+Create\+Component()} 
\end{DoxySeeAlso}
\begin{DoxyReturn}{Returns}
the name of the component 
\end{DoxyReturn}


Reimplemented from \mbox{\hyperlink{classComponent_a6ad359e7f57daa4ba249aaf5c88da052}{Component}}.

\Hypertarget{classControllerComponent_ac55c98ab7c759f014314998b9db372a4}\label{classControllerComponent_ac55c98ab7c759f014314998b9db372a4} 
\index{ControllerComponent@{ControllerComponent}!ShowComponentEditor@{ShowComponentEditor}}
\index{ShowComponentEditor@{ShowComponentEditor}!ControllerComponent@{ControllerComponent}}
\doxysubsubsection{\texorpdfstring{ShowComponentEditor()}{ShowComponentEditor()}}
{\footnotesize\ttfamily void Controller\+Component\+::\+Show\+Component\+Editor (\begin{DoxyParamCaption}\item[{bool $\ast$}]{show\+Editor }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}

Using Imgui, render an editor for this component

\begin{DoxySeeAlso}{See also}
\doxylink{classGameMakerGUI_a2cc6da97c0f4b45175ddc9683308866e}{Game\+Maker\+GUI\+::\+Render\+Editor()} 
\end{DoxySeeAlso}

\begin{DoxyParams}{Parameters}
{\em show\+Editor} & \\
\hline
\end{DoxyParams}


Reimplemented from \mbox{\hyperlink{classComponent_a92af5bb942ea9633515a0c0e16a0bb8c}{Component}}.

\Hypertarget{classControllerComponent_a15980f62cf3400a2829e78d6e0073ea1}\label{classControllerComponent_a15980f62cf3400a2829e78d6e0073ea1} 
\index{ControllerComponent@{ControllerComponent}!Update@{Update}}
\index{Update@{Update}!ControllerComponent@{ControllerComponent}}
\doxysubsubsection{\texorpdfstring{Update()}{Update()}}
{\footnotesize\ttfamily void Controller\+Component\+::\+Update (\begin{DoxyParamCaption}\item[{SDL\+\_\+\+Event}]{e,  }\item[{int}]{frame,  }\item[{std\+::vector$<$ std\+::string $>$}]{broadcast\+List }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}

Uses any input in the SDL\+\_\+\+Event to move the \doxylink{classGameObject}{Game\+Object}.


\begin{DoxyParams}{Parameters}
{\em e} & checked for any controller input \\
\hline
{\em frame} & irrelevant for this implementation \\
\hline
{\em broadcast\+List} & irrelevant for this implementation \\
\hline
\end{DoxyParams}


Reimplemented from \mbox{\hyperlink{classComponent_a9c764c2a5607ef52629458d361ebf16e}{Component}}.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d1/ddc/classControllerComponent_a15980f62cf3400a2829e78d6e0073ea1_cgraph}
\end{center}
\end{figure}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
include/Controller\+Component.\+hpp\item 
src/Controller\+Component.\+cpp\end{DoxyCompactItemize}
