X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsprite%2Fsprite_manager.hpp;h=070a29420aa441e91791d4805e64006103eea2e4;hb=HEAD;hp=01ec930990f6280ce7a06dc75b194920cdd1e1f1;hpb=85a02e771388b133940b45e29768e697a29c1a36;p=supertux.git diff --git a/src/sprite/sprite_manager.hpp b/src/sprite/sprite_manager.hpp index 01ec93099..070a29420 100644 --- a/src/sprite/sprite_manager.hpp +++ b/src/sprite/sprite_manager.hpp @@ -1,46 +1,48 @@ -// $Id$ -// // SuperTux -// Copyright (C) 2004 Ingo Ruhnke +// Copyright (C) 2006 Matthias Braun // -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either version 2 -// of the License, or (at your option) any later version. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +// along with this program. If not, see . -#ifndef SUPERTUX_SPRITE_MANAGER_H -#define SUPERTUX_SPRITE_MANAGER_H +#ifndef HEADER_SUPERTUX_SPRITE_SPRITE_MANAGER_HPP +#define HEADER_SUPERTUX_SPRITE_SPRITE_MANAGER_HPP #include +#include +#include + +#include "sprite/sprite_ptr.hpp" +#include "util/currenton.hpp" class SpriteData; -class Sprite; -class SpriteManager +class SpriteManager : public Currenton { private: typedef std::map Sprites; Sprites sprites; - + public: - SpriteManager(const std::string& filename); + SpriteManager(); ~SpriteManager(); - void load_resfile(const std::string& filename); /** loads a sprite. */ - Sprite* create(const std::string& filename); + SpritePtr create(const std::string& filename); private: SpriteData* load(const std::string& filename); }; #endif + +/* EOF */