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

    r2091 r2092  
    2626 *
    2727 */
    28  
     28
    2929#ifndef _QuestHint_H__
    3030#define _QuestHint_H__
     
    6464    class QuestHint : public QuestItem
    6565    {
    66    
     66
    6767        public:
    68             QuestHint();
    69             ~QuestHint();
    70            
     68            QuestHint(BaseObject* creator);
     69            virtual ~QuestHint();
     70
    7171            virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode);
    72            
     72
    7373            bool isActive(Player* player); //!< Returns true if the hint is active for the input player.
    74            
     74
    7575            bool activate(Player* player); //!< Activates the hint for the input player.
    76            
     76
    7777            bool setQuest(Quest* quest); //!< Sets the quest the hint belongs to.
    78            
     78
    7979            inline Quest* getQuest(void)
    8080               { return this->quest_; }
    81            
     81
    8282        private:
    83            
     83
    8484            void initialize(void);
    85            
     85
    8686            Quest* quest_; //!< The quest the hint belongs to.
    8787            std::map<Player*, questHintStatus::Enum> playerStatus_; //!< List of the status for each player, with the Player-pointer as key.
    88    
     88
    8989    };
    9090
Note: See TracChangeset for help on using the changeset viewer.