- Timestamp:
- Apr 10, 2014, 3:40:57 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController/src/orxonox/controllers/ScriptController.h
r10025 r10028 30 30 #define _ScriptController_H__ 31 31 32 #include "OrxonoxPrereqs.h" 32 #include "OrxonoxPrereqs.h" /* die ganzen tolua, kopiert aus Dock.h*/ 33 33 #include "ArtificialController.h" 34 34 #include "core/EventIncludes.h" 35 35 36 36 37 namespace orxonox 38 { 39 class _OrxonoxExport ScriptController : public ArtificialController 40 { 37 namespace orxonox // tolua_export 38 { // tolua_export 39 class _OrxonoxExport ScriptController // tolua_export 40 : public ArtificialController 41 { // tolua_export 41 42 public: 42 ScriptController(Context* context, ControllableEntity CE); 43 //ScriptController(Context* context, ControllableEntity* CE); 44 ScriptController(Context* context); 45 43 46 virtual ~ScriptController() { } 44 47 … … 48 51 void set_luasrc(std::string); 49 52 50 void set_controlled( *ControllableEntity);53 void set_controlled(ControllableEntity*); 51 54 55 56 // LUA interface 57 // tolua_begin 52 58 void moveToPosition(const Vector3& target); 53 59 54 /* TO DO 55 - in the constuctor: make accessible functions such as moveToPoint.. in LUA 56 ->tolua++ example: http://usefulgamedev.weebly.com/tolua-example.html*/ 60 57 61 58 62 59 63 /* virtual void tick(float dt);*/ 60 64 61 // function to execute the luafile65 // tolua_end 62 66 63 67 private: … … 67 71 68 72 69 }; 70 } 73 };// tolua_export 74 } // tolua_export 71 75 72 76 #endif /* _ScriptController_H__ */
Note: See TracChangeset
for help on using the changeset viewer.