projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- beginnings of a wingling
[supertux.git]
/
src
/
sprite.h
diff --git
a/src/sprite.h
b/src/sprite.h
index
e30bb03
..
0671e27
100644
(file)
--- a/
src/sprite.h
+++ b/
src/sprite.h
@@
-24,6
+24,7
@@
#include <vector>
#include "lispreader.h"
#include "texture.h"
#include <vector>
#include "lispreader.h"
#include "texture.h"
+#include "vector.h"
class Sprite
{
class Sprite
{
@@
-49,6
+50,7
@@
class Sprite
/** cur has to be a pointer to data in the form of ((x-hotspot 5)
(y-hotspot 10) ...) */
Sprite(lisp_object_t* cur);
/** cur has to be a pointer to data in the form of ((x-hotspot 5)
(y-hotspot 10) ...) */
Sprite(lisp_object_t* cur);
+ ~Sprite();
void reset();
void reset();
@@
-58,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_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;
std::string get_name() const { return name; }
int get_width() const;
int get_height() const;