Changeset 2261 for code/trunk/src/orxonox/objects/quest/AddQuestHint.h
- Timestamp:
- Nov 25, 2008, 11:56:40 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/questsystem2 (added) merged: 2109,2146,2159,2191,2193-2196,2205-2206,2208-2209,2221,2226,2228,2251,2258
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/objects/quest/AddQuestHint.h
- Property svn:mergeinfo changed
/code/branches/questsystem2/src/orxonox/objects/quest/AddQuestHint.h (added) merged: 2146,2159,2191,2205,2221,2251 /code/trunk/src/orxonox/objects/quest/AddQuestHint.h merged: 1925-2089
r2096 r2261 27 27 */ 28 28 29 /** 30 @file AddQuestHint.h 31 @brief 32 Definition of the AddQuestHint class. 33 */ 34 29 35 #ifndef _AddQuestHint_H__ 30 36 #define _AddQuestHint_H__ … … 38 44 namespace orxonox { 39 45 40 class Player; //Forward declaration, remove when fully integrated into the objecthirarchy.41 42 46 /** 43 47 @brief 44 Adds a QuestHint, resp. Activates the QuestHint. 48 Adds a QuestHint, resp. activates the QuestHint of the given id for the player the QuestEffect is invoked on. 49 50 Creating a AddQuestHint through XML goes as follows: 51 52 <AddQuestHint hintId="id" /> //Where id is a GUID, see http://en.wikipedia.org/wiki/Globally_Unique_Identifier#Basic_structure for more information, and identifies the QuestHint that should be added. 45 53 @author 46 54 Damian 'Mozork' Frick … … 52 60 virtual ~AddQuestHint(); 53 61 54 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 62 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); //!< Method for creating a AddQuestHint object through XML. 55 63 56 virtual bool invoke(Player * player); //!< Invokes the effect.64 virtual bool invoke(PlayerInfo* player); //!< Invokes the QuestEffect. 57 65 58 66 private: 59 std::string hintId_; 67 std::string hintId_; //!< The id of the QuestHint. 60 68 69 /** 70 @brief Returns the id of the QuestHint. 71 @return Returns the id of the QuestHint. 72 */ 61 73 inline const std::string & getHintId(void) const 62 74 { return this->hintId_; } 63 void setHintId(const std::string & id);75 bool setHintId(const std::string & id); //!< Sets the id of the QuestHint. 64 76 65 77 }; - Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.