Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8290 in orxonox.OLD for branches/script_engine/src/lib


Ignore:
Timestamp:
Jun 8, 2006, 8:10:58 PM (19 years ago)
Author:
snellen
Message:

debug output is more verbose now

Location:
branches/script_engine/src/lib/script_engine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/script_engine/src/lib/script_engine/lunartest2.lua

    r8271 r8290  
    2222
    2323function main(arg)
     24  io.write("hello i am main!")
    2425  -- use parameter
    2526  io.write("main received ", arg)
    2627  io.write(" as parameter\n")
    2728
     29 o = Object()
     30  o:printName()
    2831  --call member of an inserted object
    2932  Obj:printName()
    3033
    3134  --create object of a registered type
    32   o = Object()
    33   o:printName()
     35  --o = Object()
     36  --o:printName()
    3437
    3538  --take returnvalue from c
  • branches/script_engine/src/lib/script_engine/script.cc

    r8289 r8290  
    3737void Script::loadParams(const TiXmlElement* root)
    3838{
     39  printf("Loading params for %p \n",this);
    3940  BaseObject::loadParams(root);
    4041
     
    9394 void Script::addObject(const std::string& className, const std::string& objectName)
    9495 {
    95    printf("Script: I am about to add %s of class %s\n",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());
    9697   
    9798   BaseObject* scriptClass = ClassList::getObject(className, CL_SCRIPT_CLASS);
Note: See TracChangeset for help on using the changeset viewer.