Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6280 in orxonox.OLD for trunk/src/lib/lang/class_list.h


Ignore:
Timestamp:
Dec 25, 2005, 2:46:33 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: ClassList now supports getLeafID() to retriefe the ID on hot to generate an object of the same type

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/lang/class_list.h

    r6278 r6280  
    3636
    3737    /* MAINTENANCE FUNCTIONS THESE ARE !!ONLY FOR BASEOBJECT !! */
    38     static void                           addToClassList(BaseObject* objectPointer, ClassID classID, unsigned long classIDFull, const char* className);
     38    static ClassList*                     addToClassList(BaseObject* objectPointer, ClassID classID, unsigned long classIDFull, const char* className);
    3939    static void                           removeFromClassList(BaseObject* objectPointer);
    4040
     
    5858    inline bool                           operator==(ClassID classID) { return (this->classID == classID); };
    5959    bool                                  operator==(const char* className);
     60    inline ClassID                        getLeafClassID() const { return this->classID; };
    6061
    6162  private:
Note: See TracChangeset for help on using the changeset viewer.