Changeset 7552 for code/trunk/src/modules/questsystem/effects
- Timestamp:
- Oct 17, 2010, 10:50:43 PM (14 years ago)
- Location:
- code/trunk/src/modules/questsystem/effects
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/questsystem/effects/AddQuest.cc
r7456 r7552 83 83 bool AddQuest::invoke(PlayerInfo* player) 84 84 { 85 //TODO: Replace with assert? 86 if(player == NULL) // Null-pointers are badass. 87 { 88 COUT(2) << "Input player is NULL." << std::endl; 89 return false; 90 } 85 assert(player); 91 86 92 87 COUT(5) << "AddQuest on player: " << player << " ." << std::endl; -
code/trunk/src/modules/questsystem/effects/AddQuest.h
r7456 r7552 41 41 namespace orxonox 42 42 { 43 43 44 /** 44 45 @brief … … 49 50 <AddQuest questId="id" /> //Where id identifies the Quest that should be added. 50 51 @endcode 52 51 53 @author 52 54 Damian 'Mozork' Frick 55 56 @ingroup QuestEffects 53 57 */ 54 58 class _QuestsystemExport AddQuest : public ChangeQuestStatus -
code/trunk/src/modules/questsystem/effects/AddQuestHint.cc
r7456 r7552 106 106 bool AddQuestHint::invoke(PlayerInfo* player) 107 107 { 108 //TODO: Replace with assert? 109 if(player == NULL) // NULL-pointers are evil! 110 { 111 COUT(2) << "The input player is NULL." << std::endl; 112 return false; 113 } 108 assert(player); 114 109 115 110 COUT(5) << "AddQuestHint on player: " << player << " ." << std::endl; -
code/trunk/src/modules/questsystem/effects/AddQuestHint.h
r7456 r7552 43 43 namespace orxonox 44 44 { 45 45 46 /** 46 47 @brief … … 51 52 <AddQuestHint hintId="id" /> //Where id identifies the QuestHint that should be added. 52 53 @endcode 54 53 55 @author 54 56 Damian 'Mozork' Frick 57 58 @ingroup QuestEffects 55 59 */ 56 60 class _QuestsystemExport AddQuestHint : public QuestEffect -
code/trunk/src/modules/questsystem/effects/AddReward.h
r7456 r7552 43 43 namespace orxonox 44 44 { 45 45 46 /** 46 47 @brief … … 55 56 </AddReward> 56 57 @endcode 58 57 59 @author 58 60 Damian 'Mozork' Frick 61 62 @ingroup QuestEffects 59 63 */ 60 64 class _QuestsystemExport AddReward : public QuestEffect -
code/trunk/src/modules/questsystem/effects/ChangeQuestStatus.h
r7456 r7552 43 43 namespace orxonox 44 44 { 45 45 46 /** 46 47 @brief 47 48 A QuestEffect which changes the status of a specified @ref orxonox::Quest "Quest" for the player invoking the QuestEffect. 49 48 50 @author 49 51 Damian 'Mozork' Frick 52 53 @ingroup QuestEffects 50 54 */ 51 55 class _QuestsystemExport ChangeQuestStatus : public QuestEffect -
code/trunk/src/modules/questsystem/effects/CompleteQuest.cc
r7456 r7552 83 83 bool CompleteQuest::invoke(PlayerInfo* player) 84 84 { 85 //TODO: Replace with assert? 86 if(player == NULL) // You know, what we think of NULL-pointers... 87 { 88 COUT(2) << "Input player is NULL." << std::endl; 89 return false; 90 } 85 assert(player); 91 86 92 87 COUT(5) << "CompleteQuest on player: " << player << " ." << std::endl; -
code/trunk/src/modules/questsystem/effects/CompleteQuest.h
r7456 r7552 41 41 namespace orxonox 42 42 { 43 43 44 /** 44 45 @brief … … 49 50 <CompleteQuest questId="id" /> //Where id identifies the Quest that should be completed. 50 51 @endcode 52 51 53 @author 52 54 Damian 'Mozork' Frick 55 56 @ingroup QuestEffects 53 57 */ 54 58 class _QuestsystemExport CompleteQuest : public ChangeQuestStatus -
code/trunk/src/modules/questsystem/effects/FailQuest.cc
r7456 r7552 83 83 bool FailQuest::invoke(PlayerInfo* player) 84 84 { 85 //TODO: Replace with assert? 86 if(player == NULL) // We don't know what to do with no player. 87 { 88 COUT(2) << "Input player is NULL." << std::endl; 89 return false; 90 } 85 assert(player); 91 86 92 87 COUT(4) << "FailQuest on player: " << player << " ." << std::endl; -
code/trunk/src/modules/questsystem/effects/FailQuest.h
r7456 r7552 41 41 namespace orxonox 42 42 { 43 43 44 /** 44 45 @brief … … 49 50 <FailQuest questId="id" /> //Where id identifies the Quest that should be failed. 50 51 @endcode 52 51 53 @author 52 54 Damian 'Mozork' Frick 55 56 @ingroup QuestEffects 53 57 */ 54 58 class _QuestsystemExport FailQuest : public ChangeQuestStatus
Note: See TracChangeset
for help on using the changeset viewer.