<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.7" xml:lang="en-US">
  <compounddef id="db/d16/ResourceManager_8hpp" kind="file" language="C++">
    <compoundname>ResourceManager.hpp</compoundname>
    <includes local="no">SDL.h</includes>
    <includes local="no">unordered_map</includes>
    <includes local="no">string</includes>
    <includedby refid="d8/d44/ResourceManager_8cpp" local="yes">src/ResourceManager.cpp</includedby>
    <includedby refid="d0/dff/Sprite_8cpp" local="yes">src/Sprite.cpp</includedby>
    <incdepgraph>
      <node id="1">
        <label>include/ResourceManager.hpp</label>
        <link refid="db/d16/ResourceManager_8hpp"/>
        <childnode refid="2" relation="include">
        </childnode>
        <childnode refid="3" relation="include">
        </childnode>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="2">
        <label>SDL.h</label>
      </node>
      <node id="4">
        <label>string</label>
      </node>
      <node id="3">
        <label>unordered_map</label>
      </node>
    </incdepgraph>
    <innerclass refid="de/d6b/classResourceManager" prot="public">ResourceManager</innerclass>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="preprocessor">#ifndef<sp/>RESOURCE_MANAGER_HPP</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>RESOURCE_MANAGER_HPP</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="3"><highlight class="normal"></highlight></codeline>
<codeline lineno="4"><highlight class="normal"></highlight><highlight class="preprocessor">#if<sp/>defined(LINUX)<sp/>||<sp/>defined(MINGW)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="5"><highlight class="normal"></highlight><highlight class="preprocessor"><sp/><sp/><sp/><sp/>#include<sp/>&lt;SDL2/SDL.h&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="6"><highlight class="normal"></highlight><highlight class="preprocessor">#else<sp/></highlight><highlight class="comment">//<sp/>This<sp/>works<sp/>for<sp/>Mac</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="7"><highlight class="normal"></highlight><highlight class="preprocessor"><sp/><sp/><sp/><sp/>#include<sp/>&lt;SDL.h&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="8"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="9"><highlight class="normal"></highlight></codeline>
<codeline lineno="10"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;unordered_map&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="11"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;string&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="12"><highlight class="normal"></highlight></codeline>
<codeline lineno="17" refid="de/d6b/classResourceManager" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="de/d6b/classResourceManager" kindref="compound">ResourceManager</ref>{</highlight></codeline>
<codeline lineno="18"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="de/d6b/classResourceManager_1a3b32babd2e81909bbd90d7f2d566fadb" kindref="member">ResourceManager</ref>();<sp/><sp/></highlight><highlight class="comment">//<sp/>Private<sp/>Singleton</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="de/d6b/classResourceManager_1a3b32babd2e81909bbd90d7f2d566fadb" kindref="member">ResourceManager</ref>(<ref refid="de/d6b/classResourceManager" kindref="compound">ResourceManager</ref><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">&amp;);<sp/></highlight><highlight class="comment">//<sp/>Avoid<sp/>copy<sp/>constructor</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>operator=(<ref refid="de/d6b/classResourceManager" kindref="compound">ResourceManager</ref><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">&amp;);<sp/></highlight><highlight class="comment">//<sp/>Don&apos;t<sp/>allow<sp/>assignment.</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="26"><highlight class="normal"></highlight></codeline>
<codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::unordered_map&lt;std::string,<sp/>SDL_Surface*&gt;<sp/>surfaces;</highlight></codeline>
<codeline lineno="28"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="29"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
<codeline lineno="35"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="de/d6b/classResourceManager" kindref="compound">ResourceManager</ref><sp/>&amp;<ref refid="de/d6b/classResourceManager_1a98b11a6302bf0db4ffc81eea70512ee2" kindref="member">GetInstance</ref>();</highlight></codeline>
<codeline lineno="36"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>SDL_Surface*<sp/><ref refid="de/d6b/classResourceManager_1a5b5534fbba6f619d50c8b4896ec7c768" kindref="member">LoadResource</ref>(std::string<sp/>image_filename);</highlight></codeline>
<codeline lineno="44"><highlight class="normal"></highlight></codeline>
<codeline lineno="45"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>TODO<sp/>SPRINT<sp/>1<sp/>(April<sp/>5):<sp/>Create<sp/>LoadResource<sp/>overload<sp/>for<sp/>audio<sp/>files</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="46"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>SDL_Surface*<sp/><ref refid="de/d6b/classResourceManager_1a71c603bdc173cfe704788a0fbfe2ac7e" kindref="member">GetResource</ref>(std::string<sp/>key);</highlight></codeline>
<codeline lineno="55"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="59" refid="de/d6b/classResourceManager_1a19f196ba87bf74201b9e3f496edc78cd" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="de/d6b/classResourceManager_1a19f196ba87bf74201b9e3f496edc78cd" kindref="member">StartUp</ref>();</highlight></codeline>
<codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight></codeline>
<codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="de/d6b/classResourceManager_1ae5ed3ee26a3de63a04d4bb6542d5bbb0" kindref="member">ShutDown</ref>();</highlight></codeline>
<codeline lineno="65"><highlight class="normal">};</highlight></codeline>
<codeline lineno="66"><highlight class="normal"></highlight></codeline>
<codeline lineno="67"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
    </programlisting>
    <location file="include/ResourceManager.hpp"/>
  </compounddef>
</doxygen>
