Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 1, 2008, 8:32:10 PM (16 years ago)
Author:
landauf
Message:
  • adopted quest classes to the new hierarchy (with a creator pointer)
  • added "RegisterObject(…)" in all constructors and "virtual" to all destructors
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/quest/QuestItem.cc

    r2091 r2092  
    3232
    3333namespace orxonox {
    34    
    35     QuestItem::QuestItem() : BaseObject()
     34
     35    QuestItem::QuestItem(BaseObject* creator) : BaseObject(creator)
    3636    {
     37        RegisterObject(QuestItem);
     38
    3739        this->initialize();
    3840    }
    39    
     41
    4042    /**
    4143    @brief
     
    4446    QuestItem::~QuestItem()
    4547    {
    46        
     48
    4749    }
    48    
     50
    4951    void QuestItem::XMLPort(Element& xmlelement, XMLPort::Mode mode)
    5052    {
    5153        SUPER(QuestItem, XMLPort, xmlelement, mode);
    52        
     54
    5355        XMLPortParam(QuestItem, "id", setId, getId, xmlelement, mode);
    5456        //Doesn't getDescription have to be of type getDescription(unsigned int) ?
     
    5860    }
    5961
    60    
     62
    6163    /**
    6264    @brief
     
    6769    {
    6870        RegisterObject(QuestItem);
    69        
     71
    7072        this->id_ = "";
    7173    }
    72    
     74
    7375    void QuestItem::setId(const std::string & id)
    7476    {
     
    8082        this->id_ = id;
    8183    }
    82    
     84
    8385    //const QuestDescription* QuestItem::getDescription(unsigned int index) const //!< Returns the description of the QuestItem.
    8486    //{
     
    8789    //    return this->description_;
    8890    //}
    89    
     91
    9092    /**
    9193    @brief
Note: See TracChangeset for help on using the changeset viewer.