Changeset 9241 in orxonox.OLD for branches/scripting/src/world_entities
- Timestamp:
- Jul 6, 2006, 12:44:18 PM (19 years ago)
- Location:
- branches/scripting/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/scripting/src/world_entities/npcs/gate.cc
r9235 r9241 41 41 addMethod("hide", ExecutorLua0<WorldEntity>(&WorldEntity::hide)) 42 42 ->addMethod("unhide", ExecutorLua0<WorldEntity>(&WorldEntity::unhide)) 43 // ->addMethod("destroy", ExecutorLua0<Gate>(&Gate::destroy()))43 ->addMethod("destroy", ExecutorLua0<Gate>(&Gate::destroy)) 44 44 ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor)) 45 45 ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX)) -
branches/scripting/src/world_entities/script_trigger.cc
r9235 r9241 202 202 //testScriptingFramework(); 203 203 if(!(script->selectFunction(this->functionName,returnCount)) ) 204 printf("Error ScriptTrigger: Selection of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str());204 PRINT(1)("Error ScriptTrigger: Selection of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str()); 205 205 206 206 script->pushParam( timestep, this->functionName); 207 207 208 208 if( !(script->executeFunction()) ) 209 printf("Error ScriptTrigger: Execution of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str());209 PRINT(1)("Error ScriptTrigger: Execution of %s in %s failed.\n",functionName.c_str(), script->getFileName().c_str()); 210 210 211 211 scriptFinished = script->getReturnedBool();
Note: See TracChangeset
for help on using the changeset viewer.