Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10328 in orxonox.OLD


Ignore:
Timestamp:
Jan 24, 2007, 2:49:55 PM (17 years ago)
Author:
marcscha
Message:

acid splash fix

Location:
branches/playability/src/world_entities/projectiles
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/acid_splash.cc

    r10298 r10328  
    6060//     this->grid->setTexture( "maps/blub.png");
    6161
    62   this->grid->toList(this->getOMListNumber());
    63   this->toList(OM_ENVIRON);
     62  this->grid->toList(OM_ENVIRON); //this->getOMListNumber());
     63  //this->toList(OM_ENVIRON);
    6464}
    6565
     
    7373  // delete this->emitter;
    7474  //delete this->grid;
     75 
     76  this->grid->toList(OM_DEAD);
    7577 
    7678}
     
    100102}
    101103
    102 
     104/*
    103105void AcidSplash::collidesWith(WorldEntity* entity, const Vector& location)
    104106{
     
    117119  //this->deactivate();
    118120}
    119 
     121*/
    120122/**
    121123 *  signal tick, time dependent things will be handled here
     
    134136
    135137  this->grid->tick(dt);
     138
     139  for( ObjectList<Playable>::const_iterator eIterator = Playable::objectList().begin(); eIterator !=Playable::objectList().end(); eIterator++)
     140  {
     141    if( ((*eIterator)->getOMListNumber() == (this->getOMListNumber() -1))  && ((*eIterator)->getAbsCoor() - this->getAbsCoor()).len() <= 8)
     142    {
     143      (*eIterator)->hit (this->getDamage(),this);
     144      this->deactivate();
     145    }
     146  }
    136147
    137148}
  • branches/playability/src/world_entities/projectiles/acid_splash.h

    r10179 r10328  
    2525    virtual void deactivate();
    2626
    27     virtual void collidesWith(WorldEntity* entity, const Vector& location);
     27 //   virtual void collidesWith(WorldEntity* entity, const Vector& location);
    2828
    2929    virtual void destroy (WorldEntity* killer);
Note: See TracChangeset for help on using the changeset viewer.