- Timestamp:
- Nov 12, 2008, 1:29:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem2/src/orxonox/objects/quest/LocalQuest.cc
r2159 r2191 77 77 /** 78 78 @brief 79 Fails the quest for a given player.79 Fails the Quest for a given player. 80 80 Invokes all the failEffects on the player. 81 81 @param player 82 82 The player. 83 83 @return 84 Returns true if the quest could be failed, false if not.84 Returns true if the Quest could be failed, false if not. 85 85 */ 86 86 bool LocalQuest::fail(ControllableEntity* player) … … 99 99 /** 100 100 @brief 101 Completes the quest for a given player.102 Invokes all the complete Effects on the player.101 Completes the Quest for a given player. 102 Invokes all the complete QuestEffects on the player. 103 103 @param player 104 104 The player. 105 105 @return 106 Returns true if the quest could be completed, false if not.106 Returns true if the Quest could be completed, false if not. 107 107 */ 108 108 bool LocalQuest::complete(ControllableEntity* player) 109 109 { 110 if(this->isCompletable(player)) //!< Checks whether the quest can be completed.110 if(this->isCompletable(player)) //!< Checks whether the Quest can be completed. 111 111 { 112 112 this->setStatus(player, questStatus::completed); 113 QuestEffect::invokeEffects(player, this->getCompleteEffectList()); //!< Invoke the complete Effects.113 QuestEffect::invokeEffects(player, this->getCompleteEffectList()); //!< Invoke the complete QuestEffects. 114 114 return true; 115 115 } … … 121 121 /** 122 122 @brief 123 Checks whether the quest can be started.123 Checks whether the Quest can be started. 124 124 @param player 125 125 The player for whom is to be checked. 126 126 @return 127 Returns true if the quest can be started, false if not.127 Returns true if the Quest can be started, false if not. 128 128 @throws 129 129 Throws an exception if isInactive(ControllableEntity*) throws one. … … 136 136 /** 137 137 @brief 138 Checks whether the quest can be failed.138 Checks whether the Quest can be failed. 139 139 @param player 140 140 The player for whom is to be checked. 141 141 @return 142 Returns true if the quest can be failed, false if not.142 Returns true if the Quest can be failed, false if not. 143 143 @throws 144 144 Throws an exception if isActive(ControllableEntity*) throws one. … … 151 151 /** 152 152 @brief 153 Checks whether the quest can be completed.153 Checks whether the Quest can be completed. 154 154 @param player 155 155 The player for whom is to be checked. 156 156 @return 157 Returns true if the quest can be completed, false if not.157 Returns true if the Quest can be completed, false if not. 158 158 @throws 159 159 Throws an exception if isInactive(ControllableEntity*) throws one. … … 166 166 /** 167 167 @brief 168 Returns the status of the quest for a specific player.168 Returns the status of the Quest for a specific player. 169 169 @param player 170 170 The player. 171 171 @return 172 Returns the status of the quest for the input player.172 Returns the status of the Quest for the input player. 173 173 @throws 174 174 Throws an Exception if player is NULL.
Note: See TracChangeset
for help on using the changeset viewer.