Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8391 in orxonox.OLD for branches/script_engine/src


Ignore:
Timestamp:
Jun 14, 2006, 3:35:34 PM (18 years ago)
Author:
snellen
Message:

commented unessecary debug output

Location:
branches/script_engine/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/script_engine/script.cc

    r8390 r8391  
    3737void Script::loadParams(const TiXmlElement* root)
    3838{
    39   printf("Loading params for %p \n",this);
     39  //printf("Loading params for %p \n",this);
    4040  BaseObject::loadParams(root);
    4141
     
    7777     else
    7878     {
    79        printf("ERROR while loading file %s: ",filename.c_str());
     79       printf("ERROR while loading file %s: \n",filename.c_str());
    8080       reportError(error);
    8181     }
     
    8484   else
    8585   {
    86      printf("ERROR while loading file %s: ",filename.c_str());
     86     printf("ERROR while loading file %s: \n",filename.c_str());
    8787     reportError(error);
    8888   }
     
    9494 void Script::addObject(const std::string& className, const std::string& objectName)
    9595 {
    96    printf("Script %p: I am about to add %s of class %s\n",this,objectName.c_str(),className.c_str());
     96   //printf("Script %p: I am about to add %s of class %s\n",this,objectName.c_str(),className.c_str());
    9797
    9898   BaseObject* scriptClass = ClassList::getObject(className, CL_SCRIPT_CLASS);
    99    printf("The script class for %s is at %p \n",className.c_str(),scriptClass);
     99   //printf("The script class for %s is at %p \n",className.c_str(),scriptClass);
    100100   WorldObject tmpObj;
    101101   if (scriptClass != NULL)
     
    108108
    109109     BaseObject* object = ClassList::getObject(objectName, className);
    110      printf("%s is at %p \n",objectName.c_str(),object);
     110     //printf("%s is at %p \n",objectName.c_str(),object);
    111111     if (object != NULL && !objectIsAdded(objectName))
    112112     {
  • branches/script_engine/src/story_entities/game_world.cc

    r8385 r8391  
    233233  this->bPaused = false;
    234234  this->bRunning = true;
    235   State::setScriptManager(&this->scriptManager); //make sure we have th right script manager
     235  State::setScriptManager(&this->scriptManager); //make sure we have the right script manager
    236236  this->run();
    237237}
  • branches/script_engine/src/world_entities/script_trigger.cc

    r8379 r8391  
    146146 {
    147147   std::string file("lunartest2.lua");
    148      // Script script;
     148   //get script
    149149   Script* script = State::getScriptManager()->getScriptByFile(file);
    150150   printf("-------------------------- top of the stack:%i\n",lua_gettop(script->getLuaState()));
    151 
    152       // Register classes with the script
    153       // Lunar<Account>::Register(&script);
    154       //Lunar<Object>::Register(&script);
    155 
    156       //Object* obj= new Object();
    157       //Account a;
    158       //Account *b = new Account(30);
    159 
    160       // Add instances to the script
    161       //Lunar<Object>::insertObject(&script,obj,"Obj",true);
    162       //Lunar<Account>::insertObject(&script,&a,"a",false);
    163       //Lunar<Account>::insertObject(&script,b,"b",true);
    164        //printf("-------------------------- top of the stack:%i\n",lua_gettop(script.getLuaState()));
    165 
    166       //Load a file
    167       //std::string file("lunartest2.lua");
    168 
    169       //if(script.loadFile(file))
    170         //printf("File %s succefully loaded\n", file.c_str());
    171       //printf("-------------------------- top of the stack:%i\n",lua_gettop(script.getLuaState()));
    172151
    173152      //execute a function
Note: See TracChangeset for help on using the changeset viewer.