Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 8, 2008, 7:58:49 PM (16 years ago)
Author:
dafrick
Message:

Completed documentation of finished classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem2/src/orxonox/objects/quest/Quest.cc

    r2146 r2159  
    4848    /**
    4949    @brief
    50         Constructor. Initializes object.
     50        Constructor. Registers and initializes object.
    5151    */
    5252    Quest::Quest(BaseObject* creator) : QuestItem(creator)
    5353    {
    54         this->initialize();
    55     }
    56    
    57     /**
    58     @brief
    59         Initializes the object. Needs to be called first in every constructor of this class.
    60         Sets defaults.
    61     */
    62     void Quest::initialize(void)
    63     {
    6454        RegisterObject(Quest);
    6555
     
    8474        SUPER(Quest, XMLPort, xmlelement, mode);
    8575
    86         XMLPortObject(Quest, Quest, "subquests", addSubQuest, getSubQuests, xmlelement, mode);
    87         XMLPortObject(Quest, QuestHint, "hints", addHint, getHints, xmlelement, mode);
    88         XMLPortObject(Quest, QuestEffect, "fail-effects", addFailEffect, getFailEffects, xmlelement, mode);
    89         XMLPortObject(Quest, QuestEffect, "complete-effects", addCompleteEffect, getCompleteEffects, xmlelement, mode);
     76        XMLPortObject(Quest, Quest, "subquests", addSubQuest, getSubQuest, xmlelement, mode);
     77        XMLPortObject(Quest, QuestHint, "hints", addHint, getHint, xmlelement, mode);
     78        XMLPortObject(Quest, QuestEffect, "fail-effects", addFailEffect, getFailEffect, xmlelement, mode);
     79        XMLPortObject(Quest, QuestEffect, "complete-effects", addCompleteEffect, getCompleteEffect, xmlelement, mode);
    9080
    9181        QuestManager::registerQuest(this); //Registers the quest with the QuestManager.
     
    224214        Returns the subquest of the given index. NULL if there is no element on the given index.
    225215    */
    226     const Quest* Quest::getSubQuests(unsigned int index) const
     216    const Quest* Quest::getSubQuest(unsigned int index) const
    227217    {
    228218        int i = index;
     
    249239        Returns the hint of the given index. NULL if there is no element on the given index.
    250240    */
    251     const QuestHint* Quest::getHints(unsigned int index) const
     241    const QuestHint* Quest::getHint(unsigned int index) const
    252242    {
    253243        int i = index;
     
    273263        Returns the failEffect of the given index. NULL if there is no element on the given index.
    274264    */
    275     const QuestEffect* Quest::getFailEffects(unsigned int index) const
     265    const QuestEffect* Quest::getFailEffect(unsigned int index) const
    276266    {
    277267        int i = index;
     
    297287        Returns the completeEffect of the given index. NULL if there is no element on the given index.
    298288    */
    299     const QuestEffect* Quest::getCompleteEffects(unsigned int index) const
     289    const QuestEffect* Quest::getCompleteEffect(unsigned int index) const
    300290    {
    301291        int i = index;
Note: See TracChangeset for help on using the changeset viewer.