Major rewrite of scripting support:
[supertux.git] / src / object / player.hpp
index ffa727c..eb5ab8a 100644 (file)
@@ -32,6 +32,8 @@
 #include "scripting/player.hpp"
 #include "player_status.hpp"
 #include "display_effect.hpp"
+#include "script_interface.hpp"
+#include "console.hpp"
 
 class BadGuy;
 class Portable;
@@ -77,7 +79,7 @@ extern TuxBodyParts* big_tux;
 extern TuxBodyParts* fire_tux;
 extern TuxBodyParts* ice_tux;
 
-class Player : public MovingObject, public Scripting::Player
+class Player : public MovingObject, public Scripting::Player, public ScriptInterface
 {
 public:
   enum HurtMode { KILL, SHRINK };
@@ -120,6 +122,9 @@ public:
   Player(PlayerStatus* player_status);
   virtual ~Player();
 
+  virtual void expose(HSQUIRRELVM vm, int table_idx);
+  virtual void unexpose(HSQUIRRELVM vm, int table_idx);
+
   void set_controller(Controller* controller);  
 
   virtual void update(float elapsed_time);
@@ -163,7 +168,7 @@ public:
   bool get_visible();
 
   bool on_ground();
-  
+
 private:
   void handle_input();
   bool deactivated;