Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 27, 2008, 4:08:51 AM (17 years ago)
Author:
landauf
Message:

many changes, most important: BaseObject takes now a pointer to it's creator which is needed to build a level hierarchy (with different scenes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/core/Identifier.h

    r1952 r2019  
    100100            inline void addFactory(BaseFactory* factory) { this->factory_ = factory; }
    101101
    102             BaseObject* fabricate();
     102            BaseObject* fabricate(BaseObject* creator);
    103103            bool isA(const Identifier* identifier) const;
    104104            bool isExactlyA(const Identifier* identifier) const;
     
    502502                @brief Overloading of the * operator: returns the assigned identifier.
    503503            */
    504             inline Identifier* operator*()
     504            inline Identifier* operator*() const
    505505            {
    506506                return this->identifier_;
     
    527527                @return The new object
    528528            */
    529             T* fabricate()
    530             {
    531                 BaseObject* newObject = this->identifier_->fabricate();
     529            T* fabricate(BaseObject* creator) const
     530            {
     531                BaseObject* newObject = this->identifier_->fabricate(creator);
    532532
    533533                // Check if the creation was successful
Note: See TracChangeset for help on using the changeset viewer.