\hypertarget{classTileMapComponent}{}\doxysection{Tile\+Map\+Component Class Reference}
\label{classTileMapComponent}\index{TileMapComponent@{TileMapComponent}}


{\ttfamily \#include $<$Tile\+Map.\+hpp$>$}



Inheritance diagram for Tile\+Map\+Component\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=192pt]{d0/dc6/classTileMapComponent__inherit__graph}
\end{center}
\end{figure}


Collaboration diagram for Tile\+Map\+Component\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=192pt]{d7/d9f/classTileMapComponent__coll__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{classTileMapComponent_a38f0a00635b41967a2cbfa7602c2de68}{Tile\+Map\+Component}} (std\+::string tile\+Sheet\+File\+Name, int rows, int cols, int \+\_\+\+Tile\+Width, int \+\_\+\+Tile\+Height, int \+\_\+mapX, int \+\_\+mapY, SDL\+\_\+\+Renderer $\ast$ren)
\item 
\mbox{\hyperlink{classTileMapComponent_a3d8289074c6943aee6194df04a28cd5b}{$\sim$\+Tile\+Map\+Component}} ()
\item 
void \mbox{\hyperlink{classTileMapComponent_abda1e3f6a76380b3628e69f33ad730bc}{Generate\+Simple\+Map}} ()
\item 
void \mbox{\hyperlink{classTileMapComponent_ad74bd890fb494d89958b4bc67686bdc6}{Print\+Map}} ()
\item 
void \mbox{\hyperlink{classTileMapComponent_aa663981f62c649650617475c2d2e03e3}{Set\+Tile}} (int x, int y, int type)
\item 
int \mbox{\hyperlink{classTileMapComponent_adb24ff5494a792ccefb9b2cf95bc9f28}{Get\+Tile\+Type}} (int x, int y)
\item 
void \mbox{\hyperlink{classTileMapComponent_a767f1d52ce56bde32a2366f18e6dcd50}{Update}} (SDL\+\_\+\+Event e, int frame, std\+::vector$<$ std\+::string $>$ broadcast\+List) override
\item 
void \mbox{\hyperlink{classTileMapComponent_a76dc9312b1d3c4b0193598e55661749f}{Render}} (SDL\+\_\+\+Renderer $\ast$ren) override
\item 
void \mbox{\hyperlink{classTileMapComponent_a93f28aae22fc29581cd56cc710760ce5}{Show\+Component\+Editor}} (bool $\ast$show\+Editor) override
\item 
const char $\ast$ \mbox{\hyperlink{classTileMapComponent_a4883b607bd0e6aec69e1d6a95e572eac}{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{classTileMapComponent_a58335dfd2e8e6585f4264e53dac9dac1}\label{classTileMapComponent_a58335dfd2e8e6585f4264e53dac9dac1} 
int {\bfseries m\+\_\+\+Rows}
\item 
\Hypertarget{classTileMapComponent_a1b95b9bac6ce592b5dec215512015e46}\label{classTileMapComponent_a1b95b9bac6ce592b5dec215512015e46} 
int {\bfseries m\+\_\+\+Cols}
\item 
\Hypertarget{classTileMapComponent_a4f1e05ce375a72c103e9c383b8ca4f48}\label{classTileMapComponent_a4f1e05ce375a72c103e9c383b8ca4f48} 
int {\bfseries m\+\_\+\+Tile\+Width}
\item 
\Hypertarget{classTileMapComponent_a1f59fd873fe1a7f912e8b9fc984d2b6b}\label{classTileMapComponent_a1f59fd873fe1a7f912e8b9fc984d2b6b} 
int {\bfseries m\+\_\+\+Tile\+Height}
\item 
\Hypertarget{classTileMapComponent_a34d11aab8a1b7bc8960ee776f1432402}\label{classTileMapComponent_a34d11aab8a1b7bc8960ee776f1432402} 
int {\bfseries m\+\_\+\+MapX}
\item 
\Hypertarget{classTileMapComponent_a915219316203315606fc9e0527efdce3}\label{classTileMapComponent_a915219316203315606fc9e0527efdce3} 
int {\bfseries m\+\_\+\+MapY}
\item 
\Hypertarget{classTileMapComponent_a438bf12a395bed63dd48d76d19e9bfb7}\label{classTileMapComponent_a438bf12a395bed63dd48d76d19e9bfb7} 
SDL\+\_\+\+Surface $\ast$ {\bfseries m\+\_\+\+Tile\+Sprite\+Sheet}
\item 
\Hypertarget{classTileMapComponent_a7fc76b57ec307f1e6266730105964aae}\label{classTileMapComponent_a7fc76b57ec307f1e6266730105964aae} 
SDL\+\_\+\+Texture $\ast$ {\bfseries m\+\_\+\+Texture}
\item 
\Hypertarget{classTileMapComponent_ac9de9e1647dcbb294fe815f936af033a}\label{classTileMapComponent_ac9de9e1647dcbb294fe815f936af033a} 
int $\ast$ {\bfseries m\+\_\+\+Tiles}
\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}
This is a minimal implementation of a \doxylink{classTileMapComponent}{Tile\+Map\+Component} 

\doxysubsection{Constructor \& Destructor Documentation}
\Hypertarget{classTileMapComponent_a38f0a00635b41967a2cbfa7602c2de68}\label{classTileMapComponent_a38f0a00635b41967a2cbfa7602c2de68} 
\index{TileMapComponent@{TileMapComponent}!TileMapComponent@{TileMapComponent}}
\index{TileMapComponent@{TileMapComponent}!TileMapComponent@{TileMapComponent}}
\doxysubsubsection{\texorpdfstring{TileMapComponent()}{TileMapComponent()}}
{\footnotesize\ttfamily Tile\+Map\+Component\+::\+Tile\+Map\+Component (\begin{DoxyParamCaption}\item[{std\+::string}]{tile\+Sheet\+File\+Name,  }\item[{int}]{rows,  }\item[{int}]{cols,  }\item[{int}]{\+\_\+\+Tile\+Width,  }\item[{int}]{\+\_\+\+Tile\+Height,  }\item[{int}]{\+\_\+mapX,  }\item[{int}]{\+\_\+mapY,  }\item[{SDL\+\_\+\+Renderer $\ast$}]{ren }\end{DoxyParamCaption})}

Constructor for a tilemap \Hypertarget{classTileMapComponent_a3d8289074c6943aee6194df04a28cd5b}\label{classTileMapComponent_a3d8289074c6943aee6194df04a28cd5b} 
\index{TileMapComponent@{TileMapComponent}!````~TileMapComponent@{$\sim$TileMapComponent}}
\index{````~TileMapComponent@{$\sim$TileMapComponent}!TileMapComponent@{TileMapComponent}}
\doxysubsubsection{\texorpdfstring{$\sim$TileMapComponent()}{\string~TileMapComponent()}}
{\footnotesize\ttfamily Tile\+Map\+Component\+::$\sim$\+Tile\+Map\+Component (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Destructor for a tilemap 

\doxysubsection{Member Function Documentation}
\Hypertarget{classTileMapComponent_a4883b607bd0e6aec69e1d6a95e572eac}\label{classTileMapComponent_a4883b607bd0e6aec69e1d6a95e572eac} 
\index{TileMapComponent@{TileMapComponent}!ComponentTypeName@{ComponentTypeName}}
\index{ComponentTypeName@{ComponentTypeName}!TileMapComponent@{TileMapComponent}}
\doxysubsubsection{\texorpdfstring{ComponentTypeName()}{ComponentTypeName()}}
{\footnotesize\ttfamily const char $\ast$ Tile\+Map\+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{classTileMapComponent_abda1e3f6a76380b3628e69f33ad730bc}\label{classTileMapComponent_abda1e3f6a76380b3628e69f33ad730bc} 
\index{TileMapComponent@{TileMapComponent}!GenerateSimpleMap@{GenerateSimpleMap}}
\index{GenerateSimpleMap@{GenerateSimpleMap}!TileMapComponent@{TileMapComponent}}
\doxysubsubsection{\texorpdfstring{GenerateSimpleMap()}{GenerateSimpleMap()}}
{\footnotesize\ttfamily void Tile\+Map\+Component\+::\+Generate\+Simple\+Map (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Temporary function for generating a simple map to display some tiles Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d56/classTileMapComponent_abda1e3f6a76380b3628e69f33ad730bc_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d56/classTileMapComponent_abda1e3f6a76380b3628e69f33ad730bc_icgraph}
\end{center}
\end{figure}
\Hypertarget{classTileMapComponent_adb24ff5494a792ccefb9b2cf95bc9f28}\label{classTileMapComponent_adb24ff5494a792ccefb9b2cf95bc9f28} 
\index{TileMapComponent@{TileMapComponent}!GetTileType@{GetTileType}}
\index{GetTileType@{GetTileType}!TileMapComponent@{TileMapComponent}}
\doxysubsubsection{\texorpdfstring{GetTileType()}{GetTileType()}}
{\footnotesize\ttfamily int Tile\+Map\+Component\+::\+Get\+Tile\+Type (\begin{DoxyParamCaption}\item[{int}]{x,  }\item[{int}]{y }\end{DoxyParamCaption})}

Return the tile type at an x and y position Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d56/classTileMapComponent_adb24ff5494a792ccefb9b2cf95bc9f28_icgraph}
\end{center}
\end{figure}
\Hypertarget{classTileMapComponent_ad74bd890fb494d89958b4bc67686bdc6}\label{classTileMapComponent_ad74bd890fb494d89958b4bc67686bdc6} 
\index{TileMapComponent@{TileMapComponent}!PrintMap@{PrintMap}}
\index{PrintMap@{PrintMap}!TileMapComponent@{TileMapComponent}}
\doxysubsubsection{\texorpdfstring{PrintMap()}{PrintMap()}}
{\footnotesize\ttfamily void Tile\+Map\+Component\+::\+Print\+Map (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

Function for printing text to console Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d56/classTileMapComponent_ad74bd890fb494d89958b4bc67686bdc6_cgraph}
\end{center}
\end{figure}
Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d56/classTileMapComponent_ad74bd890fb494d89958b4bc67686bdc6_icgraph}
\end{center}
\end{figure}
\Hypertarget{classTileMapComponent_a76dc9312b1d3c4b0193598e55661749f}\label{classTileMapComponent_a76dc9312b1d3c4b0193598e55661749f} 
\index{TileMapComponent@{TileMapComponent}!Render@{Render}}
\index{Render@{Render}!TileMapComponent@{TileMapComponent}}
\doxysubsubsection{\texorpdfstring{Render()}{Render()}}
{\footnotesize\ttfamily void Tile\+Map\+Component\+::\+Render (\begin{DoxyParamCaption}\item[{SDL\+\_\+\+Renderer $\ast$}]{ren }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [override]}, {\ttfamily [virtual]}}

Renders the component (if it has anything to render)


\begin{DoxyParams}{Parameters}
{\em ren} & the SDL renderer to be displayed upon \\
\hline
\end{DoxyParams}
\begin{DoxySeeAlso}{See also}
\doxylink{classIGraphicsEngineRenderer}{IGraphics\+Engine\+Renderer} 
\end{DoxySeeAlso}


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

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d56/classTileMapComponent_a76dc9312b1d3c4b0193598e55661749f_cgraph}
\end{center}
\end{figure}
\Hypertarget{classTileMapComponent_aa663981f62c649650617475c2d2e03e3}\label{classTileMapComponent_aa663981f62c649650617475c2d2e03e3} 
\index{TileMapComponent@{TileMapComponent}!SetTile@{SetTile}}
\index{SetTile@{SetTile}!TileMapComponent@{TileMapComponent}}
\doxysubsubsection{\texorpdfstring{SetTile()}{SetTile()}}
{\footnotesize\ttfamily void Tile\+Map\+Component\+::\+Set\+Tile (\begin{DoxyParamCaption}\item[{int}]{x,  }\item[{int}]{y,  }\item[{int}]{type }\end{DoxyParamCaption})}

Set the \textquotesingle{}type\textquotesingle{} of tile at an x and y position Here is the caller graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d56/classTileMapComponent_aa663981f62c649650617475c2d2e03e3_icgraph}
\end{center}
\end{figure}
\Hypertarget{classTileMapComponent_a93f28aae22fc29581cd56cc710760ce5}\label{classTileMapComponent_a93f28aae22fc29581cd56cc710760ce5} 
\index{TileMapComponent@{TileMapComponent}!ShowComponentEditor@{ShowComponentEditor}}
\index{ShowComponentEditor@{ShowComponentEditor}!TileMapComponent@{TileMapComponent}}
\doxysubsubsection{\texorpdfstring{ShowComponentEditor()}{ShowComponentEditor()}}
{\footnotesize\ttfamily void Tile\+Map\+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}}.

Here is the call graph for this function\+:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{d9/d56/classTileMapComponent_a93f28aae22fc29581cd56cc710760ce5_cgraph}
\end{center}
\end{figure}
\Hypertarget{classTileMapComponent_a767f1d52ce56bde32a2366f18e6dcd50}\label{classTileMapComponent_a767f1d52ce56bde32a2366f18e6dcd50} 
\index{TileMapComponent@{TileMapComponent}!Update@{Update}}
\index{Update@{Update}!TileMapComponent@{TileMapComponent}}
\doxysubsubsection{\texorpdfstring{Update()}{Update()}}
{\footnotesize\ttfamily void Tile\+Map\+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]}}

Draw all of the tiles in the tilemap 

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]{d9/d56/classTileMapComponent_a767f1d52ce56bde32a2366f18e6dcd50_cgraph}
\end{center}
\end{figure}


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