debc9af70c7ef74c9a5b46cec4bfab9ee13293a5
[supertux.git] / src / scripting / functions.hpp
1 #ifndef __FUNCTIONS_H__
2 #define __FUNCTIONS_H__
3
4 namespace Scripting
5 {
6
7 /** displays a text file and scrolls it over the screen */
8 void display_text_file(const std::string& filename);
9 /** @SUSPEND@ 
10  * Suspends the script execution for the specified number of seconds
11  * */
12 void wait(float seconds);
13 /** translates a give text into the users language (by looking it up in the .po
14  * files)
15  */
16 std::string translate(const std::string& text);
17 /** load a script file and executes it 
18  * This is typically used to import functions from external files.
19  * */
20 void import(HSQUIRRELVM v, const std::string& filename);
21
22 }
23
24 #endif
25