#ifndef DUNE_DATACACHE_H #define DUNE_DATACACHE_H #include #include #include #include "SDL_mixer.h" #include "SDL_image.h" #include "singleton.h" #include "houses.h" #include "SoundPlayerClass.h" typedef std::map images; class DataCache: public Singleton { friend class Singleton; friend class Singleton; public: void add_image(int ID, std::string path); void add_sound(int ID, std::string path); void load_data(); SDL_Surface * get_image(int ID, int house = HOUSE_HARKONNEN); Mix_Chunk * get_sound(int ID); protected: DataCache(); std::vector m_houseimages; std::map m_sounds; }; #endif // DUNE_DATACACHE_H