- Timestamp:
- Dec 7, 2008, 11:39:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem3/src/orxonox/objects/quest/QuestEffectBeacon.cc
r2349 r2352 29 29 /** 30 30 @file QuestEffectBeacon.cc 31 @brief 32 Implementation of the QuestEffectBeacon class. 31 @brief Implementation of the QuestEffectBeacon class. 33 32 */ 34 33 … … 145 144 this->decrementTimes(); //!< Decrement the number of times the beacon can be used. 146 145 return true; 147 }148 149 return false;146 } 147 148 return false; 150 149 } 151 150 … … 167 166 if(activate) 168 167 { 169 170 168 this->status_ = QuestEffectBeaconStatus::active; 169 return true; 171 170 } 172 171 … … 193 192 194 193 this->times_ = this->times_ - 1; //!< Decrement number of times the QuestEffectBeacon can be executed. 195 196 197 198 199 194 if(this->getTimes() == 0) //!< Set the QuestEffectBeacon to inactive when the number of times it can be executed is reduced to 0. 195 { 196 this->status_ = QuestEffectBeaconStatus::inactive; 197 } 198 200 199 return true; 201 200 }
Note: See TracChangeset
for help on using the changeset viewer.