- Timestamp:
- Nov 14, 2008, 2:55:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/questsystem2/src/orxonox/objects/quest/QuestEffectBeacon.cc
r2208 r2209 71 71 } 72 72 73 bool QuestEffectBeacon::execute(bool b, ControllableEntity* entity) 74 { 75 if(!b || !(this->isActive())) 73 bool QuestEffectBeacon::execute(bool b, PlayerTrigger* trigger) 74 { 75 if(!b) 76 { 77 COUT(2) << "b is false." << std::endl; 78 } 79 if(!(this->isActive())) 76 80 { 77 81 COUT(3) << "The QuestEffectBeacon is inactive." << std::endl; 78 82 return false; 79 83 } 84 85 ControllableEntity* entity = trigger->getTriggeringPlayer(); 86 80 87 if(entity == NULL) 81 88 { … … 91 98 return false; 92 99 } 93 100 101 COUT(3) << "QuestEffectBeacon executed on player: " << player << " ." << std::endl; 102 94 103 bool check = QuestEffect::invokeEffects(player, this->effects_); 95 104 if(check)
Note: See TracChangeset
for help on using the changeset viewer.