Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4739 in orxonox.OLD for orxonox/trunk/src/util/loading/factory.h


Ignore:
Timestamp:
Jun 30, 2005, 4:05:23 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: factory is now registered in Factory, not in Gameloader

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/loading/factory.h

    r4730 r4739  
    4646
    4747  virtual BaseObject* fabricate(const TiXmlElement* root) = NULL;
    48   void initialize();
    49   void registerFactory( Factory* factory);
     48
     49  static void registerFactory( Factory* factory);
    5050  /** \brief sets the Next factory in the list \param nextFactory the next factory */
    5151  inline void setNext( Factory* nextFactory) { this->next = nextFactory; };
    5252  /** \returns the first factory */
    53   static Factory* getFirst(void) { return Factory::first; };
     53  static Factory* getFirst() { return Factory::first; };
    5454  /** \returns the next factory */
    5555  Factory* getNext(void) const { return this->next; };
    5656
    5757
    58  private:
    59   Factory*          next;                 //!< pointer to the next factory.
    60   static Factory*   first;                //!< A pointer to the first factory.
     58  private:
     59
     60  private:
     61    Factory*          next;                 //!< pointer to the next factory.
     62    static Factory*   first;                //!< A pointer to the first factory.
    6163};
    6264
Note: See TracChangeset for help on using the changeset viewer.