projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- updated es.po
[supertux.git]
/
src
/
sprite.h
diff --git
a/src/sprite.h
b/src/sprite.h
index
c174396
..
62dba8f
100644
(file)
--- a/
src/sprite.h
+++ b/
src/sprite.h
@@
-23,7
+23,8
@@
#include <string>
#include <vector>
#include "lispreader.h"
#include <string>
#include <vector>
#include "lispreader.h"
-#include "texture.h"
+#include "screen/texture.h"
+#include "vector.h"
class Sprite
{
class Sprite
{
@@
-49,15
+50,19
@@
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();
/** Update the sprite and process to the next frame */
void update(float delta);
void reset();
/** Update the sprite and process to the next frame */
void update(float delta);
- void draw(
float x, float y);
-
+ void draw(
DrawingContext& context, const Vector& pos, int layer,
+ uint32_t drawing_effect = NONE_EFFECT);
int get_current_frame() const;
int get_current_frame() const;
+ float get_fps() { return fps; } ;
+ int get_frames() { return surfaces.size(); } ;
+
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;