X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fscripting%2Ftilemap.hpp;h=331580ed051c1bdc60daa320903265c4360ff777;hb=11a3b78a422c0deac010eef7de06c97d6b83bad0;hp=c4750c27748e00a4b3ad440d05e8c1a37e729c86;hpb=af80526c23594adb4db5a34715138a8d41364559;p=supertux.git diff --git a/src/scripting/tilemap.hpp b/src/scripting/tilemap.hpp index c4750c277..331580ed0 100644 --- a/src/scripting/tilemap.hpp +++ b/src/scripting/tilemap.hpp @@ -1,4 +1,4 @@ -// $Id: tilemap.hpp 4063 2006-07-21 21:05:23Z anmaster $ +// $Id$ // // SuperTux // Copyright (C) 2006 Matthias Braun @@ -45,6 +45,22 @@ public: /** Stop tilemap at next node */ void stop_moving(); + /** + * Start fading the tilemap to opacity given by @c alpha. + * Destination opacity will be reached after @c seconds seconds. Also influences solidity. + */ + void fade(float alpha, float seconds); + + /** + * Instantly switch tilemap's opacity to @c alpha. Also influences solidity. + */ + void set_alpha(float alpha); + + /** + * Return tilemap's opacity. Note that while the tilemap is fading in or out, this will return the current alpha value, not the target alpha. + */ + float get_alpha(); + #ifndef SCRIPTING_API _TileMap* tilemap; #endif