Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 26, 2016, 4:38:51 PM (8 years ago)
Author:
fvultier
Message:

merged scriptable controller

Location:
code/branches/presentationFS16
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationFS16

  • code/branches/presentationFS16/src/orxonox/controllers/ScriptController.h

    r11071 r11207  
    3636
    3737
    38 namespace orxonox  // tolua_export
    39 // tolua_export
     38namespace orxonox 
     39
    4040
    4141    /** Structure to describe a single event */
     
    6161    };
    6262
    63     class _OrxonoxExport ScriptController // tolua_export
     63    class _OrxonoxExport ScriptController
    6464       : public ArtificialController, public Tickable
    65     {  // tolua_export
     65    { 
    6666        public:
    6767            ScriptController(Context* context);
     
    7373            virtual void tick(float dt) override;
    7474
    75             // LUA interface
    76             // tolua_begin
     75           
    7776            void eventScheduler(std::string instruction = "",
    7877              float x1 = 0, float y1 = 0, float z1 = 0,
     
    8483            int getID() { return ctrlid_; }
    8584
    86             // tolua_end
     85           
    8786            const Vector3& getPosition();
    8887
     
    128127            //Vector3 lookAtPosition;
    129128
    130     };// tolua_export
    131 } // tolua_export
     129
     130            /* private member functions */
     131
     132            /*spiral event*/
     133            void spi(float dl);
     134
     135            /* rotate and look event */
     136            void ral(float dl);
     137
     138            /* move and look event */
     139            void mal(float dl);
     140
     141            /* transition look event */
     142            void chl(float dl);
     143
     144            /* rotate around x-coordinate event */
     145            void rotX(float dl);
     146
     147    };
     148}
    132149
    133150#endif /* _ScriptController_H__ */
Note: See TracChangeset for help on using the changeset viewer.