Improvements.
[supertux.git] / lib / special / sprite_manager.h
index 9b240a0..8663081 100644 (file)
 
 #include <map>
 
-#include "special/sprite.h"
-
-class SpriteManager
-{
- private:
-  typedef std::map<std::string, Sprite*> 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);
-};
+#include "../special/sprite.h"
+
+namespace SuperTux
+  {
+
+  class SpriteManager
+    {
+    private:
+      typedef std::map<std::string, Sprite*> 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);
+    };
+
+} //namespace SuperTux
 
 #endif /*SUPERTUX_SPRITE_MANAGER_H*/