- Timestamp:
- Jun 10, 2005, 7:52:04 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/defs/class_list.h
r4592 r4594 46 46 { 47 47 // superclasses 48 CL_MASK_SUPER CLASS= 0xff000000,48 CL_MASK_SUPER_CLASS = 0xff000000, 49 49 CL_BASE_OBJECT = 0x01000000, 50 50 … … 59 59 60 60 // subsuper-classes 61 CL_MASK_SUB CLASS= 0x00fff000,61 CL_MASK_SUBSUPER_CLASS = 0x00fff000, 62 62 CL_PLAYER = 0x00001000, 63 63 CL_NPC = 0x00002000, -
orxonox/trunk/src/lib/lang/base_object.cc
r4592 r4594 115 115 bool BaseObject::isA (ClassID classID) 116 116 { 117 if( this->classID & classID) 118 return true; 117 // if classID is a derivable object 118 if (classID & CL_MASK_SUPER_CLASS || classID & CL_MASK_SUBSUPER_CLASS) 119 { 120 if( this->classID & classID) 121 return true; 122 } 123 // if classID is a LOWLEVEL-class 124 else 125 { 126 if ((this->classID & CL_MASK_LOWLEVEL_CLASS) == classID) 127 return true; 128 } 119 129 return false; 120 130 } … … 126 136 { 127 137 PRINT(0)("object %s: ", this->getName() ); 128 if (this->classID & CL_MASK_SUPER CLASS)138 if (this->classID & CL_MASK_SUPER_CLASS) 129 139 { 130 140 PRINT(0)("is a derived Class from: \n");
Note: See TracChangeset
for help on using the changeset viewer.