Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9679 in orxonox.OLD for trunk


Ignore:
Timestamp:
Aug 22, 2006, 12:01:47 AM (18 years ago)
Author:
bensch
Message:

inheritance tree works perfectly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lang/test_object_list.cc

    r9678 r9679  
    4949  this->registerObject(this, Test::objectList);
    5050
    51   this->_id.listInheritance();
    5251
    5352//  this->setClassID(CL_PARENT_NODE, "Test");
     
    5958}
    6059
    61 class Bone : public BaseObject
     60class Bone : public Test
    6261{
    6362public:
    6463  Bone()
    6564  {
    66     //    this->registerObject(this, Bone::objectList);
     65    this->registerObject(this, Bone::objectList);
     66    this->_id.listInheritance();
     67
    6768    //std::cout << "Bone()\n";
    6869  };
     
    8081  {
    8182    std::cout<< i << std::endl;
    82     Test* test = new Test[10000];
     83    Bone* test = new Bone[10000];
    8384    // delete[]test;
    8485  }
Note: See TracChangeset for help on using the changeset viewer.