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

    r1996 r2021  
    3636namespace orxonox {
    3737
     38    class Player; //Forward declaration, remove when fully integrated into the objecthirarchy.
     39
    3840    /**
    3941    @brief
     
    4648    {
    4749        public:
     50            GlobalQuest();
    4851            GlobalQuest(std::string id, std::string title = "", std::string description = "");
    49             virtual ~GlobalQuest();
     52            ~GlobalQuest();
    5053           
    5154        protected:
    52             virtual bool isStartable(const Player & player) const; //!< Checks whether the quest can be started.
    53             virtual bool isFailable(const Player & player) const; //!< Checks whether the quest can be failed.
    54             virtual bool isCompletable(const Player & player) const; //!< Checks whether the quest can be completed.
     55            virtual bool isStartable(Player* player); //!< Checks whether the quest can be started.
     56            virtual bool isFailable(Player* player); //!< Checks whether the quest can be failed.
     57            virtual bool isCompletable(Player* player); //!< Checks whether the quest can be completed.
    5558       
    56             virtual questStatus::Enum getStatus(const Player & player) const; //!< Returns the status of the quest for a specific player.
    57             virtual bool setStatus(const Player & player, const questStatus::Enum & status); //!< Sets the status for a specific player.
     59            virtual questStatus::Enum getStatus(const Player* player); //!< Returns the status of the quest for a specific player.
     60            virtual bool setStatus(Player* player, const questStatus::Enum & status); //!< Sets the status for a specific player.
    5861           
    5962        private:
Note: See TracChangeset for help on using the changeset viewer.