Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 25, 2006, 9:44:53 PM (18 years ago)
Author:
bensch
Message:

adapted many more classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/world_entities/power_ups/power_up.cc

    r9406 r9705  
    2525
    2626
     27NewObjectListDefinition(PowerUp);
    2728
    2829PowerUp::PowerUp(float r, float g, float b)
    2930{
    30   this->setClassID(CL_POWER_UP, "PowerUp");
     31  this->registerObject(this, PowerUp::_objectList);
    3132
    3233  this->respawnType = RESPAWN_TIME;
     
    120121void PowerUp::collidesWith (WorldEntity* entity, const Vector& location)
    121122{
    122   if(this->collider != entity && entity->isA(CL_EXTENDABLE))
     123  if(this->collider != entity && entity->isA(Extendable::classID()))
    123124  {
    124125    this->collider = entity;
Note: See TracChangeset for help on using the changeset viewer.