1 #ifndef __FUNCTIONS_H__
2 #define __FUNCTIONS_H__
6 #include "player_status.hpp"
12 //TODO: Get this from PlayerStatus (update MiniSwig!)
13 static const int KEY_BRASS = 0x001;
14 static const int KEY_IRON = 0x002;
15 static const int KEY_BRONZE = 0x004;
16 static const int KEY_SILVER = 0x008;
17 static const int KEY_GOLD = 0x010;
19 /** displays a text file and scrolls it over the screen */
20 void display_text_file(const std::string& filename);
23 * Suspends the script execution for the specified number of seconds
25 void wait(float seconds) __suspend;
27 /** translates a give text into the users language (by looking it up in the .po
30 std::string translate(const std::string& text);
32 /** load a script file and executes it
33 * This is typically used to import functions from external files.
35 void import(HSQUIRRELVM v, const std::string& filename);
37 /** add a key to the inventory
39 void add_key(int new_key);