Changeset 10388 in orxonox.OLD for trunk/src/world_entities/cameraman.cc
- Timestamp:
- Jan 26, 2007, 6:32:54 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/cameraman.cc
r10379 r10388 20 20 #include "sound_engine.h" 21 21 #include <string> 22 #include "script_class.h" 22 23 23 24 ObjectListDefinition(CameraMan); 25 26 27 CREATE_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 ); 24 32 25 33 … … 75 83 76 84 77 void CameraMan::changeTarget(int camNo, std::string className, std::stringobjectName)85 void CameraMan::changeTarget(int camNo,const std::string& className, const std::string& objectName) 78 86 { 79 87 BaseObject* object = ObjectListBase::getBaseObject(className, objectName); … … 83 91 84 92 85 void CameraMan::changeCurrTarget( std::string className, std::stringobjectName)93 void CameraMan::changeCurrTarget(const std::string& className, const std::string& objectName) 86 94 { 87 95 BaseObject* object = ObjectListBase::getBaseObject(className, objectName);
Note: See TracChangeset
for help on using the changeset viewer.