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/ChangeQuestStatus.h

    r2068 r2076  
    3232#include <string>
    3333
     34#include "core/XMLPort.h"
    3435#include "QuestEffect.h"
    3536
     
    4849        public:
    4950            ChangeQuestStatus();
    50             ChangeQuestStatus(std::string questId);
    5151            virtual ~ChangeQuestStatus();
     52           
     53            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    5254           
    5355            virtual bool invoke(Player* player) = 0; //!< Invokes the effect.
    5456           
    5557        protected:
    56             inline std::string getQuestId(void) //!< Returns the quest id.
    57                 { return questId_; }
     58            inline const std::string & getQuestId(void) const //!< Returns the quest id.
     59                { return this->questId_; }
    5860       
    5961            std::string questId_; //!< The id of the quest the status should be changed of.
     62           
     63        private:
     64            inline void setQuestId(const std::string & id)
     65                { this->questId_ = id; }
    6066
    6167    };
Note: See TracChangeset for help on using the changeset viewer.