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

    r2091 r2092  
    4949    {
    5050        public:
    51             GlobalQuest();
    52             ~GlobalQuest();
    53            
     51            GlobalQuest(BaseObject* creator);
     52            virtual ~GlobalQuest();
     53
    5454            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    55            
     55
    5656        protected:
    5757            virtual bool isStartable(const Player* player) const; //!< Checks whether the quest can be started.
    5858            virtual bool isFailable(const Player* player) const; //!< Checks whether the quest can be failed.
    5959            virtual bool isCompletable(const Player* player) const; //!< Checks whether the quest can be completed.
    60        
     60
    6161            virtual questStatus::Enum getStatus(const Player* player) const; //!< Returns the status of the quest for a specific player.
    6262            virtual bool setStatus(Player* player, const questStatus::Enum & status); //!< Sets the status for a specific player.
    63            
     63
    6464        private:
    6565            std::set<Player*> players_; //!< The set of players which possess this quest.
    6666            questStatus::Enum status_; //!< The status of this quest.
    67            
     67
    6868            void initialize(void);
    69    
     69
    7070    };
    7171
Note: See TracChangeset for help on using the changeset viewer.