- Timestamp:
- Jan 26, 2007, 6:32:54 PM (18 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/camera.cc
r10387 r10388 22 22 #include "vector.h" 23 23 #include "targets.h" 24 25 24 #include "script_class.h" 26 25 27 26 28 27 ObjectListDefinition(Camera); 29 28 29 CREATE_SCRIPTABLE_CLASS(Camera, 30 addMethod("setAbsCoor", Executor3<PNode, lua_State*,float,float,float>(&PNode::setAbsCoor)) 31 ->addMethod("getAbsCoorX", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorX)) 32 ->addMethod("getAbsCoorY", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorY)) 33 ->addMethod("getAbsCoorZ", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorZ)) 34 ); 30 35 31 36 /** -
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); -
trunk/src/world_entities/cameraman.h
r10379 r10388 24 24 void moveCam(int x, int y, int z, int camNo); 25 25 void moveCurrCam(int x, int y, int z); 26 void changeTarget(int camNo, std::string className, std::stringobjectName);27 void changeCurrTarget( std::string className, std::stringobjectName);26 void changeTarget(int camNo, const std::string& className,const std::string& objectName); 27 void changeCurrTarget(const std::string& className, const std::string& objectName); 28 28 void atachCurrTarget(PNode* target); 29 29 void jumpCam(int x, int y, int z, int camNo);
Note: See TracChangeset
for help on using the changeset viewer.