Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 22, 2006, 1:34:31 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/new_class_id: slowly but surely reimplementing to the new groove… way to go

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/util/loading/factory.cc

    r9675 r9684  
    1919//#include "shell_command.h"
    2020
    21 
     21NewObjectListDefinition(Factory);
    2222
    2323//SHELL_COMMAND(create, Factory, fabricate);
     
    2828 * set everything to zero and define factoryName
    2929 */
    30 Factory::Factory (const std::string& factoryName, ClassID classID)
     30Factory::Factory (const std::string& factoryName, int classID)
    3131    : classID(classID), className(factoryName)
    3232{
    33   this->setClassID(CL_FACTORY, "Factory");
     33  this->registerObject(this, Factory::_objectList);
    3434  this->setName(factoryName);
    3535
     
    7474 * @returns true on match, false otherwise
    7575 */
    76 bool Factory::operator==(ClassID classID) const
     76bool Factory::operator==(int classID) const
    7777{
    7878  return (this->classID == classID);
     
    149149 * @returns a new Object of Type classID on match, NULL otherwise
    150150 */
    151 BaseObject* Factory::fabricate(ClassID classID)
     151BaseObject* Factory::fabricate(int classID)
    152152{
    153153  if (Factory::factoryList == NULL)
Note: See TracChangeset for help on using the changeset viewer.