Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10687 in orxonox.OLD for branches/vs-enhencements/src/world_entities


Ignore:
Timestamp:
Jun 12, 2007, 5:59:36 PM (18 years ago)
Author:
nicolasc
Message:

xfer

Location:
branches/vs-enhencements/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/world_entities/space_ships/space_ship.cc

    r10686 r10687  
    165165  this->secWeaponMan.setSlotCount(6);
    166166
    167 //   this->weaponMan.createWeaponSlot(0, 3.270, 1.028, .155, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    168 //   this->weaponMan.createWeaponSlot(1, 3.270, 1.028, -.155, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    169 //   this->weaponMan.createWeaponSlot(2, 4.385, .063, .876, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    170 //   this->weaponMan.createWeaponSlot(3, 4.385, -.063, -.876, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    171 //   this->weaponMan.createWeaponSlot(4, 1.635, -.612, 2.691, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    172 //   this->weaponMan.createWeaponSlot(5, 1.536, -.612, -2.691, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    173 //   this->weaponMan.createWeaponSlot(6, 1.536, -.612, 3.254, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    174 //   this->weaponMan.createWeaponSlot(7, 1.536, -.612, -3.254, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     167  this->weaponMan.createWeaponSlot(0, 3.270, 1.028, .155, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     168  this->weaponMan.createWeaponSlot(1, 3.270, 1.028, -.155, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     169  this->weaponMan.createWeaponSlot(2, 4.385, .063, .876, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     170  this->weaponMan.createWeaponSlot(3, 4.385, -.063, -.876, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     171  this->weaponMan.createWeaponSlot(4, 1.635, -.612, 2.691, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     172  this->weaponMan.createWeaponSlot(5, 1.536, -.612, -2.691, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     173  this->weaponMan.createWeaponSlot(6, 1.536, -.612, 3.254, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     174  this->weaponMan.createWeaponSlot(7, 1.536, -.612, -3.254, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    175175
    176176
     
    211211  Playable::weaponConfigChanged();
    212212
    213   this->bInit = false;
     213//   this->bInit = false;
    214214
    215215  loadEnergyShare(.3,.3,.4);
     
    297297
    298298
    299   dynamic_cast<WorldEntity*>(this)->createHealthWidget();
    300   dynamic_cast<WorldEntity*>(this)->createShieldWidget();
    301   dynamic_cast<WorldEntity*>(this)->createElectronicWidget();
     299  (this)->createHealthWidget();
     300  (this)->createShieldWidget();
     301  (this)->createElectronicWidget();
    302302
    303303  if ( this->hasPlayer() ){
     
    399399void SpaceShip::postSpawn ()
    400400{
     401//   std::map<int, MountPoint*>::iterator it = this->mountPointMap.begin();
     402//   for( ;it != this->mountPointMap.end(); it++)
     403//   {
     404//     WeaponSlot* ws = dynamic_cast<WeaponSlot*>((*it).second->getMount());
     405//     if( ws != NULL && ws->isA(WeaponSlot::staticClassID()))
     406//     {
     407//       int slot = ws->getWeaponSlot();
     408// //        int side = ws->getWeaponSide(); //FIXME / REMOVE: is not used// HACK needed for some weapons (left/right)
     409//       this->getWeaponManager().setSlotPosition(slot, (*it).second->getCenter());
     410//     this->getWeaponManager().setSlotDirection(slot, ws->getRelDir());
     411// //         PRINTF(0)("setting slot %i\n", slot);
     412// //         (*it).second->getCenter().debug();
     413//     }
     414//   }
     415
    401416  if(this->hasPlayer())
    402417    Playable::postSpawn();
     
    445460}
    446461
     462
     463
     464
     465
    447466/**
    448467 *  the function called for each passing timeSnap
     
    451470void SpaceShip::tick (float time)
    452471{
    453 
     472/*
    454473  if( !this->bInit)
    455474  {
     
    470489    }
    471490  this->bInit = true;
    472   }
     491  }*/
    473492
    474493  // Playable::tick(time);
  • branches/vs-enhencements/src/world_entities/space_ships/space_ship.h

    r10672 r10687  
    166166    bool                  bSecFire;           //!< second fire button pressed
    167167
    168     bool                  bInit;              //!< set true, if MP have been loaded
     168//    bool                  bInit;              //!< set true, if MP have been loaded
    169169
    170170    /*
  • branches/vs-enhencements/src/world_entities/weapons/weapon_slot.h

    r10684 r10687  
    99#include "p_node.h"
    1010#include "weapon.h"
    11 #include "weapon_manager.h"
     11// #include "weapon_manager.h"
     12
     13#define    WM_MAX_CONFIGS          4              //!< The maximum number of predefined Configurations
    1214
    1315class Weapon;
Note: See TracChangeset for help on using the changeset viewer.