Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 28, 2016, 4:08:07 PM (8 years ago)
Author:
plehmann
Message:

scriptcontroller task system doesnt work. it seems like queue is the wrong data structure

File:
1 edited

Legend:

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

    r11172 r11178  
    3131
    3232#include "DebugTask.h"
     33#include "stringOutTask.h"
    3334#include "Task.h"
    3435#include "OrxonoxPrereqs.h"                 /* die ganzen tolua, kopiert aus Dock.h*/
     
    5758            // LUA interface
    5859
    59             void debugOut(float startTime);// tolua_export
     60            void debugOut(float startTime);// tolua_export
     61
     62            void stringOut(float startTime, std::string output);// tolua_export
    6063
    6164            static NewScriptController* getNewScriptController();// tolua_export
    6265
    6366            int getID() { return ctrlid_; }// tolua_export
     67
     68            void printDebug() {orxout() << "fffff" << endl;} // tolua_export
    6469
    6570
     
    8085
    8186            // List of events to walk through
    82             std::queue<Task*>* taskQueue_;
     87            std::queue<Task*> taskQueue_;
    8388
    8489
    8590            //List of Tasks currently active
    86             std::vector<Task*>* activeTasks_;
     91            std::vector<Task*> activeTasks_;
    8792
    8893            // Time since the creation of this ScriptController object
    8994            float scTime_; 
    9095
    91             DebugTask* task_;
    9296
    93             context* context_;
     97            // context of the Controller to create the tasks
     98            Context* context_;
    9499
    95100
Note: See TracChangeset for help on using the changeset viewer.