Changeset 9869 in orxonox.OLD for trunk/src/world_entities/npcs/attractor_mine.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/attractor_mine.cc
r9235 r9869 33 33 #include "effects/explosion.h" 34 34 35 CREATE_FACTORY(AttractorMine, CL_ATTRACTOR_MINE); 35 #include "class_id_DEPRECATED.h" 36 ObjectListDefinitionID(AttractorMine, CL_ATTRACTOR_MINE); 37 CREATE_FACTORY(AttractorMine); 36 38 #include "script_class.h" 37 CREATE_SCRIPTABLE_CLASS(AttractorMine, CL_ATTRACTOR_MINE,38 addMethod("setName", Executor Lua1<BaseObject,const std::string&>(&BaseObject::setName))39 //Coordinates40 ->addMethod("setAbsCoor", Executor Lua3<PNode,float,float,float>(&PNode::setAbsCoor))41 ->addMethod("getAbsCoorX", Executor Lua0ret<PNode, float>(&PNode::getAbsCoorX))42 ->addMethod("getAbsCoorY", Executor Lua0ret<PNode, float>(&PNode::getAbsCoorY))43 ->addMethod("getAbsCoorZ", Executor Lua0ret<PNode, float>(&PNode::getAbsCoorZ))39 CREATE_SCRIPTABLE_CLASS(AttractorMine, 40 addMethod("setName", Executor1<BaseObject, lua_State*,const std::string&>(&BaseObject::setName)) 41 //Coordinates 42 ->addMethod("setAbsCoor", Executor3<PNode, lua_State*,float,float,float>(&PNode::setAbsCoor)) 43 ->addMethod("getAbsCoorX", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorX)) 44 ->addMethod("getAbsCoorY", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorY)) 45 ->addMethod("getAbsCoorZ", Executor0ret<PNode, lua_State*, float>(&PNode::getAbsCoorZ)) 44 46 ); 45 47 … … 50 52 : NPC(NULL) 51 53 { 52 this-> setClassID(CL_ATTRACTOR_MINE, "AttractorMine");54 this->registerObject(this, AttractorMine::_objectList); 53 55 54 56 this->toList(OM_GROUP_02); … … 64 66 65 67 this->shader = NULL; 66 if (likely(Shader::checkShaderAbility()))67 this->shader = Shader::getShader("shaders/toon.vert", "shaders/toon.frag");68 //if (likely(Shader::checkShaderAbility())) 69 // this->shader = Shader::getShader("shaders/toon.vert", "shaders/toon.frag"); 68 70 69 71 this->randomRotAxis = VECTOR_RAND(1); … … 76 78 AttractorMine::~AttractorMine () 77 79 { 78 if (this->shader)79 Shader::unload(this->shader);80 80 } 81 82 81 83 82 void AttractorMine::loadParams(const TiXmlElement* root)
Note: See TracChangeset
for help on using the changeset viewer.