X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fsprite.h;h=0671e270ce10200ce000e16b9d096e27861c451b;hb=157cef71aeb9ae25b7bb90f37dda11bc09329d11;hp=ce5889a57e2e80e508557be8c98b7465c24c11b4;hpb=2ec1be264110139466ab70422b8f4fd9c22e5c8c;p=supertux.git diff --git a/src/sprite.h b/src/sprite.h index ce5889a57..0671e270c 100644 --- a/src/sprite.h +++ b/src/sprite.h @@ -24,6 +24,7 @@ #include #include "lispreader.h" #include "texture.h" +#include "vector.h" class Sprite { @@ -59,6 +60,9 @@ class Sprite void draw_part(float sx, float sy, float x, float y, float w, float h); int get_current_frame() const; + void draw(const Vector& pos) + { draw(pos.x, pos.y); } + std::string get_name() const { return name; } int get_width() const; int get_height() const;