lots of cool scripting stuff
[supertux.git] / src / scripting / functions.cpp
index 10e5f2b..f62ef92 100644 (file)
@@ -12,7 +12,7 @@
 namespace Scripting
 {
 
-void set_wakeup_time(float seconds)
+void wait(float seconds)
 {
   ScriptInterpreter::current()->set_wakeup_time(seconds);
 }
@@ -47,5 +47,10 @@ void import(HSQUIRRELVM v, const std::string& filename)
   }
 }
 
+void add_key(int new_key)
+{
+  player_status->set_keys(new_key);
+}
+
 }