X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fspecial%2Fsprite_manager.h;h=2925e68df0f66cc6ba4bbb1e671391ffa4ea96e6;hb=b7257628126eb59bdca2052e9369d61edcda6b0f;hp=a2e4340e8d1f6535b80c35c34482bb594dcbcdab;hpb=edaacb3651cf0560314dd008d7243be4b3b2f8c6;p=supertux.git diff --git a/lib/special/sprite_manager.h b/lib/special/sprite_manager.h index a2e4340e8..2925e68df 100644 --- a/lib/special/sprite_manager.h +++ b/lib/special/sprite_manager.h @@ -22,27 +22,26 @@ #include -#include "special/sprite.h" +#include "sprite.h" namespace SuperTux - { +{ class SpriteManager - { - private: - typedef std::map Sprites; - Sprites sprites; - public: - SpriteManager(const std::string& filename); - ~SpriteManager(); - - void load_resfile(const std::string& filename); - /** loads a sprite. - * WARNING: You must not delete the returned object. - */ - Sprite* load(const std::string& name); - }; - + { + private: + typedef std::map Sprites; + Sprites sprites; + public: + SpriteManager(const std::string& filename); + ~SpriteManager(); + + void load_resfile(const std::string& filename); + /** loads a sprite. + * (contrary to the old api you have to delete the sprite!) + */ + Sprite* create(const std::string& name); + }; } //namespace SuperTux #endif /*SUPERTUX_SPRITE_MANAGER_H*/