Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 31, 2008, 7:35:08 AM (17 years ago)
Author:
dafrick
Message:

Completed XMLPort for all objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem/src/orxonox/objects/Quest.h

    r2068 r2076  
    3333#include <string>
    3434
     35#include "core/XMLPort.h"
    3536#include "QuestDescription.h"
    3637#include "QuestItem.h"
     
    6768        public:
    6869            Quest();
    69             Quest(std::string id);
    7070            virtual ~Quest();
     71           
     72            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    7173   
    7274            inline Quest* getParentQuest(void) const //!< Returns the parent quest of the quest.
    7375                { return this->parentQuest_; }
    74             inline const std::list<Quest*> & getSubQuest(void) const //!< Returns the list of sub quests.
     76            inline const std::list<Quest*> & getSubQuestList(void) const //!< Returns the list of sub quests.
    7577                { return this->subQuests_; }
    7678           
     
    8385            bool fail(Player* player); //!< Fails the quest.
    8486            bool complete(Player* player); //!< Completes the quest.
    85                
    86             bool addHint(QuestHint* hint); //!< Add a hint to the list of hints.
    8787           
    8888        protected:
     
    9595            bool setParentQuest(Quest* quest); //!< Sets the parent quest of the quest.
    9696            bool addSubQuest(Quest* quest); //!< Adds a sub quest to the quest.
     97            bool addHint(QuestHint* hint); //!< Add a hint to the list of hints.
     98            bool addFailEffect(QuestEffect* effect);
     99            bool addCompleteEffect(QuestEffect* effect);
     100           
     101            const Quest* getParentQuest(void);
     102            const Quest* getSubQuests(unsigned int index) const;
     103            const QuestHint* getHints(unsigned int index) const;
     104            const QuestEffect* getFailEffects(unsigned int index) const;
     105            const QuestEffect* getCompleteEffects(unsigned int index) const;
    97106           
    98107            virtual questStatus::Enum getStatus(const Player* player) const = 0; //!< Returns the status of the quest for a specific player.
Note: See TracChangeset for help on using the changeset viewer.