X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsprite%2Fsprite_data.hpp;h=bc5ccb3406a9fd9801d53c99b9a434c39dab5e28;hb=3b98af33dfb3ea9f683a89d35a02206d18cb0494;hp=e1e8b8fa0dfd6931d5c2be80990a42feffbe690b;hpb=07ddaed2a657e4d2a3d038fed223fc5827159caf;p=supertux.git diff --git a/src/sprite/sprite_data.hpp b/src/sprite/sprite_data.hpp index e1e8b8fa0..bc5ccb340 100644 --- a/src/sprite/sprite_data.hpp +++ b/src/sprite/sprite_data.hpp @@ -30,8 +30,7 @@ class SpriteData { public: - /** cur has to be a pointer to data in the form of ((x-offset 5) - (y-offset 10) ...) */ + /** 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(); @@ -51,8 +50,15 @@ private: std::string name; /** Position correction */ - int x_offset; - int y_offset; + float x_offset; + float y_offset; + + /** Hitbox width */ + float hitbox_w; + + /** Hitbox height */ + float hitbox_h; + /** Drawing priority in queue */ int z_order; @@ -73,4 +79,3 @@ private: }; #endif -