Changeset 10483 in orxonox.OLD for trunk/src/world_entities/cameraman.cc
- Timestamp:
- Jan 29, 2007, 3:05:56 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/cameraman.cc
r10482 r10483 44 44 ->addMethod("getCurrCameraCoorZ", Executor0ret<CameraMan, lua_State*,float>(&CameraMan::getCurrCameraCoorZ)) 45 45 ->addMethod("jumpCurrCam", Executor3<CameraMan, lua_State*,float,float,float>(&CameraMan::jumpCurrCam)) 46 ->addMethod("jumpCam", Executor4<CameraMan, lua_State*,const std::string&,float,float,float>(&CameraMan::jumpCam)) 46 47 ); 47 48 … … 240 241 } 241 242 243 244 void CameraMan::jumpCam(const std::string& cameraName, float x, float y, float z) 245 { 246 BaseObject* targetCam = ObjectListBase::getBaseObject("Camera", cameraName); 247 if( targetCam != NULL ) 248 { 249 dynamic_cast<Camera*>(targetCam)->target->jump( x, y, z ); 250 } 251 252 } 242 253 243 254
Note: See TracChangeset
for help on using the changeset viewer.