- Timestamp:
- Dec 6, 2008, 9:46:11 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem3/src/orxonox/objects/quest/QuestEffectBeacon.cc
r2262 r2349 91 91 SUPER(QuestEffectBeacon, processEvent, event); 92 92 93 SetSubclassEvent(QuestEffectBeacon, "execute", execute, event, PlayerTrigger);93 SetSubclassEvent(QuestEffectBeacon, "execute", execute, event, PlayerTrigger); 94 94 } 95 95 … … 167 167 if(activate) 168 168 { 169 170 169 this->status_ = QuestEffectBeaconStatus::active; 170 return true; 171 171 } 172 172 … … 193 193 194 194 this->times_ = this->times_ - 1; //!< Decrement number of times the QuestEffectBeacon can be executed. 195 196 197 198 199 195 if(this->getTimes() == 0) //!< Set the QuestEffectBeacon to inactive when the number of times it can be executed is reduced to 0. 196 { 197 this->status_ = QuestEffectBeaconStatus::inactive; 198 } 199 200 200 return true; 201 201 }
Note: See TracChangeset
for help on using the changeset viewer.