#ifndef SPRITELOADER_H_INCLUDED #define SPRITELOADER_H_INCLUDED #include <iostream> #include <string> #include <map> #include <SDL/SDL.h> #undef main class SpriteLoader { public: SpriteLoader(); SpriteLoader(std::string folder); ~SpriteLoader(); SDL_Surface* takeSprite(std::string nom); void addSprite(std::string nom, SDL_Surface* sprite); void assignFolder(std::string folder); private: std::string m_folder; std::map<std::string, SDL_Surface*>::iterator m_it; std::map<std::string, SDL_Surface*> m_paquet; }; #endif // SPRITELOADER_H_INCLUDED