Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10505 in orxonox.OLD for trunk/src/world_entities/projectiles


Ignore:
Timestamp:
Jan 30, 2007, 5:02:18 PM (18 years ago)
Author:
snellen
Message:

lbolt,hbolt,spikeball: set visibility false in constructor. the acid splash works so far, all the other projectiles need testing

Location:
trunk/src/world_entities/projectiles
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/projectiles/hbolt.cc

    r10368 r10505  
    5959  this->halo->setSize(.65, .65);
    6060  this->halo->setTexture("hbolt_halo2.png");
     61  this->halo->setVisibiliy(false);
    6162
    6263}
     
    8586void HBolt::activate()
    8687{
     88  this->halo->setVisibiliy(true);
    8789  this->origList = this->getOMListNumber();
    8890  this->toList(OM_ENVIRON);
     
    107109void HBolt::deactivate()
    108110{
     111  this->halo->setVisibiliy(false);
    109112  assert (HBolt::explosionParticles != NULL);
    110113  HBolt::explosionParticles->removeEmitter(this->emitter);
  • trunk/src/world_entities/projectiles/lbolt.cc

    r10368 r10505  
    6262  this->halo->setSize(.35, .35);
    6363  this->halo->setTexture("hbolt_halo.png");
     64  this->halo->setVisibiliy(false);
    6465
    6566
     
    8990void LBolt::activate()
    9091{
     92  this->halo->setVisibiliy(true);
    9193  this->origList = this->getOMListNumber();
    9294  this->toList(OM_ENVIRON);
     
    113115  assert (LBolt::explosionParticles != NULL);
    114116  LBolt::explosionParticles->removeEmitter(this->emitter);
     117  this->halo->setVisibiliy(false);
    115118  this->lifeCycle = 0.0;
    116119
  • trunk/src/world_entities/projectiles/spike_ball.cc

    r10368 r10505  
    6060  this->halo->setSize(2, 2);
    6161  this->halo->setTexture("hbolt_halo.png");
     62  this->halo->setVisibiliy(false);
    6263
    6364  this->setFragments(26);
    6465
    6566  this->size = 4;
     67
    6668
    6769  this->launcher = new Vector [this->getFragments()];
     
    9395void SpikeBall::activate()
    9496{
     97  this->halo->setVisibiliy(true);
    9598  if (unlikely(SpikeBall::explosionParticles == NULL))
    9699  {
     
    139142void SpikeBall::deactivate()
    140143{
     144  this->halo->setVisibiliy(false);
    141145  assert (SpikeBall::explosionParticles != NULL);
    142146  //SpikeBall::explosionParticles->removeEmitter(this->emitter);
Note: See TracChangeset for help on using the changeset viewer.