projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added more animations.
[supertux.git]
/
src
/
player.h
diff --git
a/src/player.h
b/src/player.h
index
13396ea
..
3cbeb2e
100644
(file)
--- a/
src/player.h
+++ b/
src/player.h
@@
-110,6
+110,7
@@
public:
~TuxBodyParts() { };
void set_action(std::string action);
~TuxBodyParts() { };
void set_action(std::string action);
+ void start_animation(int loops, std::string next_action = "");
void draw(DrawingContext& context, const Vector& pos, int layer,
Uint32 drawing_effect = NONE_EFFECT);
void draw(DrawingContext& context, const Vector& pos, int layer,
Uint32 drawing_effect = NONE_EFFECT);
@@
-160,6
+161,7
@@
public:
Timer shooting_timer; // used to show the arm when Tux is shooting
Timer dying_timer;
Timer growing_timer;
Timer shooting_timer; // used to show the arm when Tux is shooting
Timer dying_timer;
Timer growing_timer;
+ Timer idle_timer;
Physic physic;
public:
Physic physic;
public: