Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10289 in orxonox.OLD for branches


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

clenup

Location:
branches/playability/src/world_entities
Files:
6 edited

Legend:

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

    r10271 r10289  
    5757  this->angle = 0;
    5858  this->rotationSpeed = 130;
    59 /*
    60   this->halo = new Billboard();
    61   this->halo->setSize(.35, .35);
    62   this->halo->setTexture("hbolt_halo.png");*/
    6359}
    6460
  • branches/playability/src/world_entities/projectiles/spike.h

    r10286 r10289  
    4545    float                             rotationSpeed;
    4646
    47 //     Billboard*                        halo;
    48 
    4947    WorldEntity* hitEntity; // FIXME TEMPORARY
    5048
  • branches/playability/src/world_entities/projectiles/spike_ball.h

    r10286 r10289  
    4141    inline void setVelocity(Vector velocity) { this->velocity = velocity; }
    4242
    43 //     inline Vector getRotationVector() { return this->rotationVector; }
    44 //     inline float getAngle() { return this->angle; }
    4543
    4644  private:
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r10286 r10289  
    823823        this->travelNode->setAbsCoor(this->getAbsCoor());
    824824        this->travelNode->updateNode(0.01f);
    825        
     825
    826826        this->setParent(this->travelNode);
    827        
    828         // If track exists put travelNode on trackNode of track
    829         if (this->entityTrack)
    830            this->travelNode->setParent(this->entityTrack->getTrackNode());
    831            
    832        
    833        
    834827        this->setRelCoor(0,0,0);
    835828
    836829        State::getCameraNode()->setParentSoft(this->travelNode);
    837         //State::getCameraNode()->setParentSoft(this->entityTrack->getTrackNode());
     830        //State::getCameraNode()->setParentSoft(this);
    838831        //State::getCameraNode()->setRelCoorSoft(-0.01, 40, 0);
    839832        State::getCameraTargetNode()->setParentSoft(this->travelNode);
    840         //State::getCameraTargetNode()->setParentSoft(this->entityTrack->getTrackNode());
     833        //State::getCameraTargetNode()->setParentSoft(this);
    841834        //State::getCameraTargetNode()->setRelCoorSoft(0,0,0);
    842835        this->setCameraMode(Camera::ViewTop);
     
    10111004
    10121005    //this moves camera and ship along the travel path.
    1013     if (!this->entityTrack)
    1014        this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0));
     1006    this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0));
    10151007
    10161008    break;
  • 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.