Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9241 in orxonox.OLD for branches/scripting/src/world_entities


Ignore:
Timestamp:
Jul 6, 2006, 12:44:18 PM (19 years ago)
Author:
snellen
Message:

error messages von script, scrripttrigger und scriptmanager ans framework angepasst

Location:
branches/scripting/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/scripting/src/world_entities/npcs/gate.cc

    r9235 r9241  
    4141                            addMethod("hide", ExecutorLua0<WorldEntity>(&WorldEntity::hide))
    4242                            ->addMethod("unhide", ExecutorLua0<WorldEntity>(&WorldEntity::unhide))
    43                            // ->addMethod("destroy", ExecutorLua0<Gate>(&Gate::destroy()))   
     43                            ->addMethod("destroy", ExecutorLua0<Gate>(&Gate::destroy))   
    4444                            ->addMethod("setAbsCoor", ExecutorLua3<PNode,float,float,float>(&PNode::setAbsCoor))
    4545                            ->addMethod("getAbsCoorX", ExecutorLua0ret<PNode, float>(&PNode::getAbsCoorX))
  • branches/scripting/src/world_entities/script_trigger.cc

    r9235 r9241  
    202202       //testScriptingFramework();
    203203    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());
    205205     
    206206    script->pushParam( timestep, this->functionName);
    207207     
    208208    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());
    210210     
    211211    scriptFinished = script->getReturnedBool();
Note: See TracChangeset for help on using the changeset viewer.