Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

some more WorldEntities adapted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/world_entities/effects/explosion.cc

    r9406 r9707  
    2121
    2222#include "state.h"
    23 #include "class_list.h"
    2423
    2524#include "box_emitter.h"
     
    2827
    2928
    30 
    31 CREATE_FAST_FACTORY_STATIC(Explosion, CL_EXPLOSION);
    32 
     29#include "class_id.h"
     30CREATE_FAST_FACTORY_STATIC(Explosion);
     31NewObjectListDefinitionID(Explosion, CL_EXPLOSION);
    3332
    3433/**
     
    3736Explosion::Explosion ()
    3837{
    39   this->setClassID(CL_EXPLOSION, "Explosion");
     38  this->registerObject(this, Explosion::_objectList);
    4039  this->toList(OM_DEAD_TICK);
    4140
     
    5958
    6059  /* this is normaly done by World.cc by deleting the ParticleEngine */
    61   if (Explosion::explosionParticles != NULL && ClassList::getList(CL_EXPLOSION)->size() <= 1)
     60  if (Explosion::explosionParticles != NULL && Explosion::objectList().size() <= 1)
    6261     Explosion::explosionParticles = NULL;
    6362}
Note: See TracChangeset for help on using the changeset viewer.