Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 3, 2014, 3:59:48 PM (10 years ago)
Author:
samuezu
Message:

created scriptcontroller header and *.cc file

File:
1 edited

Legend:

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

    r10014 r10020  
    4040    {
    4141        public:
    42             ScriptController(Context* context);
     42            ScriptController(Context* context, ControllableEntity CE);
    4343            virtual ~ScriptController() { }
    4444
    4545            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    46             bool execute(bool bTriggered, BaseObject* trigger);
     46           
     47           
     48            void set_luasrc(string);
    4749
     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
    4862
    4963        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
    5067
    5168
Note: See TracChangeset for help on using the changeset viewer.