- Timestamp:
- Apr 3, 2014, 3:59:48 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController/src/orxonox/controllers/ScriptController.h
r10014 r10020 40 40 { 41 41 public: 42 ScriptController(Context* context );42 ScriptController(Context* context, ControllableEntity CE); 43 43 virtual ~ScriptController() { } 44 44 45 45 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 46 bool execute(bool bTriggered, BaseObject* trigger); 46 47 48 void set_luasrc(string); 47 49 50 void set_controlled(&ControllableEntity); 51 52 void moveToPosition(const Vector3& target); 53 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*/ 57 58 59 60 61 //function to execute the luafile 48 62 49 63 private: 64 string luasrc; // name of the LUA-sourcefile that shall be executed->see XMLPort-function 65 66 ControllableEntity* controlled; //entity controlled by this SC 50 67 51 68
Note: See TracChangeset
for help on using the changeset viewer.