Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

compiles now

File:
1 edited

Legend:

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

    r10025 r10028  
    3030#define _ScriptController_H__
    3131
    32 #include "OrxonoxPrereqs.h"
     32#include "OrxonoxPrereqs.h"                 /* die ganzen tolua, kopiert aus Dock.h*/
    3333#include "ArtificialController.h"
    3434#include "core/EventIncludes.h"
    3535
    3636
    37 namespace orxonox
    38 {
    39     class _OrxonoxExport ScriptController : public ArtificialController
    40     {
     37namespace orxonox  // tolua_export
     38{  // tolua_export
     39    class _OrxonoxExport ScriptController // tolua_export
     40       : public ArtificialController
     41    {  // tolua_export
    4142        public:
    42             ScriptController(Context* context, ControllableEntity CE);
     43            //ScriptController(Context* context, ControllableEntity* CE);
     44            ScriptController(Context* context);
     45
    4346            virtual ~ScriptController() { }
    4447
     
    4851            void set_luasrc(std::string);
    4952
    50             void set_controlled(*ControllableEntity);
     53            void set_controlled(ControllableEntity*);
    5154
     55
     56            // LUA interface
     57            // tolua_begin
    5258            void moveToPosition(const Vector3& target);
    5359
    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*/
     60           
    5761
    5862           
    59                
     63              /* virtual void tick(float dt);*/
    6064
    61             //function to execute the luafile
     65            // tolua_end
    6266
    6367        private:
     
    6771
    6872
    69     };
    70 }
     73    };// tolua_export
     74} // tolua_export
    7175
    7276#endif /* _ScriptController_H__ */
Note: See TracChangeset for help on using the changeset viewer.