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

    r2091 r2092  
    4949    {
    5050        public:
    51             LocalQuest();
    52             ~LocalQuest();
    53            
     51            LocalQuest(BaseObject* creator);
     52            virtual ~LocalQuest();
     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::map<Player*, questStatus::Enum> playerStatus_; //!< List of the status for each player, with the Player-pointer as key.
    66            
     66
    6767            void initialize(void);
    68    
     68
    6969    };
    70    
     70
    7171
    7272}
Note: See TracChangeset for help on using the changeset viewer.