Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5445 in orxonox.OLD for trunk/src/world_entities


Ignore:
Timestamp:
Oct 29, 2005, 11:08:08 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: Connection-Removing in the Particle-Class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/test_bullet.cc

    r5444 r5445  
    6464TestBullet::~TestBullet ()
    6565{
    66   delete this->emitter;
     66//  delete this->emitter;
    6767
    68   /* this is normaly done by World.cc by deleting the ParticleEngine
    69   if (TestBullet::explosionParticles != NULL && ClassList::getList(CL_TEST_BULLET)->getSize() == 1)
     68  /* this is normaly done by World.cc by deleting the ParticleEngine */
     69  if (TestBullet::explosionParticles != NULL && ClassList::getList(CL_TEST_BULLET)->getSize() <= 1)
    7070  {
    71     delete TestBullet::explosionParticles;
     71    if (ClassList::exists(TestBullet::explosionParticles, CL_PARTICLE_SYSTEM))
     72      delete TestBullet::explosionParticles;
    7273    TestBullet::explosionParticles = NULL;
     74    printf("-------------------\n");
    7375  }
    74   */
     76
    7577}
    7678
     
    8385  if (unlikely(TestBullet::explosionParticles == NULL))
    8486  {
     87    ClassList::debug(3, CL_PARTICLE_SYSTEM);
    8588    TestBullet::explosionParticles = new ParticleSystem(10000, PARTICLE_SPRITE);
     89    TestBullet::explosionParticles->setName("TestBulletTrailParticles");
    8690    TestBullet::explosionParticles->setLifeSpan(.5);
    8791    TestBullet::explosionParticles->setRadius(0.0, .5);
     
    9195    TestBullet::explosionParticles->setColor(0.5, .8,.8,0,.5);
    9296    TestBullet::explosionParticles->setColor(1.0, .5,.5,.5,.0);
     97    printf("::::::::::::::::::::::::::::\n");
    9398  }
    9499
Note: See TracChangeset for help on using the changeset viewer.