\hypertarget{ResourceManager_8hpp_source}{}\doxysection{Resource\+Manager.\+hpp}
\label{ResourceManager_8hpp_source}\index{include/ResourceManager.hpp@{include/ResourceManager.hpp}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ RESOURCE\_MANAGER\_HPP}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ RESOURCE\_MANAGER\_HPP}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#if\ defined(LINUX)\ ||\ defined(MINGW)}}
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\ \ \ \ \#include\ <SDL2/SDL.h>}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#else\ }\textcolor{comment}{//\ This\ works\ for\ Mac}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\ \ \ \ \#include\ <SDL.h>}}
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#endif}}
\DoxyCodeLine{00009\ }
\DoxyCodeLine{00010\ \textcolor{preprocessor}{\#include\ <unordered\_map>}}
\DoxyCodeLine{00011\ \textcolor{preprocessor}{\#include\ <string>}}
\DoxyCodeLine{00012\ }
\DoxyCodeLine{00017\ \textcolor{keyword}{class\ }\mbox{\hyperlink{classResourceManager}{ResourceManager}}\{}
\DoxyCodeLine{00018\ \ \ \ \ \textcolor{keyword}{private}:}
\DoxyCodeLine{00023\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{classResourceManager_a3b32babd2e81909bbd90d7f2d566fadb}{ResourceManager}}();\ \ \textcolor{comment}{//\ Private\ Singleton}}
\DoxyCodeLine{00024\ \ \ \ \ \ \ \ \ \mbox{\hyperlink{classResourceManager_a3b32babd2e81909bbd90d7f2d566fadb}{ResourceManager}}(\mbox{\hyperlink{classResourceManager}{ResourceManager}}\ \textcolor{keyword}{const}\&);\ \textcolor{comment}{//\ Avoid\ copy\ constructor}}
\DoxyCodeLine{00025\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ operator=(\mbox{\hyperlink{classResourceManager}{ResourceManager}}\ \textcolor{keyword}{const}\&);\ \textcolor{comment}{//\ Don't\ allow\ assignment.}}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ \ \ \ \ \ \ \ \ std::unordered\_map<std::string,\ SDL\_Surface*>\ surfaces;}
\DoxyCodeLine{00028\ \ \ \ \ }
\DoxyCodeLine{00029\ \ \ \ \ \textcolor{keyword}{public}:}
\DoxyCodeLine{00035\ \ \ \ \ \ \ \ \ \textcolor{keyword}{static}\ \mbox{\hyperlink{classResourceManager}{ResourceManager}}\ \&\mbox{\hyperlink{classResourceManager_a98b11a6302bf0db4ffc81eea70512ee2}{GetInstance}}();}
\DoxyCodeLine{00036\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00043\ \ \ \ \ \ \ \ \ SDL\_Surface*\ \mbox{\hyperlink{classResourceManager_a5b5534fbba6f619d50c8b4896ec7c768}{LoadResource}}(std::string\ image\_filename);}
\DoxyCodeLine{00044\ }
\DoxyCodeLine{00045\ \ \ \ \ \ \ \ \ \textcolor{comment}{//\ TODO\ SPRINT\ 1\ (April\ 5):\ Create\ LoadResource\ overload\ for\ audio\ files}}
\DoxyCodeLine{00046\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00054\ \ \ \ \ \ \ \ \ SDL\_Surface*\ \mbox{\hyperlink{classResourceManager_a71c603bdc173cfe704788a0fbfe2ac7e}{GetResource}}(std::string\ key);}
\DoxyCodeLine{00055\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00059\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{classResourceManager_a19f196ba87bf74201b9e3f496edc78cd}{StartUp}}();}
\DoxyCodeLine{00060\ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00064\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{classResourceManager_ae5ed3ee26a3de63a04d4bb6542d5bbb0}{ShutDown}}();}
\DoxyCodeLine{00065\ \};}
\DoxyCodeLine{00066\ }
\DoxyCodeLine{00067\ \textcolor{preprocessor}{\#endif}}

\end{DoxyCode}
