- Timestamp:
- Mar 7, 2010, 11:00:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pickup3/src/modules/pickup/PickupSpawner.cc
r6478 r6484 147 147 { 148 148 PickupRepresentation* representation = PickupManager::getInstance().getRepresentation(this->pickup_->getPickupIdentifier()); 149 representation->setVisible(this->isActive()); 149 150 this->attach(representation->getSpawnerRepresentation(this)); 151 this->setActive(true); 150 152 } 151 153 } … … 273 275 void PickupSpawner::trigger(Pawn* pawn) 274 276 { 275 if (this->isActive()) //!< Checks whether PickupItem is active. 276 { 277 COUT(1) << "PickupSpawner triggered." << std::endl; 278 if (this->isActive()) //!< Checks whether PickupSpawner is active. 279 { 280 COUT(1) << "PickupSpawner triggered and active." << std::endl; 281 277 282 PickupCarrier* carrier = dynamic_cast<PickupCarrier*>(pawn); 278 283 if(carrier == NULL)
Note: See TracChangeset
for help on using the changeset viewer.