- Timestamp:
- Nov 9, 2005, 12:22:43 AM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/lang/base_object.cc
r5447 r5513 126 126 127 127 /** 128 * checks if the class is a classID 129 * @param classID the Identifier to check for 130 * @returns true if it is, false otherwise 131 */ 132 bool BaseObject::isA (const char* className) const 133 { 134 long classID = ClassList::StringToID(className); 135 if (classID != CL_NULL) 136 return this->isA(classID); 137 } 138 139 140 /** 128 141 * displays everything this class is 129 142 */ -
trunk/src/lib/lang/base_object.h
r5511 r5513 26 26 27 27 void loadParams(const TiXmlElement* root); 28 29 28 void setName (const char* newName); 30 29 /** returns the Name of this Object */ … … 37 36 38 37 bool isA (long classID) const; 38 bool isA (const char* className) const; 39 39 void whatIs() const; 40 40 -
trunk/src/lib/lang/class_list.cc
r5352 r5513 242 242 bool ClassList::exists(const BaseObject* object, long classID) 243 243 { 244 if(unlikely(ClassList::first == NULL) )244 if(unlikely(ClassList::first == NULL) || object == NULL) 245 245 return false; 246 246 else … … 252 252 { 253 253 tIterator<BaseObject>* iterator = tmp->objectList->getIterator(); 254 BaseObject* enumBO = iterator->firstElement();254 const BaseObject* enumBO = iterator->firstElement(); 255 255 while (enumBO != NULL) 256 256 { -
trunk/src/lib/shell/shell.h
r5374 r5513 17 17 #define SHELL_DEFAULT_FONT "fonts/dpquake_.ttf" 18 18 #define SHELL_DEFAULT_TEXT_COLOR 1.0f, 0.0f, 0.0f, 1.0f 19 #define SHELL_DEFAULT_BACKGROUND_COLOR 0.0f, 0.0f, 0. 8f, 0.8f19 #define SHELL_DEFAULT_BACKGROUND_COLOR 0.0f, 0.0f, 0.0f, 1.0f 20 20 21 21 // FORWARD DECLARATION
Note: See TracChangeset
for help on using the changeset viewer.