Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 27, 2008, 8:31:20 PM (16 years ago)
Author:
dafrick
Message:

Nearly compiles, some minor improvements.

File:
1 edited

Legend:

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

    r1996 r2021  
    3434
    3535#include "QuestDescription.h"
    36 #include "Quest.h"
    3736#include "QuestItem.h"
     37
     38namespace questHintStatus
     39{
     40
     41    enum Enum
     42    {
     43        inactive,
     44        active
     45    };
     46
     47}
    3848
    3949namespace orxonox
    4050{
     51
     52    class Player; //Forward declaration, remove when fully integrated into the objecthirarchy.
     53    class Quest; //To avoid circual includes.
    4154
    4255    /**
     
    5164   
    5265        public:
     66            QuestHint();
    5367            QuestHint(std::string id, std::string title = "", std::string description = "");
    5468            ~QuestHint();
    5569           
    56             bool isActive(const Player & player) const; //!< Returns true if the hint is active for the input player.
     70            bool isActive(Player* player); //!< Returns true if the hint is active for the input player.
    5771           
    58             bool activate(const Player & player); //!< Activates the hint for the input player.
     72            bool activate(Player* player); //!< Activates the hint for the input player.
    5973           
    6074            void setQuest(Quest* quest); //!< Sets the quest the hint belongs to.
    6175           
    62         private: 
     76        private:
    6377           
    6478            Quest* quest_;
     
    6983}
    7084
    71 namespace questHintStatus
    72 {
    73 
    74     enum Enum
    75     {
    76         inactive,
    77         active
    78     };
    79 
    80 }
    81 
    8285#endif /* _QuestHint_H__ */
Note: See TracChangeset for help on using the changeset viewer.