Changeset 7564
- Timestamp:
- Oct 19, 2010, 11:43:25 PM (14 years ago)
- Location:
- code/branches/ois_update/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ois_update/src/external/bullet/BulletCollision/NarrowPhaseCollision/btGjkPairDetector.cpp
r5781 r7564 38 38 int gNumGjkChecks = 0; 39 39 40 #ifdef check 41 struct CompilerError 42 { 43 void CompilerError() {} 44 }; 45 #endif 40 46 41 47 -
code/branches/ois_update/src/libraries/core/Super.h
r7559 r7564 94 94 struct SuperFunctionCondition<functionnumber, T, 0, templatehack2> \ 95 95 { \ 96 static void check() \96 static void verify() \ 97 97 { \ 98 98 SuperFunctionCondition<functionnumber, T, 0, templatehack2>::apply(static_cast<T*>(0)); \ 99 SuperFunctionCondition<functionnumber + 1, T, 0, templatehack2>:: check(); \99 SuperFunctionCondition<functionnumber + 1, T, 0, templatehack2>::verify(); \ 100 100 } \ 101 101 \ … … 132 132 struct SuperFunctionCondition<functionnumber, baseclass, 0, templatehack2> \ 133 133 { \ 134 static void check() \135 { \ 136 SuperFunctionCondition<functionnumber + 1, baseclass, 0, templatehack2>:: check(); \134 static void verify() \ 135 { \ 136 SuperFunctionCondition<functionnumber + 1, baseclass, 0, templatehack2>::verify(); \ 137 137 } \ 138 138 }; … … 150 150 struct SuperFunctionCondition<functionnumber, T, 0, templatehack2> 151 151 { 152 static void check()152 static void verify() 153 153 { 154 154 // This call to the apply-function is the whole check. By calling the function with … … 156 156 SuperFunctionCondition<functionnumber, T, 0, templatehack2>::apply(static_cast<T*>(0)); 157 157 158 // Go go the checkfor of next super-function (functionnumber + 1)159 SuperFunctionCondition<functionnumber + 1, T, 0, templatehack2>:: check();158 // Go go the verify for of next super-function (functionnumber + 1) 159 SuperFunctionCondition<functionnumber + 1, T, 0, templatehack2>::verify(); 160 160 } 161 161 … … 202 202 struct SuperFunctionCondition<functionnumber, baseclass, 0, templatehack2> \ 203 203 { \ 204 // The checkfunction acts like the fallback - it advances to the check for the next super-function (functionnumber + 1)205 static void check() \206 { \ 207 SuperFunctionCondition<functionnumber + 1, baseclass, 0, templatehack2>:: check(); \204 // The verify function acts like the fallback - it advances to the check for the next super-function (functionnumber + 1) 205 static void verify() \ 206 { \ 207 SuperFunctionCondition<functionnumber + 1, baseclass, 0, templatehack2>::verify(); \ 208 208 } \ 209 209 }; … … 303 303 struct SuperFunctionCondition 304 304 { 305 static void check() {}305 static void verify() {} 306 306 }; 307 307 … … 338 338 struct SuperFunctionCondition<functionnumber, T, templatehack1, templatehack2> \ 339 339 { \ 340 static void check() \340 static void verify() \ 341 341 { \ 342 SuperFunctionCondition<functionnumber + 1, T, templatehack1, templatehack2>:: check(); \342 SuperFunctionCondition<functionnumber + 1, T, templatehack1, templatehack2>::verify(); \ 343 343 } \ 344 344 }; \ … … 421 421 // If this function gets called, the header-file of the super function is not 422 422 // included, so this fallback template (templatehack not specialized) is used 423 static void check()423 static void verify() 424 424 { 425 425 // Calls the condition-check of the next super-function (functionnumber + 1) 426 SuperFunctionCondition<functionnumber + 1, T, templatehack1, templatehack2>:: check();426 SuperFunctionCondition<functionnumber + 1, T, templatehack1, templatehack2>::verify(); 427 427 } 428 428 }; … … 574 574 virtual void createSuperFunctionCaller() const 575 575 { 576 //SuperFunctionCondition<0, T, 0, 0>:: check();576 //SuperFunctionCondition<0, T, 0, 0>::verify(); 577 577 } 578 578 -
code/branches/ois_update/src/modules/questsystem/QuestEffect.cc
r7456 r7564 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/branches/ois_update/src/modules/questsystem/QuestEffectBeacon.cc
r7484 r7564 154 154 COUT(4) << "QuestEffectBeacon executed on player: " << player << " ." << std::endl; 155 155 156 bool check= QuestEffect::invokeEffects(player, this->effects_); // Invoke the QuestEffects on the PlayerInfo.157 if( check)156 bool temp = QuestEffect::invokeEffects(player, this->effects_); // Invoke the QuestEffects on the PlayerInfo. 157 if(temp) 158 158 { 159 159 this->decrementTimes(); // Decrement the number of times the beacon can be used. -
code/branches/ois_update/src/modules/questsystem/effects/AddReward.cc
r7456 r7564 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
Note: See TracChangeset
for help on using the changeset viewer.