Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10388 in orxonox.OLD for trunk/src/world_entities/cameraman.cc


Ignore:
Timestamp:
Jan 26, 2007, 6:32:54 PM (18 years ago)
Author:
snellen
Message:

made camera and cameraman scriptable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/cameraman.cc

    r10379 r10388  
    2020#include "sound_engine.h"
    2121#include <string>
     22#include "script_class.h"
    2223
    2324ObjectListDefinition(CameraMan);
     25
     26
     27CREATE_SCRIPTABLE_CLASS(CameraMan,
     28                        addMethod("changeCurrTarget", Executor2<CameraMan, lua_State*,const std::string&,const std::string&>(&CameraMan::changeCurrTarget))
     29                        ->addMethod("changeTarget", Executor3<CameraMan, lua_State*, int, const std::string&,const std::string&>(&CameraMan::changeTarget))
     30                        ->addMethod("togglFade", Executor0<CameraMan, lua_State*>(&CameraMan::togglFade))
     31                       );
    2432
    2533
     
    7583
    7684
    77 void CameraMan::changeTarget(int camNo, std::string className, std::string objectName)
     85void CameraMan::changeTarget(int camNo,const std::string& className, const std::string& objectName)
    7886{
    7987  BaseObject* object = ObjectListBase::getBaseObject(className, objectName);
     
    8391
    8492
    85 void CameraMan::changeCurrTarget(std::string className, std::string objectName)
     93void CameraMan::changeCurrTarget(const std::string& className, const std::string& objectName)
    8694{
    8795  BaseObject* object = ObjectListBase::getBaseObject(className, objectName);
Note: See TracChangeset for help on using the changeset viewer.