Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 22, 2008, 4:03:10 PM (16 years ago)
Author:
dafrick
Message:

Some cleaning, reorganization and implementation of some small methods.

File:
1 edited

Legend:

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

    r1992 r1996  
    3030#define _LocalQuest_H__
    3131
     32#include <map>
    3233#include <string>
    3334
     
    4647        public:
    4748            LocalQuest(std::string id, std::string title = "", std::string description = "");
    48             ~LocalQuest();
     49            virtual ~LocalQuest();
    4950           
    5051        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       
    5156            virtual questStatus::Enum getStatus(const Player & player) const; //!< Returns the status of the quest for a specific player.
    5257            virtual void setStatus(const Player & player, const questStatus::Enum & status); //!< Sets the status for a specific player.
    5358               
    5459        private:
    55             //TDO: List of Players and the status of the quest fo them.
    56             questStatus::Enum status_; //!< The status of the quest.
     60            std::map<Player*, questStatus::Enum> playerStatus_;
    5761   
    5862    };
     63   
    5964
    6065}
Note: See TracChangeset for help on using the changeset viewer.