- Timestamp:
- Jan 27, 2007, 3:27:50 PM (18 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/cameraman.cc
r10404 r10406 33 33 CREATE_SCRIPTABLE_CLASS(CameraMan, 34 34 addMethod("changeCurrTarget", Executor2<CameraMan, lua_State*,const std::string&,const std::string&>(&CameraMan::changeCurrTarget)) 35 ->addMethod("atachCurrCameraToWorldEntity", Executor2<CameraMan, lua_State*,const std::string&,const std::string&>(&CameraMan::atachCurrCameraToWorldEntity)) 35 36 ->addMethod("changeTarget", Executor3<CameraMan, lua_State*, const std::string&, const std::string&,const std::string&>(&CameraMan::changeTarget)) 36 37 ->addMethod("setCam", Executor1<CameraMan, lua_State*, const std::string&>(&CameraMan::setCam)) … … 163 164 } 164 165 166 void CameraMan::atachCurrCameraToWorldEntity(const std::string& className, const std::string& targetEntity) 167 { 168 BaseObject* object = ObjectListBase::getBaseObject(className, targetEntity); 169 if(object != NULL) 170 this->atachCurrTarget(dynamic_cast<PNode*>(object)); 171 } 172 173 165 174 void CameraMan::jumpCam(int x, int y, int z, int camNo) 166 175 { -
trunk/src/world_entities/cameraman.h
r10404 r10406 33 33 void changeCurrTarget(const std::string& className, const std::string& objectName); 34 34 void atachCurrTarget(PNode* target); 35 void atachCurrCameraToWorldEntity(const std::string& className, const std::string& targetEntity); 35 36 void jumpCam(int x, int y, int z, int camNo); 36 37 void jumpCurrCam(int x, int y, int z); -
trunk/src/world_entities/npcs/npc.cc
r10387 r10406 41 41 CREATE_FACTORY(NPC); 42 42 43 44 #include "script_class.h" 45 CREATE_SCRIPTABLE_CLASS(NPC, 46 addMethod("getAbsCoorX", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorX)) 47 ->addMethod("getAbsCoorY", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorY)) 48 ->addMethod("getAbsCoorZ", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorZ)) 49 ->addMethod("setAbsCoor", Executor3<PNode, lua_State*,float,float,float>(&PNode::setAbsCoor)) 50 ->addMethod("setAbsDir", Executor4<PNode, lua_State*,float,float,float,float>(&PNode::setAbsDir)) 51 ); 43 52 44 53 NPC::NPC(const TiXmlElement* root)
Note: See TracChangeset
for help on using the changeset viewer.