Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9902 in orxonox.OLD


Ignore:
Timestamp:
Oct 26, 2006, 8:31:29 PM (18 years ago)
Author:
bensch
Message:

leafClassID that changes into the topmost ID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/lib/lang/base_object.h

    r9901 r9902  
    5151  /** @returns the ClassID of this Object */
    5252  inline const ClassID& getClassID() const { return _classes.front()._objectList->identity(); }
    53   /** @returns the ID of the Topmost object of the ClassStack */
    54   inline const int& getLeafClassID() const { return _classes.front()._objectList->identity().id(); }
     53  /** @returns the ID of the Topmost object of the ClassStack. */
     54  inline const ClassID& getLeafClassID() const { return leafClassID; }
    5555
    5656  bool isA(const ObjectListBase& objectList) const;
     
    108108{
    109109  this->_classes.push_front(ClassEntry(&objectList, objectList.registerObject(object)));
    110   this->leafClassID = object->getClassID();
     110  this->leafClassID = objectList.identity();
    111111}
    112112
Note: See TracChangeset for help on using the changeset viewer.