Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 2, 2007, 11:48:16 PM (18 years ago)
Author:
nicolasc
Message:

minor cleanup

Location:
branches/vs-enhencements/src/world_entities/weapons
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/world_entities/weapons/heavy_blaster.cc

    r10644 r10645  
    9898//  this->model = (Model*)ResourceManager::getInstance()->load("models/guns/test_gun.obj", OBJ, RP_CAMPAIGN);
    9999
    100   this->loadModel("models/guns/frag_cannon.obj", .4);
     100  this->loadModel("models/guns/frag_cannon2.obj", .4);
    101101
    102102
  • branches/vs-enhencements/src/world_entities/weapons/light_blaster.cc

    r10644 r10645  
    5353{
    5454
    55 //   for (int i = 0; i < this->getBarrels(); i++)
    56 //   {
    57 //    //delete [] this->shootAnim[i];
    58 //    delete [] this->objComp[i];
    59 //   }
    60 //   delete [] this->emissionPoint;
    61 //    //delete [] this->shootAnim;
    62 //    delete [] this->objComp;
     55  for (int i = 0; i < this->getBarrels(); i++)
     56  {
     57   //delete [] this->shootAnim[i];
     58   delete [] this->objComp[i];
     59  }
     60  delete [] this->emissionPoint;
     61   //delete [] this->shootAnim;
     62   delete [] this->objComp;
    6363
    6464}
  • branches/vs-enhencements/src/world_entities/weapons/rf_cannon.cc

    r10644 r10645  
    5252RFCannon::~RFCannon()
    5353{
    54 //   for (int i = 0; i < this->getBarrels(); i++)
    55 //     delete [] this->objComp[i];
     54  for (int i = 0; i < this->getBarrels(); i++)
     55    delete [] this->objComp[i];
    5656
    57 //   delete [] this->emissionPoint;
    58 //   delete [] this->objComp;
     57  delete [] this->emissionPoint;
     58  delete [] this->objComp;
    5959}
    6060
     
    6767{
    6868
    69   this->loadModel("models/guns/rf_cannon.obj", 0.3);
     69  this->loadModel("models/guns/rf_cannon.obj", 0.2);
    7070
    7171
     
    8282
    8383  this->setCapability(WTYPE_ALLDIRS | WTYPE_DIRECTIONAL | WTYPE_LIGHT);
    84   this->setProjectileTypeC("LBolt");
     84  this->setProjectileTypeC("PlasmaPulse");
    8585  this->prepareProjectiles(100);
    8686
     
    122122void RFCannon::fire()
    123123{
    124   for (int i = 0; i < this->getBarrels(); i++){
     124//   for (int i = 0; i < this->getBarrels(); i++){
    125125    Projectile* pj =  this->getProjectile();
    126126    if (pj == NULL)
     
    139139
    140140    this->activeBarrel = (this->activeBarrel + 1) % this->getBarrels();
    141   }
     141//   }
    142142}
    143143
  • branches/vs-enhencements/src/world_entities/weapons/weapon.cc

    r10529 r10645  
    163163 * needed, if there are more than one barrel or segments
    164164 */
     165/*
    165166void Weapon::init2()
    166167{
     
    182183    this->shootAnim[i] = new Animation3D* [this->segs];
    183184  }
    184 }
     185}*/
    185186
    186187/**
    187188 * deconstructor for init2
    188189 */
     190/*
    189191void Weapon::deconstr()
    190192{
     
    198200  delete this->emissionPoint;
    199201  delete this->shootAnim;
    200 }
     202}*/
    201203
    202204/**
  • branches/vs-enhencements/src/world_entities/weapons/weapon.h

    r10516 r10645  
    181181    inline void setSegs(int segs) { this->segs = segs; };
    182182
    183     inline Animation3D* getShootAnim(int barrel, int seg) { return this->shootAnim[barrel][seg]; };
    184     inline void setShootAnim(int barrel, int seg, PNode* component) { this->shootAnim[barrel][seg] = this->getAnimation(barrel, seg, component); };
    185 
    186     void init2();
     183//     inline Animation3D* getShootAnim(int barrel, int seg) { return this->shootAnim[barrel][seg]; };
     184//     inline void setShootAnim(int barrel, int seg, PNode* component) { this->shootAnim[barrel][seg] = this->getAnimation(barrel, seg, component); };
     185
     186//     void init2();
    187187    void deconstr();
    188188
Note: See TracChangeset for help on using the changeset viewer.