Changeset 11071 for code/trunk/src/modules/questsystem/GlobalQuest.h
- Timestamp:
- Jan 17, 2016, 10:29:21 PM (8 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/questsystem/GlobalQuest.h
r9667 r11071 93 93 virtual ~GlobalQuest(); 94 94 95 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) ; //!< Method for creating a GlobalQuest object through XML.95 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode) override; //!< Method for creating a GlobalQuest object through XML. 96 96 97 virtual bool fail(PlayerInfo* player) ; //!< Fails the Quest.98 virtual bool complete(PlayerInfo* player) ; //!< Completes the Quest.97 virtual bool fail(PlayerInfo* player) override; //!< Fails the Quest. 98 virtual bool complete(PlayerInfo* player) override; //!< Completes the Quest. 99 99 100 100 protected: 101 virtual bool isStartable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be started.102 virtual bool isFailable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be failed.103 virtual bool isCompletable(const PlayerInfo* player) const ; //!< Checks whether the Quest can be completed.101 virtual bool isStartable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be started. 102 virtual bool isFailable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be failed. 103 virtual bool isCompletable(const PlayerInfo* player) const override; //!< Checks whether the Quest can be completed. 104 104 105 virtual QuestStatus ::Value getStatus(const PlayerInfo* player) const; //!< Returns the status of the Quest for a specific player.105 virtual QuestStatus getStatus(const PlayerInfo* player) const override; //!< Returns the status of the Quest for a specific player. 106 106 107 virtual bool setStatus(PlayerInfo* player, const QuestStatus ::Value & status); //!< Sets the status for a specific player.107 virtual bool setStatus(PlayerInfo* player, const QuestStatus & status) override; //!< Sets the status for a specific player. 108 108 109 109 private: 110 110 std::set<PlayerInfo*> players_; //!< The set of players which possess this Quest. 111 QuestStatus ::Valuestatus_; //!< The status of this Quest.111 QuestStatus status_; //!< The status of this Quest. 112 112 std::list<QuestEffect*> rewards_; //!< Reward QuestEffects only invoked on the player completing the Quest. 113 113
Note: See TracChangeset
for help on using the changeset viewer.