Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 19, 2006, 12:24:20 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: simple useless stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/turbine_hover.cc

    r7326 r7337  
    8888  //this->addWeapon(cannon, 0, 2);
    8989
    90   this->getWeaponManager()->changeWeaponConfig(1);
    91   dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( false);
     90  this->getWeaponManager().changeWeaponConfig(1);
     91  dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( false);
    9292
    9393  this->loadModel("models/ships/hoverglider_mainbody.obj");
     
    186186  registerEvent(EV_MOUSE_MOTION);
    187187
    188   dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( false);
     188  dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( false);
    189189
    190190  // WEAPON_MANAGER configuration
    191   this->getWeaponManager()->setSlotCount(5);
    192 
    193   this->getWeaponManager()->setSlotPosition(0, Vector(-0.28, 1.186, -2.750), &this->wingNodeLeft);
    194   this->getWeaponManager()->setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    195 
    196   this->getWeaponManager()->setSlotPosition(1, Vector(-0.28, 1.186, 2.750), &this->wingNodeRight);
    197   this->getWeaponManager()->setSlotCapability(1, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    198 
    199   this->getWeaponManager()->setSlotPosition(2, Vector(-1.63, .809, -.003));
    200   this->getWeaponManager()->setSlotCapability(2, WTYPE_HEAVY);
     191  this->getWeaponManager().setSlotCount(5);
     192
     193  this->getWeaponManager().setSlotPosition(0, Vector(-0.28, 1.186, -2.750), &this->wingNodeLeft);
     194  this->getWeaponManager().setSlotCapability(0, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     195
     196  this->getWeaponManager().setSlotPosition(1, Vector(-0.28, 1.186, 2.750), &this->wingNodeRight);
     197  this->getWeaponManager().setSlotCapability(1, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     198
     199  this->getWeaponManager().setSlotPosition(2, Vector(-1.63, .809, -.003));
     200  this->getWeaponManager().setSlotCapability(2, WTYPE_HEAVY);
    201201
    202202  /// TODO: THESE ARE TOO MUCH
    203   this->getWeaponManager()->setSlotPosition(3, Vector(-1.63, .678, -.652));
    204   this->getWeaponManager()->setSlotDirection(3, Quaternion(-24/180 * M_PI, Vector(1,0,0)));
    205 
    206   this->getWeaponManager()->setSlotPosition(4, Vector(-1.63, .678, .652));
    207   this->getWeaponManager()->setSlotDirection(4, Quaternion(24/180 * M_PI, Vector(1,0,0)));
     203  this->getWeaponManager().setSlotPosition(3, Vector(-1.63, .678, -.652));
     204  this->getWeaponManager().setSlotDirection(3, Quaternion(-24/180 * M_PI, Vector(1,0,0)));
     205
     206  this->getWeaponManager().setSlotPosition(4, Vector(-1.63, .678, .652));
     207  this->getWeaponManager().setSlotDirection(4, Quaternion(24/180 * M_PI, Vector(1,0,0)));
    208208
    209209  this->cameraNode.setRelCoor(1,5,0);
    210   this->getWeaponManager()->getFixedTarget()->setParent(&this->cameraNode);
    211   this->getWeaponManager()->getFixedTarget()->setRelCoor(1000,0,0);
     210  this->getWeaponManager().getFixedTarget()->setParent(&this->cameraNode);
     211  this->getWeaponManager().getFixedTarget()->setRelCoor(1000,0,0);
    212212}
    213213
     
    224224void TurbineHover::enter()
    225225{
    226   dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( true);
     226  dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( true);
    227227
    228228  if (State::getCameraNode != NULL)
     
    236236void TurbineHover::leave()
    237237{
    238   dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( false);
     238  dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( false);
    239239  this->detachCamera();
    240240
Note: See TracChangeset for help on using the changeset viewer.