Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 25, 2006, 12:11:45 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_object_list: fast factory, ObjectManager, and Hud adapted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/util/fast_factory.cc

    r9406 r9703  
    2222
    2323
    24 
    25 /**
    26  * Initializes a FastFactory
     24NewObjectListDefinition(FastFactory);
     25
     26/**
     27 * @brief Initializes a FastFactory
    2728 * @param classID the ClassID this Class belongs to (the top-most)
    2829 * @param fastFactoryName the Name of the ObjectClass-handled here
    2930 * @return a new FastFactory
    3031 */
    31 FastFactory::FastFactory (ClassID classID, const std::string& fastFactoryName)
    32 {
    33   this->setClassID(CL_FAST_FACTORY, "FastFactory");
     32FastFactory::FastFactory (const NewClassID& classID, const std::string& fastFactoryName)
     33{
     34  this->registerObject(this, FastFactory::_objectList);
    3435  this->setName(fastFactoryName);
    3536
     
    9798 * @returns true if found, false otherwise.
    9899 */
    99 FastFactory* FastFactory::searchFastFactory(ClassID classID)
     100FastFactory* FastFactory::searchFastFactory(const NewClassID& classID)
    100101{
    101102  if (FastFactory::first == NULL)
     
    228229 * @return the Object to resurrect, NULL if classID is not found.
    229230 */
    230 BaseObject* FastFactory::resurrect(ClassID classID)
     231BaseObject* FastFactory::resurrect(const NewClassID& classID)
    231232{
    232233  FastFactory* tmpFac = FastFactory::getFirst();
Note: See TracChangeset for help on using the changeset viewer.