Changeset 7552 for code/trunk/src/modules/questsystem/QuestHint.cc
- Timestamp:
- Oct 17, 2010, 10:50:43 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/questsystem/QuestHint.cc
r7548 r7552 83 83 @param player 84 84 The player. 85 @throws86 Throws an Argument Exception if the input Player-pointer is NULL.87 85 @return 88 86 Returns true if the QuestHint is active for the specified player. … … 90 88 bool QuestHint::isActive(const PlayerInfo* player) const 91 89 { 92 //TODO: Replace with assert. 93 if(player == NULL) // NULL-Pointers are ugly! 94 { 95 ThrowException(Argument, "The input PlayerInfo* is NULL."); 90 if(player == NULL) // If the player is NULL, the Quest obviously can't be active. 96 91 return false; 97 }98 92 99 93 // Find the player. … … 145 139 bool QuestHint::setQuest(Quest* quest) 146 140 { 147 //TODO: Replace with assert. 148 if(quest == NULL) // NULL-Pointer. Again..? 149 { 150 COUT(2) << "The input Quest* is NULL." << std::endl; 151 return false; 152 } 141 assert(quest); 153 142 154 143 this->quest_ = quest;
Note: See TracChangeset
for help on using the changeset viewer.