X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=lib%2Fspecial%2Fsprite.h;h=54f3476411ca3875cc10e4f695e334fbba7a795e;hb=000fa9d480284cfec3e1091105698400698da710;hp=fdf83a5af55a684e7e4cabd79bfc561921eb7a8a;hpb=d535419fe69ee20213eb2713c1a317d135927460;p=supertux.git diff --git a/lib/special/sprite.h b/lib/special/sprite.h index fdf83a5af..54f347641 100644 --- a/lib/special/sprite.h +++ b/lib/special/sprite.h @@ -64,8 +64,9 @@ namespace SuperTux /* Start an animation -1 - for infinite 0 - stopped - 1,2,3 - one, two, three times... */ - void start_animation(int loops); + 1,2,3 - one, two, three times... + If next_act specified, that action will be used when animation ends. */ + void start_animation(int loops, std::string next_act = ""); /** Check if animation is stopped or not */ bool check_animation(); /** Reverse the animation */ @@ -116,6 +117,7 @@ namespace SuperTux Actions actions; Action* action; + std::string next_action; }; } //namespace SuperTux