Changeset 9705 in orxonox.OLD for branches/new_class_id/src/world_entities/power_ups/power_up.cc
- Timestamp:
- Aug 25, 2006, 9:44:53 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/world_entities/power_ups/power_up.cc
r9406 r9705 25 25 26 26 27 NewObjectListDefinition(PowerUp); 27 28 28 29 PowerUp::PowerUp(float r, float g, float b) 29 30 { 30 this-> setClassID(CL_POWER_UP, "PowerUp");31 this->registerObject(this, PowerUp::_objectList); 31 32 32 33 this->respawnType = RESPAWN_TIME; … … 120 121 void PowerUp::collidesWith (WorldEntity* entity, const Vector& location) 121 122 { 122 if(this->collider != entity && entity->isA( CL_EXTENDABLE))123 if(this->collider != entity && entity->isA(Extendable::classID())) 123 124 { 124 125 this->collider = entity;
Note: See TracChangeset
for help on using the changeset viewer.