Changeset 8351 for code/trunk/src/modules/questsystem
- Timestamp:
- Apr 28, 2011, 7:15:14 AM (14 years ago)
- Location:
- code/trunk/src/modules/questsystem
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/questsystem/QuestEffect.cc
r7456 r8351 68 68 /*static*/ bool QuestEffect::invokeEffects(PlayerInfo* player, std::list<QuestEffect*> & effects) 69 69 { 70 bool check= true;70 bool temp = true; 71 71 72 72 COUT(4) << "Invoking QuestEffects on player: " << player << " ." << std::endl; 73 73 74 74 for (std::list<QuestEffect*>::iterator effect = effects.begin(); effect != effects.end(); effect++) 75 check = check&& (*effect)->invoke(player);75 temp = temp && (*effect)->invoke(player); 76 76 77 return check;77 return temp; 78 78 } 79 79 -
code/trunk/src/modules/questsystem/QuestEffectBeacon.cc
r7552 r8351 143 143 COUT(4) << "QuestEffectBeacon executed on player: " << player << " ." << std::endl; 144 144 145 bool check= QuestEffect::invokeEffects(player, this->effects_); // Invoke the QuestEffects on the PlayerInfo.146 if( check)145 bool temp = QuestEffect::invokeEffects(player, this->effects_); // Invoke the QuestEffects on the PlayerInfo. 146 if(temp) 147 147 { 148 148 this->decrementTimes(); // Decrement the number of times the beacon can be used. -
code/trunk/src/modules/questsystem/QuestsystemPrereqs.h
r7474 r8351 53 53 # endif 54 54 # endif 55 #elif defined ( ORXONOX_GCC_VISIBILITY ) 55 # define _QuestsystemPrivate 56 #elif defined (ORXONOX_GCC_VISIBILITY) 56 57 # define _QuestsystemExport __attribute__ ((visibility("default"))) 58 # define _QuestsystemPrivate __attribute__ ((visibility("hidden"))) 57 59 #else 58 60 # define _QuestsystemExport 61 # define _QuestsystemPrivate 59 62 #endif 60 63 -
code/trunk/src/modules/questsystem/effects/AddReward.cc
r7456 r8351 105 105 COUT(5) << "AddReward on player: " << player << " ." << std::endl; 106 106 107 bool check= true;107 bool temp = true; 108 108 for ( std::list<Rewardable*>::iterator reward = this->rewards_.begin(); reward != this->rewards_.end(); ++reward ) 109 check = check&& (*reward)->reward(player);109 temp = temp && (*reward)->reward(player); 110 110 111 111 COUT(4) << "Rewardable successfully added to player." << player << " ." << std::endl; 112 112 113 return check;113 return temp; 114 114 } 115 115 -
code/trunk/src/modules/questsystem/effects/CMakeLists.txt
- Property svn:eol-style set to native
Note: See TracChangeset
for help on using the changeset viewer.