- Timestamp:
- Oct 27, 2008, 8:31:20 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem/src/orxonox/objects/GlobalQuest.h
r1996 r2021 36 36 namespace orxonox { 37 37 38 class Player; //Forward declaration, remove when fully integrated into the objecthirarchy. 39 38 40 /** 39 41 @brief … … 46 48 { 47 49 public: 50 GlobalQuest(); 48 51 GlobalQuest(std::string id, std::string title = "", std::string description = ""); 49 virtual~GlobalQuest();52 ~GlobalQuest(); 50 53 51 54 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. 55 58 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. 58 61 59 62 private:
Note: See TracChangeset
for help on using the changeset viewer.