Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2016, 3:54:24 PM (8 years ago)
Author:
plehmann
Message:

implemented the update function of MoveToTask. but it does not yet work right. it might be more a problem of the controllerDirector than the task.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/plehmannFS16/src/orxonox/controllers/NewScriptController.h

    r11190 r11204  
    2525 *      ...
    2626 *
     27 *
     28 *
    2729 */
    2830
     
    3234#include "scriptTasks/DebugTask.h"
    3335#include "scriptTasks/stringOutTask.h"
     36#include "scriptTasks/MoveToTask.h"
    3437#include "scriptTasks/Task.h"
    3538#include "OrxonoxPrereqs.h"                 /* die ganzen tolua, kopiert aus Dock.h*/
     
    4245{  // tolua_export
    4346
     47    /**
     48    @brief
    4449
     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    */
    4568
    4669    class _OrxonoxExport NewScriptController // tolua_export
     
    6184
    6285            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
    6388
    6489            static NewScriptController* getNewScriptController();// tolua_export
Note: See TracChangeset for help on using the changeset viewer.