- Timestamp:
- May 26, 2016, 3:54:24 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/plehmannFS16/src/orxonox/controllers/NewScriptController.h
r11190 r11204 25 25 * ... 26 26 * 27 * 28 * 27 29 */ 28 30 … … 32 34 #include "scriptTasks/DebugTask.h" 33 35 #include "scriptTasks/stringOutTask.h" 36 #include "scriptTasks/MoveToTask.h" 34 37 #include "scriptTasks/Task.h" 35 38 #include "OrxonoxPrereqs.h" /* die ganzen tolua, kopiert aus Dock.h*/ … … 42 45 { // tolua_export 43 46 47 /** 48 @brief 44 49 50 A scriptController to carry out tasks on an entity. 51 The tasks are provided as a lua script. 52 The commands which are exported to lua have to create the specified task, initialze it and add it to the TaskList. 53 54 Important add the export comment after functions that need to be accessed from the lua script. 55 56 @todo 57 58 take away the human controller and put it back into place when this controller is deleted. 59 This is probably better done in the controller director class. 60 61 remove the startTimes of the tasks so that the lua script is just carried out one task after the other. 62 to avoid problems when to tasks are carried out simultainiously. 63 64 also the velocity while the controller is taking control is kept and hinders the tasks. 65 66 the moveToTask does not work right. 67 */ 45 68 46 69 class _OrxonoxExport NewScriptController // tolua_export … … 61 84 62 85 void stringOut(float startTime, std::string output);// tolua_export 86 87 void moveTo(float startTime, float x, float y, float z, float velocity);// tolua_export 63 88 64 89 static NewScriptController* getNewScriptController();// tolua_export
Note: See TracChangeset
for help on using the changeset viewer.