Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 8, 2014, 3:59:26 PM (10 years ago)
Author:
samuezu
Message:

created struct event, an eventlist and the functions eventscheduler and execute, modified tick function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ScriptableController/src/orxonox/controllers/ScriptController.h

    r10047 r10048  
    3535
    3636
     37
    3738namespace orxonox  // tolua_export
    3839{  // tolua_export
     40
     41    struct event
     42    {   
     43        std::string fctName;
     44        float xCoord;
     45        float yCoord;
     46        float zCoord;
     47
     48        float eventTime;
     49
     50    };
     51
    3952    class _OrxonoxExport ScriptController // tolua_export
    4053       : public ArtificialController, public Tickable
     
    6073            void moveToPosition_beta(float x, float y, float z);
    6174
    62            
     75            void eventScheduler(std::string instruction, float x, float y, float z, float time);
     76
    6377            static ScriptController* getScriptController();
    6478
     
    6882            // tolua_end
    6983            const Vector3& getPosition();
     84
     85            void execute(event ev);
    7086
    7187        private:
Note: See TracChangeset for help on using the changeset viewer.