Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10721 in orxonox.OLD


Ignore:
Timestamp:
Jun 18, 2007, 7:40:40 PM (17 years ago)
Author:
nicolasc
Message:

bump, minor fixes

Location:
branches/presentation/src
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/util/hud.cc

    r10717 r10721  
    536536              statWidgetsNumber++;
    537537       
    538             if (expectedHealthSizeY * statWidgetsNumber > overlayWidth)
     538            if ((expectedHealthSizeY * statWidgetsNumber) > overlayWidth)
    539539            {
    540540              newSizeY = overlayWidth / float(statWidgetsNumber);
  • branches/presentation/src/world_entities/npcs/npc.cc

    r10710 r10721  
    407407      {
    408408        int slot = ws->getWeaponSlot();
    409 //         int side = ws->getWeaponSide(); //FIXME / REMOVE: is not used
     409//         int side = ws->getWeaponSide(); //FIXME / REMOVED: is not used
    410410        this->getWeaponManager().setSlotPosition(slot, (*it).second->getCenter());
    411411        this->getWeaponManager().setSlotDirection(slot, ws->getRelDir());
  • branches/presentation/src/world_entities/space_ships/space_ship.cc

    r10720 r10721  
    205205
    206206  this->mouseSensitivity = 4;
     207  this->xMouse = this->yMouse = 0;
     208
    207209
    208210  this->weaponMan.changeWeaponConfig(0);
     
    222224  loadEngine(15);
    223225
    224 //   this->loadModel("models/spaceships/fighter_redesign9.obj");
    225   //this->setVisibiliy(false);
    226 
    227226  bForward = bBackward = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = bFire = bSecFire = false;
    228 
    229 //   this->setHealthMax(shieldMax);
    230 //   this->setHealth(shieldCur);
    231227
    232228  this->travelNode = new PNode();
     
    261257
    262258  this->secWeaponMan.getFixedTarget()->setParent(this);
    263   this->secWeaponMan.getFixedTarget()->setRelCoor(100000,0,0);
     259  this->secWeaponMan.getFixedTarget()->setRelCoor(50000,0,0);
    264260  this->secWeaponMan.setRotationSpeed(0);
    265261
     
    289285  //this->airFriction = 0.0f;
    290286
    291   srand(time(0));  //initaialize RNG
     287//   srand(time(0));  //initaialize RNG
    292288
    293289  this->travelNode->debugDraw();
     
    377373  this->resetElectronic();
    378374  this->velocity = Vector(0.0, 0.0, 0.0);
     375  this->xMouse = this->yMouse = 0;
    379376}
    380377
     
    593590//     printf("Mouse Coord: %f, %f\n", this->xMouse, this->yMouse);
    594591    this->weaponMan.getFixedTarget()->setRelCoor(100000, -100 * this->mouseSensitivity * yMouse, 100 * this->mouseSensitivity * xMouse);
    595     this->secWeaponMan.getFixedTarget()->setRelCoor(100000, -100 * this->mouseSensitivity * yMouse, 100 * this->mouseSensitivity * xMouse);
     592    this->secWeaponMan.getFixedTarget()->setRelCoor(50000, -50 * this->mouseSensitivity * yMouse, 50 * this->mouseSensitivity * xMouse);
    596593  }
    597594  else if (!(State::getCamera()->getEventHandling()))
  • branches/presentation/src/world_entities/space_ships/space_ship.h

    r10719 r10721  
    202202
    203203
    204     Quaternion            mouseDir;           //!< the direction where the player wants to fly
     204    //Quaternion            mouseDir;           //!< the direction where the player wants to fly
    205205    /*Quaternion            oldMouseDir;        //!< the direction where the player wanted to fly
    206206    float                 shipInertia;        //!< the inertia of the ship(how fast the ship reacts to a mouse input)
  • branches/presentation/src/world_entities/weapons/crosshair.cc

    r10714 r10721  
    6464  this->material = new Material;
    6565
    66   //this->subscribeEvent(ES_GAME, EV_MOUSE_MOTION);
     66//   this->subscribeEvent(ES_GAME, EV_MOUSE_MOTION);
    6767
    6868  // center the mouse on the screen, and also hide the cursors
    69   /*  SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2);
    70   GraphicsEngine::showMouse(false);
    71   SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2);*/
     69/*  SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2);*/
     70//   GraphicsEngine::showMouse(false);
     71//   SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2);
    7272}
    7373
  • branches/presentation/src/world_entities/weapons/nadion_laser.cc

    r10719 r10721  
    147147
    148148  pj->setAbsCoor(this->getEmissionPoint());
    149 //   pj->setAbsDir(this->getAbsDir());
     149//   pj->setAbsDir(Quaternion(this->getDefaultTarget()->getAbsCoor() - this->getAbsCoor(), Vector(0,0,0)));
     150  pj->setAbsDir(this->getAbsDir());
    150151  pj->activate();
    151152
  • branches/presentation/src/world_entities/weapons/weapon_manager.h

    r10719 r10721  
    9191    Weapon* getWeapon(int slotID) const;
    9292
    93     // FIXME ::
    9493//    bool hasFreeSlot(int configID, long capability = WTYPE_ALL) { return ( getNextFreeSlot(configID, capability ) != -1)? true : false; };
    9594
  • branches/presentation/src/world_entities/world_entity.cc

    r10718 r10721  
    11841184  increaseHealth(time * this->healthRegen);
    11851185  increaseShield(time * this->shieldRegen);
    1186 //   updateHealthWidget();
    1187 //   updateShieldWidget();
    1188 
    1189   //this->setHealth( this->shieldCur);      // FIXME currently just to test share system
     1186
    11901187
    11911188  if (this->electronic != this->electronicMax || this->electronicRegen != 0){
  • branches/presentation/src/world_entities/world_entity.h

    r10710 r10721  
    208208
    209209  /* --- Misc Stuff Block --- */
    210   void debugWE() { this->debugEntity(); }
    211   ;  ///FIXME
     210  void debugWE() { this->debugEntity(); };  ///FIXME
    212211  void debugEntity() const;
    213212
Note: See TracChangeset for help on using the changeset viewer.