Changeset 9684 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/factory.cc
- Timestamp:
- Aug 22, 2006, 1:34:31 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/factory.cc
r9675 r9684 19 19 //#include "shell_command.h" 20 20 21 21 NewObjectListDefinition(Factory); 22 22 23 23 //SHELL_COMMAND(create, Factory, fabricate); … … 28 28 * set everything to zero and define factoryName 29 29 */ 30 Factory::Factory (const std::string& factoryName, ClassIDclassID)30 Factory::Factory (const std::string& factoryName, int classID) 31 31 : classID(classID), className(factoryName) 32 32 { 33 this-> setClassID(CL_FACTORY, "Factory");33 this->registerObject(this, Factory::_objectList); 34 34 this->setName(factoryName); 35 35 … … 74 74 * @returns true on match, false otherwise 75 75 */ 76 bool Factory::operator==( ClassIDclassID) const76 bool Factory::operator==(int classID) const 77 77 { 78 78 return (this->classID == classID); … … 149 149 * @returns a new Object of Type classID on match, NULL otherwise 150 150 */ 151 BaseObject* Factory::fabricate( ClassIDclassID)151 BaseObject* Factory::fabricate(int classID) 152 152 { 153 153 if (Factory::factoryList == NULL)
Note: See TracChangeset
for help on using the changeset viewer.