Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2007, 4:44:17 PM (18 years ago)
Author:
nicolasc
Message:

EOD commit

Location:
branches/playability/src/world_entities/weapons
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/weapons/heavy_blaster.cc

    r10159 r10170  
    3535HeavyBlaster::~HeavyBlaster()
    3636{
     37  for (int i = 0; i < this->getBarrels(); i++)
     38  {
     39    for(int j = 0; j < this->getSegs(); j++)
     40    {
     41      delete this->shootAnim[i][j];
     42      delete this->objComp[i][j];
     43    }
     44    delete this->shootAnim[i];
     45    delete this->objComp[i];
     46    delete this->emissionPoint[i];
     47  }
     48
    3749  this->deconstr();
    3850     // model will be deleted from WorldEntity-destructor
     
    6981
    7082  this->setCapability(WTYPE_ALLDIRS | WTYPE_DIRECTIONAL | WTYPE_LIGHT);
    71   this->setProjectileTypeC("HBolt");   // FIXME temp project type until the blaste class exist
     83 this->setProjectileTypeC("HBolt");   // FIXME temp project type until the blaste class exist
     84//   this->setProjectileTypeC("SpikeBall");   // FIXME temp project type until the blaste class exist
    7285  this->prepareProjectiles(5);
    7386
  • branches/playability/src/world_entities/weapons/light_blaster.cc

    r10159 r10170  
    3434LightBlaster::~LightBlaster()
    3535{
     36  for (int i = 0; i < this->getBarrels(); i++)
     37  {
     38    for(int j = 0; j < this->getSegs(); j++)
     39    {
     40      delete this->shootAnim[i][j];
     41      delete this->objComp[i][j];
     42    }
     43    delete this->shootAnim[i];
     44    delete this->objComp[i];
     45    delete this->emissionPoint[i];
     46  }
     47
     48  this->deconstr();
    3649      // model will be deleted from WorldEntity-destructor
    3750}
     
    6477  //this->setProjectileTypeC("RailProjectile");   // FIXME temp project type until the blaste class exist
    6578  this->setProjectileTypeC("LBolt");   // Working; FIXME: add textures
     79//   this->setProjectileTypeC("Spike");   // Working; FIXME: add textures
    6680  this->prepareProjectiles(100);
    6781
     
    103117
    104118  for (int i = 0; i < this->getBarrels(); i++){
    105     this->shootAnim[i][0]->addKeyFrame(Vector(), Quaternion(0.0, 0.0, 0.0), 0.04, ANIM_NULL, ANIM_LINEAR);
    106     this->shootAnim[i][0]->addKeyFrame(Vector(), Quaternion(M_2_PI/3.0, 0.0, 0.0), 0.01, ANIM_NULL, ANIM_LINEAR);
     119    this->shootAnim[i][0]->addKeyFrame(Vector(), Quaternion(i * 120, Vector(1.0, 0.0, 0.0)), 0.049, ANIM_NULL, ANIM_LINEAR);
     120    this->shootAnim[i][0]->addKeyFrame(Vector(), Quaternion((i+1)*120, Vector(1.0, 0.0, 0.0)), 0.001, ANIM_NULL, ANIM_LINEAR);
    107121  }
    108122
Note: See TracChangeset for help on using the changeset viewer.