Changeset 7548 for code/trunk
- Timestamp:
- Oct 16, 2010, 1:22:15 PM (14 years ago)
- Location:
- code/trunk/src/modules
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/PickupManager.cc
r7547 r7548 209 209 Returns a pointer to the PickupRepresentation. 210 210 */ 211 //TODO: Why not return a const?212 211 PickupRepresentation* PickupManager::getRepresentation(const PickupIdentifier* identifier) 213 212 { -
code/trunk/src/modules/pickup/PickupRepresentation.cc
r7540 r7548 85 85 if(this->isInitialized()) 86 86 { 87 //TODO: Also (network) unregister for master.88 87 if(GameMode::isMaster() && this->pickup_ != NULL) 89 88 { 90 89 PickupManager::getInstance().unregisterRepresentation(this->pickup_->getPickupIdentifier(), this); 91 90 } 92 if(!GameMode::isMaster()) 93 { 94 PickupManager::getInstance().unregisterRepresentation(this); 95 } 91 PickupManager::getInstance().unregisterRepresentation(this); 96 92 } 97 93 } -
code/trunk/src/modules/pickup/PickupSpawner.cc
r7547 r7548 97 97 PickupRepresentation* representation = PickupManager::getInstance().getRepresentation(this->pickup_->getPickupIdentifier()); 98 98 this->attach(representation->getSpawnerRepresentation(this)); 99 this->setActive(true); //TODO: Needed?99 this->setActive(true); 100 100 } 101 101 } -
code/trunk/src/modules/pickup/items/DronePickup.cc
r7547 r7548 130 130 { 131 131 SUPER(DronePickup, changedUsed); 132 133 // If the pickup is not picked up nothing must be done.134 if(!this->isPickedUp())135 return;136 132 137 133 // If the pickup has transited to used. -
code/trunk/src/modules/pickup/items/HealthPickup.cc
r7547 r7548 187 187 { 188 188 SUPER(HealthPickup, changedUsed); 189 190 // If the pickup is not picked up nothing must be done.191 if(!this->isPickedUp()) //TODO: Needed?192 return;193 189 194 190 // If the pickup has transited to used. -
code/trunk/src/modules/pickup/items/InvisiblePickup.cc
r7547 r7548 109 109 { 110 110 SUPER(InvisiblePickup, changedUsed); 111 112 // If the pickup is not picked up nothing must be done.113 if(!this->isPickedUp())114 return;115 111 116 112 // If the pickup has transited to used. -
code/trunk/src/modules/pickup/items/MetaPickup.cc
r7547 r7548 126 126 if(this->getMetaTypeDirect() == pickupMetaType::destroyCarrier) 127 127 { 128 this->Pickupable::destroy(); //TODO: Needed?129 128 Pawn* pawn = orxonox_cast<Pawn*>(carrier); 130 129 pawn->kill(); -
code/trunk/src/modules/pickup/items/ShieldPickup.cc
r7547 r7548 126 126 { 127 127 SUPER(ShieldPickup, changedUsed); 128 129 // If the pickup is not picked up nothing must be done.130 if(!this->isPickedUp())131 return;132 128 133 129 Pawn* pawn = this->carrierToPawnHelper(); -
code/trunk/src/modules/pickup/items/SpeedPickup.cc
r7547 r7548 126 126 { 127 127 SUPER(SpeedPickup, changedUsed); 128 129 // If the pickup is not picked up nothing must be done.130 if(!this->isPickedUp())131 return;132 128 133 129 Engine* engine = this->carrierToEngineHelper(); -
code/trunk/src/modules/questsystem/QuestHint.cc
r7456 r7548 90 90 bool QuestHint::isActive(const PlayerInfo* player) const 91 91 { 92 //TODO: Replace with asser .92 //TODO: Replace with assert. 93 93 if(player == NULL) // NULL-Pointers are ugly! 94 94 {
Note: See TracChangeset
for help on using the changeset viewer.