- Timestamp:
- Nov 8, 2008, 7:58:49 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem2/src/orxonox/objects/quest/AddQuestHint.cc
r2146 r2159 27 27 */ 28 28 29 /** 30 @file AddQuestHint.cc 31 @brief 32 Implementation of the AddQuestHint class. 33 */ 34 29 35 #include "OrxonoxStableHeaders.h" 30 36 #include "AddQuestHint.h" … … 42 48 CreateFactory(AddQuestHint); 43 49 50 /** 51 @brief 52 Constructor. Registers the object. 53 */ 44 54 AddQuestHint::AddQuestHint(BaseObject* creator) : QuestEffect(creator) 45 55 { … … 55 65 } 56 66 67 /** 68 @brief 69 Method for creating a AddQuestHint object through XML. 70 */ 57 71 void AddQuestHint::XMLPort(Element& xmlelement, XMLPort::Mode mode) 58 72 { … … 63 77 } 64 78 79 /** 80 @brief 81 Sets the id of the quest hint to be added to the player the effect is invoked on. 82 @param id 83 The QuestHint id. 84 @param 85 Returns true if successful. 86 */ 65 87 inline void AddQuestHint::setHintId(const std::string & id) 66 88 { … … 68 90 { 69 91 COUT(2) << "Invalid id. QuestItem id {" << id << "} could not be set." << std::endl; 70 return ;92 return false; 71 93 } 94 72 95 this->hintId_ = id; 96 return true; 73 97 } 74 98 … … 83 107 bool AddQuestHint::invoke(ControllableEntity* player) 84 108 { 85 if(player == NULL) 109 if(player == NULL) //!< NULL-pointers are evil! 86 110 { 87 111 COUT(2) << "The input player is NULL." << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.