- Timestamp:
- Oct 22, 2008, 4:03:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem/src/orxonox/objects/LocalQuest.h
r1992 r1996 30 30 #define _LocalQuest_H__ 31 31 32 #include <map> 32 33 #include <string> 33 34 … … 46 47 public: 47 48 LocalQuest(std::string id, std::string title = "", std::string description = ""); 48 ~LocalQuest();49 virtual ~LocalQuest(); 49 50 50 51 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 51 56 virtual questStatus::Enum getStatus(const Player & player) const; //!< Returns the status of the quest for a specific player. 52 57 virtual void setStatus(const Player & player, const questStatus::Enum & status); //!< Sets the status for a specific player. 53 58 54 59 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_; 57 61 58 62 }; 63 59 64 60 65 }
Note: See TracChangeset
for help on using the changeset viewer.