Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2007, 10:39:50 PM (18 years ago)
Author:
nicolasc
Message:

clenup

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

Legend:

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

    r10286 r10289  
    4040  {
    4141   delete [] this->shootAnim[i];
    42 //    delete [] this->objComp[i];
    4342  }
    4443  delete [] this->shootAnim;
    45 //   delete [] this->objComp;
    4644}
    4745
     
    5351void MediumBlaster::init()
    5452{
    55   //this->registerObject(this, MediumBlaster::_objectList);
    56 
    57 //  this->model = (Model*)ResourceManager::getInstance()->load("models/guns/test_gun.obj", OBJ, RP_CAMPAIGN);
    58 
    5953  this->loadModel("models/guns/blaster.obj", .33);
    60  
    6154
    6255  this->setStateDuration(WS_SHOOTING, 0.2);   // 5 Schuss pro Sekunde
     
    8477
    8578  this->objComp = new PNode**[this->getBarrels()];
    86 //   this->emissionPoint = new PNode*[this->getBarrels()];
    8779  this->shootAnim = new Animation3D**[this->getBarrels()];
    8880  for (int i = 0; i < this->getBarrels(); i++)
    8981  {
    9082    this->objComp[i] = new PNode* [this->getSegs()];
    91 //     this->emissionPoint[i] = new PNode;
    92 //     this->emissionPoint[i]->setParent(this);             //< One EmissionPoint, that is a PNode connected to the weapon. You can set this to the exitting point of the Projectiles
    93 //     this->emissionPoint[i]->setName("EmissionPoint");
    94 //     this->emissionPoint[i]->addNodeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT);
    9583    this->shootAnim[i] = new Animation3D* [this->getSegs()];
    9684    for(int j = 0; j < this->getSegs(); j++)
     
    168156  glMatrixMode(GL_MODELVIEW);
    169157  glPushMatrix();
    170   glTranslatef (this->getAbsCoor ().x,
    171                 this->getAbsCoor ().y,
    172                 this->getAbsCoor ().z);
     158  glTranslatef (this->getAbsCoor ().x, this->getAbsCoor ().y, this->getAbsCoor ().z);
    173159
    174160  static_cast<StaticModel*>(this->getModel())->draw(2);
     
    180166
    181167  glPushMatrix();
    182   glTranslatef (this->objComp[0][1]->getAbsCoor().x, this->objComp[0][1]->getAbsCoor().y, this->objComp[0][1]->getAbsCoor().z);
    183   static_cast<StaticModel*>(this->getModel())->draw(0);
    184   glPopMatrix();
    185 
     168    glTranslatef (this->objComp[0][1]->getAbsCoor().x, this->objComp[0][1]->getAbsCoor().y, this->objComp[0][1]->getAbsCoor().z);
     169    static_cast<StaticModel*>(this->getModel())->draw(0);
    186170  glPopMatrix();
    187171
  • branches/playability/src/world_entities/weapons/spike_thrower.cc

    r10271 r10289  
    161161  pj->setAbsDir(this->getAbsDir());
    162162  pj->activate();
     163
     164//   this->increaseEnergy( - this->getProjectile()->getMinEnergy());
     165
    163166}
Note: See TracChangeset for help on using the changeset viewer.