Changeset 2092 for code/trunk/src/orxonox/objects/quest/GlobalQuest.cc
- Timestamp:
- Nov 1, 2008, 8:32:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/quest/GlobalQuest.cc
r2091 r2092 40 40 Constructor. 41 41 */ 42 GlobalQuest::GlobalQuest( ) : Quest()42 GlobalQuest::GlobalQuest(BaseObject* creator) : Quest(creator) 43 43 { 44 RegisterObject(GlobalQuest); 45 44 46 this->initialize(); 45 47 } 46 48 47 49 /** 48 50 @brief … … 51 53 GlobalQuest::~GlobalQuest() 52 54 { 53 55 54 56 } 55 57 56 58 void GlobalQuest::XMLPort(Element& xmlelement, XMLPort::Mode mode) 57 59 { … … 60 62 COUT(3) << "New GlobalQuest {" << this->getId() << "} created." << std::endl; 61 63 } 62 64 63 65 void GlobalQuest::initialize(void) 64 66 { 65 67 RegisterObject(GlobalQuest); 66 68 } 67 69 68 70 /** 69 71 @brief … … 80 82 return this->isInactive(player) || this->isActive(player); 81 83 } 82 84 83 85 /** 84 86 @brief … … 96 98 97 99 } 98 100 99 101 /** 100 102 @brief … … 126 128 ThrowException(Argument, "The input Player* is NULL."); 127 129 } 128 130 129 131 //TDO: Does this really work??? 130 132 std::set<Player*>::const_iterator it = this->players_.find((Player*)(void*)player); … … 139 141 140 142 } 141 143 142 144 /** 143 145 @brief … … 157 159 return false; 158 160 } 159 161 160 162 std::set<Player*>::const_iterator it = this->players_.find(player); 161 163 if (it == this->players_.end()) //!< Player is not yet in the list.
Note: See TracChangeset
for help on using the changeset viewer.