projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented mirroring in Sprite, so that now it's possible to adjust left offsets.
[supertux.git]
/
lib
/
special
/
sprite.h
diff --git
a/lib/special/sprite.h
b/lib/special/sprite.h
index
86b4a06
..
15ee35b
100644
(file)
--- a/
lib/special/sprite.h
+++ b/
lib/special/sprite.h
@@
-48,6
+48,10
@@
namespace SuperTux
/** Frames per second */
float fps;
/** Frames per second */
float fps;
+ /** Mirror is used to avoid duplicating left and right side
+ sprites */
+ bool mirror;
+
std::vector<Surface*> surfaces;
};
std::vector<Surface*> surfaces;
};
@@
-112,6
+116,9
@@
namespace SuperTux
void init_defaults(Action* act);
void parse_action(LispReader& lispreader);
void init_defaults(Action* act);
void parse_action(LispReader& lispreader);
+ /** Get an action */
+ Action* get_action(std::string act);
+
void update();
void reset();
void update();
void reset();