- Timestamp:
- Nov 13, 2008, 9:55:01 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem2/src/orxonox/objects/quest/LocalQuest.h
r2191 r2205 87 87 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a LocalQuest object through XML. 88 88 89 virtual bool fail( ControllableEntity* player); //!< Fails the Quest.90 virtual bool complete( ControllableEntity* player); //!< Completes the Quest.89 virtual bool fail(PlayerInfo* player); //!< Fails the Quest. 90 virtual bool complete(PlayerInfo* player); //!< Completes the Quest. 91 91 92 92 protected: 93 virtual bool isStartable(const ControllableEntity* player) const; //!< Checks whether the Quest can be started.94 virtual bool isFailable(const ControllableEntity* player) const; //!< Checks whether the Quest can be failed.95 virtual bool isCompletable(const ControllableEntity* player) const; //!< Checks whether the Quest can be completed.93 virtual bool isStartable(const PlayerInfo* player) const; //!< Checks whether the Quest can be started. 94 virtual bool isFailable(const PlayerInfo* player) const; //!< Checks whether the Quest can be failed. 95 virtual bool isCompletable(const PlayerInfo* player) const; //!< Checks whether the Quest can be completed. 96 96 97 virtual questStatus::Enum getStatus(const ControllableEntity* player) const; //!< Returns the status of the Quest for a specific player.98 virtual bool setStatus( ControllableEntity* player, const questStatus::Enum & status); //!< Sets the status for a specific player.97 virtual questStatus::Enum getStatus(const PlayerInfo* player) const; //!< Returns the status of the Quest for a specific player. 98 virtual bool setStatus(PlayerInfo* player, const questStatus::Enum & status); //!< Sets the status for a specific player. 99 99 100 100 private: 101 std::map< ControllableEntity*, questStatus::Enum> playerStatus_; //!< List of the status for each player, with the Player-pointer as key.101 std::map<const PlayerInfo*, questStatus::Enum> playerStatus_; //!< List of the status for each player, with the Player-pointer as key. 102 102 103 103 };
Note: See TracChangeset
for help on using the changeset viewer.