X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsprite%2Fsprite_data.hpp;h=78f51a91ecd136d6febe62e7815aff0e60d46bdd;hb=HEAD;hp=82d50d57b85466bfbb032d6a703d79ea6a2158e5;hpb=08813a74da6ac1fd045a105e4e8105f1d7f716f0;p=supertux.git diff --git a/src/sprite/sprite_data.hpp b/src/sprite/sprite_data.hpp index 82d50d57b..78f51a91e 100644 --- a/src/sprite/sprite_data.hpp +++ b/src/sprite/sprite_data.hpp @@ -18,15 +18,16 @@ #define HEADER_SUPERTUX_SPRITE_SPRITE_DATA_HPP #include +#include -#include "lisp/lisp.hpp" +#include "util/reader_fwd.hpp" #include "video/surface.hpp" class SpriteData { public: /** cur has to be a pointer to data in the form of ((hitbox 5 10 0 0) ...) */ - SpriteData(const lisp::Lisp* cur, const std::string& basedir); + SpriteData(const Reader& cur, const std::string& basedir); ~SpriteData(); const std::string& get_name() const @@ -60,16 +61,16 @@ private: /** Frames per second */ float fps; - std::vector surfaces; + std::vector surfaces; }; typedef std::map Actions; - Actions actions; - void parse_action(const lisp::Lisp* lispreader, const std::string& basedir); + void parse_action(const Reader& lispreader, const std::string& basedir); /** Get an action */ - Action* get_action(std::string act); + const Action* get_action(const std::string& act); + Actions actions; std::string name; };